summaryrefslogtreecommitdiff
path: root/sys/arch/arm
AgeCommit message (Collapse)Author
2014-05-19There is no need to remember which usb(4) device is the child of an USBMartin Pieuchot
host controller because autoconf(9) already does it. Breakage reported by todd@
2014-05-11need syscall.h..Theo de Raadt
2014-05-11Move the increment of uvmexp.softs back to the caller of mi_ast():Philip Guenther
it needs to be done atomicly on some MP archs and we don't have atomic_add_int() everywhere yet. Also, mi_ast() was meant to be inline. noted by miod@
2014-05-11Pull in <sys/user.h> before <sys/syscall*.h>Philip Guenther
2014-05-10Factor out the common ast bits into mi_ast()Philip Guenther
ok deraadt@
2014-05-08Format string fixes and removal of -Wno-format for arm kernels.Miod Vallat
2014-04-18Have each thread keeps its own (counted!) reference to the process's ucredsPhilip Guenther
to avoid possible use-after-free references when swapping ids in threaded processes. "Do I have the right creds?" checks are always made with the threads creds. Inspired by FreeBSD and NetBSD "right time" deraadt@
2014-04-03More uvm_extern.h cleanup.Martin Pieuchot
2014-03-30Eliminates struct pcred by moving the real and saved ugids intoPhilip Guenther
struct ucred; struct process then directly links to the ucred Based on a discussion at c2k10 or so before noting that FreeBSD and NetBSD did this too. ok matthew@
2014-03-29It's been a quarter century: we can assume volatile is present with that name.Philip Guenther
ok dlg@ mpi@ deraadt@
2014-03-26Move p_emul and p_sigcode from proc to process.Philip Guenther
Tweak the handling of ktrace EMUL when changing ktracing: only generate one per process (not one per thread) and pass the correct proc pointer down to the VFS layer. Permit generating of NAMI and CSW records inside ktrace(2) itself. ok deraadt@ millert@
2014-03-22Move p_sigacts from struct proc to struct process.Philip Guenther
testing help mpi@
2014-03-19It's safe to assumed 'signed' existsPhilip Guenther
2014-03-16DDB supports ELF symbols are all archs, and it's always the same as thePhilip Guenther
native size, so eliminate the #defines. ok miod@
2014-03-13get rid of the assumption that the head of the alldevs list is theDavid Gwynne
"mainbus" device. this breaks when mpath is enabled because it attaches before mainbus and therefore takes the head position. have autoconf provide device_mainbus() which looks up mainbus_cd, and use that instead. discussed with deraadt who just wants mpath stuff to move forward despite there being many ways to shine this particular turd.
2014-01-30Move declaration of struct vm_page_md from <machine/vmparam.h> toMiod Vallat
<machine/pmap.h> where it belongs, and compensate in <uvm/uvm_extern.h> by including <uvm/uvm_pmap.h> before <uvm/uvm_page.h>. Tested on all MACHINE_ARCH but amd64 and i386 (and hppa64).
2014-01-26Attempt to make user changes of keyboard layout a bit more `sticky' on wsmuxMiod Vallat
kernels: - keyboard drivers will now tell wskbd if the keyboard layout they ask for is a default value, or a value they are 100% sure of (either because your kernel has a XXXKBD_LAYOUT option, or because the driver can tell the keyboard layout, e.g. by the country code on USB keyboards which provide it, such as Sun's) - when attaching a keyboard with a non-default layout, the layout will become the default layout of the mux for new keyboard attachments if the mux doesn't have a layout set already. - when changing the keyboard layout of a particular keyboard with an ioctl (i.e. using kbd(8) or wsconsctl(8)), the layout will become the default layout of the mux for new keyboard attachments. ok mpi@
2014-01-26Remove unnecessary <machine/pte.h> dependency.Miod Vallat
2014-01-24Remove _KERNEL guard around <sys/lock.h>, for userland to be able toMiod Vallat
process the definition of struct vm_page_md.
2014-01-24Do not protect struct vm_page_md with defined(_KERNEL), for userland uvmMiod Vallat
grovellers need to know it to be able to get the right size for struct vm_page.
2014-01-23unifdef -D__HAVE_VM_PAGE_MD - no functional change.Miod Vallat
2013-12-18Provide MI symbol _STACKALIGNBYTESTheo de Raadt
2013-12-06Add a DVACT_WAKEUP op to the *_activate() API. This is called after theTheo de Raadt
kernel resumes normal (non-cold, able to run processes, etc) operation. Previously we were relying on specific DVACT_RESUME op's in drivers creating callback/threads themselves, but that has become too common, indicating the need for a built-in mechanism. ok dlg kettenis, tested by a sufficient amount of people
2013-11-261 << 31 cleanup. Eitan Adler pointed out that there has been aTheo de Raadt
resurrection of the bad idiom in the tree. sufficient review by miod, kettenis, tedu
2013-11-20oops, typoTheo de Raadt
2013-11-18simplify kthread_create(). no more stdargTheo de Raadt
ok matthew guenther mikeb
2013-11-05Add a stub for the new MD hook needed to handle ACPI Power Resources.Martin Pieuchot
ok kettenis@
2013-11-04remove iop(4) driver. it is entirely unmaintained and supports somethingTheo de Raadt
which basically doesn't exist at all. reminded about it by brad
2013-11-04move the arm pmaps away from pool ctors to just initting memory after itsDavid Gwynne
been allocated. also gets rid of a potential bug where pool_get could return NULL and pmap_alloc_l2_ptp tried to blindly init it. tests, tweaks, and ok patrick@
2013-10-29The cache mask for ARMv7 is a little bit different from the one inited byPatrick Wildt
the generic function. While there, also set the cache bits manually. ok aalm@
2013-10-24add rcsidsaalm
ok jasper@, patrick@
2013-10-24remove useless headersaalm
ok jasper@, patrick@
2013-10-22Some current boards do not have write-through caching. For those,Patrick Wildt
we enable write-back, but it seems this is not working and those boards hang on bootup. Until that is fixed, do not cache PTEs on those boards.
2013-10-21Add load_font and list_font accessops to all rasops-based wsdisplay drivers.Miod Vallat
Trivial except for tga(4) and gpx(4/vax) which need a bit more care setting up a new font.
2013-10-19Use daddr_t * instead of int * for the partoffp parameter toKenneth R Westerback
readdoslabel(). Ditto all the MD variables whose addresses are passed to readdoslabel() via partoffp. Fix some 512-byte block vs disk sector confusion in hppa and sgi. All the DL_GETxxxxx() defines return disk sector values. All DL_SETxxxx() take disk sector values. These changes should be no-ops until a drive using non-512-byte-sectors is encountered. ok deraadt@
2013-09-12Store curpcb in cpu_info instead of a global variable, for SMP.Patrick Wildt
ok rapha@
2013-09-12Rename cpu_info_store to cpu_info_primary. Create an array of cpu_infosPatrick Wildt
for SMP, like on amd64. Add some SMP defines. ok rapha@
2013-09-10Store the current interrupt depth in curcpu, so that it's per CPUPatrick Wildt
and not just a global variable. ok rapha@
2013-09-09Support for the ARM Generic Timer used in the Cortex-A7 and Cortex-A15.Patrick Wildt
2013-09-06Instead of printing on spurious interrupts, use an event counter to showPatrick Wildt
how many of those there have been.
2013-09-03Rewrite the ARMv7 cache discovery, as some assumptions in the previous onePatrick Wildt
were utterly wrong. Fix Log2(), correct one taken from the scheduler code. Tested by rapha@ and Artturi Alm.
2013-08-30Due to our current version of binutils not knowing newer ARMv7 instructionsPatrick Wildt
we define DSB/ISB (Data/Instruction Synchronization Barrier) manually. There are multiple options for those instructions, i. e. "full system operation", which is the default of those. The defines we used were not the defaults we assumed they were, but some other option which might not actually exist. In the future we could try using DSB/ISB as a Mask and add the correct option value. For now, just fix those values. ok rapha@
2013-08-20Remove uscanner(4). It was disabled in GENERIC more than 2.5 years ago.Antoine Jacoutot
No regression has been reported since libusb became the prefered solution to work with USB scanners. req. by mpi@ ok ian@ mpi@ miod@
2013-08-08Remove duplicate loop.Raphael Graf
ok patrick@
2013-08-07We uniformly define size_t to be unsigned long and ssize_t to be long. MakeMark Kettenis
sure that SIZE_MAX and SSIZE_MAX are defined as constants with a matching type on all are architectures. ok millert@, matthew@
2013-08-06add Cortex A15 R4Jonathan Gray
ok patrick@
2013-08-06The Cortex bus should be useful for Cortex-A7, too.Patrick Wildt
ok rapha@ jsg@
2013-08-06Attach amptimer only on Cortex-A9, as all Cortex-A8 doesn't have a genericPatrick Wildt
timer and the newer Cortexes have another generic timer. ok rapha@ jsg@
2013-07-13unify register_t to long on all platformsTheo de Raadt
ok miod kettenis
2013-07-11Enable bus_space_set_region_4 for armv7.Raphael Graf
ok patrick@