summaryrefslogtreecommitdiff
path: root/sys/arch/arm
AgeCommit message (Collapse)Author
2011-07-08When reading dos labels use DOS_LABELSECTOR and don't use LABELOFFSET. For ↵Kenneth R Westerback
all these arch's LABELSECTOR == DOS_LABELSECTOR == 1, and LABELOFFSET == 0. Thus, to quote bob, "This is a no-op". Makes the expression used when writing label the same as the one used in readdoslabel().
2011-07-06On those archs that read their disk (vs iso/udf) disklabels exclusivelyKenneth R Westerback
via readdoslabel(), tweak writedisklabel() to write disklabels at the same place readdoslabel() reads them from. Irregardless of the physical disk sector size. As is done in i386/amd64 already. No change in behaviour for the 'normal' 512-byte sector case. ok deraadt@
2011-07-05Recommit the reverted sigacts change now that the NFS use-after-freePhilip Guenthe
problem has been tracked down. This fixes the sharing of the signal handling state: shared bits go in sigacts, per-rthread bits goes in struct proc. ok deraadt@
2011-07-04Nuke the useless D_KQFILTER flag and just check that d_kqfilter isNicholas Marriott
filled in. Move D_CLONE down to 0x0001 as suggested by thib. ok deraadt thib
2011-07-02kqueue attach functions should return an errno or 0, not a plain 1. FixNicholas Marriott
the obvious cases to return EINVAL and ENXIO. ok tedu deraadt
2011-06-24machdep.kbdreset enables a shutdown by Ctrl-Alt-Del on amd64 andChristian Weisgerber
i386. Stop abusing it on other archs for controling a shutdown by pressing the soft power button: * Add a MI sysctl hw.allowpowerdown; if set to 1 (the default) it allows a power button shutdown. * Make acpi(4)/acpibtn(4) honor hw.allowpowerdown. * Switch the various power button intercepts on landisk, sgi, sparc64 and zaurus over to hw.allowpowerdown. * Garbage collect the machdep.kbdreset sysctl on all archs other than amd64 and i386. ok miod@
2011-06-23Fix the error path in bus_dmamem_map.Ariane van der Steldt
As discussed on icb: remove the comment, remove pmap_remove (uvm_km_free does that for us). ok oga@, deraadt@
2011-06-05Move the bufcachepercent setting code to MI locations -- set it to 42%Theo de Raadt
for now; that is unlikely to hit some of the remaining starvation bugs. Repair the bufpages calculation too; i386 was doing it ahead of time (incorrectly) and then re-calculating it. ok thib
2011-05-25Also enclose variable names with external linkage in __BEGIN_DECLS.Martynas Venckus
Doesn't matter much since C++ ABI used by GCC doesn't mangle variable names; however technically is required by Section 7.5 of the C++ spec. Discussed with/OK guenther@, matthew@.
2011-05-21Add pci_intr_map_msi() stub.Mark Kettenis
2011-05-14Fix arguments to pool_init: want alignment of L2_TABLE_SIZE_REAL atMatthew Dempsky
offset 0, not default alignment at offset L2_TABLE_SIZE_REAL. ok miod@
2011-04-28Expose pmap_prefer parameters.Ariane van der Steldt
This enables future uvm_map allocator to behave intelligently.
2011-04-28fenv improvements and cleanupsMartynas Venckus
2011-04-24fenv for armMartynas Venckus
2011-04-18Revert the sigacts diff: NFS can apparently retain pointers to processesPhilip Guenthe
until they're zombies and then send them signals (for intr mounts). Until that is untangled, the sigacts change is unsafe. sthen@ was the victim for this one
2011-04-16Use 'CLR(<buf>->b_flags, B_READ | B_WRITE | B_DONE)' regardless ofKenneth R Westerback
what the previous IO was. Less chance of copy and paste errors. Suggested by miod@.
2011-04-16another variable left after a commitTheo de Raadt
2011-04-15In days of yore one could arbitrarily whack buffer flags. Those daysKenneth R Westerback
are past. Use CLR() and SET() to modify necessary flags while leaving the flags used by the buffer cache in peace. Should make bufcache code much less confused about the state of the bufs used in reading/writing disklabels. Other such flag abuses no doubt await a visit. Errors in original diff found by miod@. ok beck@ deraadt@
2011-04-15Correct the sharing of the signal handling state: stuff that shouldPhilip Guenthe
be shared (p_sigignore, p_sigcatch, P_NOCLDSTOP, P_NOCLDWAIT) moves to struct sigacts, wihle stuff that should be per rthread (ps_oldmask, SAS_OLDMASK, ps_sigstk) moves to struct proc. Treat the coredumping state bits (ps_sig, ps_code, ps_type, ps_sigval) as per-rthread until our locking around coredumping is better. Oh, and remove the old SunOS-compat ps_usertramp member. "I like the sound of this" tedu@
2011-04-07Make sure the ALIGN() macro uses u_long on all platforms for consistency, andMiod Vallat
update the comment block accordingly.
2011-04-07Do not use NULL in integer comparisons. No functional change.Miod Vallat
ok matthew@ tedu@, also eyeballed by at least krw@ oga@ kettenis@ jsg@
2011-04-06The various read*label() have stopped returning error strings for quiteMiod Vallat
some time, and return errnos instead. Fix or remove out-of-date comments mentioning the error strings, and make their callers check the return value against zero, not NULL.
2011-04-03Move PPWAIT flag from struct proc to process, so that rthreads inPhilip Guenthe
a vforked child behave correctly. Have the parent in a vfork() wait on a (different) flag in *its* process instead of the child to prevent a possible use-after-free. When ktracing the child return from a fork, call it rfork if an rthread was created. ok blambert@
2011-03-23Normalize sentinel. Use _MACHINE_*_H_ and _<ARCH>_*_H_ properly and consitently.Paul Irofti
Discussed and okay drahn@. Okay deraadt@.
2011-03-17- recognize OMAP3630/DM3730, as found in the beagleboard xMJasper Lievisse Adriaanse
ok drahn@
2011-03-11Use _MACHINE_ENDIAN_H_ for this is The Right Thing To Do.Paul Irofti
Okay guenther@, millert@.
2011-03-02Change va_arg and va_end definitions from object-like macros toMatthew Dempsky
function-like macros. Allows (questionable but legal) use of "va_arg" as a local variable name in code that includes <stdarg.h>. "seems right" deraadt@
2011-02-26Force the DUID cache used to generate hw.disknames to be updatedKenneth R Westerback
after every disklabel read or write. This keeps the DUID cache more in sync with the physical world. De-syncing noted by drahn@ while zapping disklabels with dd. ok jsing@ deraadt@
2011-01-14- use nitems()Jasper Lievisse Adriaanse
"doesn't hurt" deraadt@
2011-01-04Use pmap_uncache_page() to alter cacheability of pages in bus_dmamem_map()Miod Vallat
instead of playing with pte bits directly; this will cause cacheability to be restored eventually; makes the zaurus textmode console memory cached again after exiting from X. ok drahn@
2011-01-04Introduce pmap_uncache_page(), created from the guts of pmap_kenter_cache()Miod Vallat
to make a page uncached and maintain this both at the pte and pv list level, and make pmap_kenter_cache() use it. ok drahn@
2010-12-26Kill pmap_phys_address(), and force every driver's mmap() routine to returnMiod Vallat
a physical address [more precisely, something suitable to pass to pmap_enter()'sphysical address argument]. This allows MI drivers to implement mmap() routines without having to know about the pmap_phys_address() implementation and #ifdef obfuscation.
2010-12-21Convert netisr to a normal soft interrupt instead of hanving MD codeClaudio Jeker
for it. This makes the netisr a real C function which will help further development. No noticable performance change on i386 and amd64. With input from kettenis@ and miod@ additional OKs mikeb@ and henning@
2010-12-15oops, i forgot to check in the BRKSIZ define in uvm, but deraadt thinksTed Unangst
its better as a per arch MD define anyway. all default to MAXDSIZ as before.
2010-12-06Change the signature of PMAP_PREFER from void PMAP_PREFER(..., vaddr_t *) toMiod Vallat
vaddr_t PMAP_PREFER(..., vaddr_t). This allows better compiler optimization when the function is inlined, and avoids accessing memory on architectures when we can pass function arguments in registers.
2010-12-06- remove unused/commented COMPAT_LINUX stuffJasper Lievisse Adriaanse
ok deraadt@
2010-12-04Introduce a new pci routine, pci_conf_size(), which returns the size of aMiod Vallat
given pcitag_t configuration address space. Currently, all pci controllers will return the usual 0x100 bytes of PCI configuration space, but this will eventually change on PCIe-capable controlers. ok kettenis@
2010-11-28Remove inapplicable or no longer used cdevsw[] entries and macros.Miod Vallat
2010-11-28This file redefines the IRQdisable and IRQenable macros, but never uses them,Miod Vallat
so why bother.
2010-11-28Get rid of machdep.debug, machdep.booted_device and machdep.booted_kernelMiod Vallat
sysctl. Only the first one is really implemented, and it only matters on older processor flavours we don't run on (and don't want to), so this was just dead weight.
2010-11-27Rework the way saved registers are displayed in arm backtraces, to yield aMiod Vallat
more compact layout, and use fewer lines. Requested by espie@ long ago due to the small zaurus screen size.
2010-11-27Get rid of the global pmap list and related debug code. While there, mergeMiod Vallat
pmap_pinit() into pmap_create(). Help and ok drahn@
2010-11-27Remove ddb single-step load and store counters. Most platforms do notMiod Vallat
implement them, and they are of questionable usefulness.
2010-11-26Oops, removed a few lines too many in previous change.Miod Vallat
2010-11-22Remove old pcons leftover defines.Miod Vallat
2010-11-22Remove unused VM_MAX_KERNEL_BUF define.Miod Vallat
2010-11-20This is a first step towards getting rid of avail_start and avail_end in theMiod Vallat
kernel, currently limited to low-hanging fruit: these variables were used by bus_dma to specify the range in which to allocate memory, back when uvm_pglistalloc() was stupid and would not walk the vm_physseg[]. Nowadays, except on some platforms for early initialization, these variables are not used, or do not need to be global variables. Therefore: - remove `extern' declarations of avail_start and avail_end (or close cousins, such as arm physical_start and physical_end) from files which no longer need to use them. - make them local variables whenever possible. - remove them when they are assigned to but no longer used.
2010-11-20Do not attempt to include <machine/psl.h> when including this file fromMiod Vallat
assembly code (_KERNEL && _LOCORE)
2010-11-19miscellanous->miscellaneousMiod Vallat
2010-09-28Implement a per-cpu held mutex counter if DIAGNOSTIC on all non-x86 platforms,Miod Vallat
to complete matthew@'s commit of a few days ago, and drop __HAVE_CPU_MUTEX_LEVEL define. With help from, and ok deraadt@.