summaryrefslogtreecommitdiff
path: root/sys/arch/arm
AgeCommit message (Collapse)Author
2015-05-10VM_MAX_KERNEL_ADDRESS is the end of the kva range not the end ofJonathan Gray
addressable virtual memory space but arm ports were using a value of 0xffffffff for this. Instead of using a shared VM_MAX_KERNEL_ADDRESS define add md VM_KERNEL_SPACE_SIZE defines based on the KERNEL_VM_SIZE values from the respective machdep.c files. djm's novena was hitting "panic: bufinit: can't reserve VM for buffers" without a similiar change. ok miod@
2015-05-07fix indentationJonathan Gray
ok miod@
2015-05-05emul_native is only used for kernel threads which can't dump core, soPhilip Guenther
delete coredump_trad(), uvm_coredump(), cpu_coredump(), struct md_coredump, and various #includes that are superfluous. This leaves compat_linux processes without a coredump callback. If that ability is desired, someone should update it to use coredump_elf32() and verify the results... ok kettenis@
2015-04-30Remove SIZE_MAX from limits.h. It was added years ago before weTodd C. Miller
had a proper stdint.h. No ports fallout. OK guenther@ miod@
2015-02-15Change pmap_remove_holes() to take a vmspace instead of a map as its argument.Miod Vallat
Use this on vax to correctly pick the end of the stack area now that the stackgap adjustment code will no longer guarantee it is a fixed location.
2015-02-10Convert to uiomove().Miod Vallat
ok guenther@
2015-02-10First step towards making uiomove() take a size_t size argument:Miod Vallat
- rename uiomove() to uiomovei() and update all its users. - introduce uiomove(), which is similar to uiomovei() but with a size_t. - rewrite uiomovei() as an uiomove() wrapper. ok kettenis@
2015-02-07Oh well, APM_USER_HIBERNATE_REQ being used in MI code, needs to be definedMiod Vallat
in all MD apmvar.h.
2015-02-07Tedu the old idle page zeroing code.Mark Kettenis
ok tedu@, guenther@, miod@
2015-02-05unbreak after previous macro removal.Martin Pieuchot
2015-02-02Remove some pmap locks that were #defined to be nothing (empty). DiscussedMike Larkin
with many, ok kettenis@.
2015-01-29remove no-op simple locksTheo de Raadt
tested by jsg, ok miod
2015-01-18When restoring spsr values when handling traps use spsr_fsxc insteadJonathan Gray
of spsr_all so all the bits are restored. Using the msr instruction with spsr_all is treated the same as spsr_fc and does not include the status and extension fields (bits 23:8). This fixes the problem of some i.MX6 machines powering up with the big endian bit set in the extension field causing them to crash on returning from the first interrupt. From NetBSD.
2015-01-18Switch some uses of msr that only deal with interrupts/mode to useJonathan Gray
just the control field ('c' bits 7:0) instead of 'all' which includes the flags field ('f' bits 31:24) which isn't modified.
2015-01-18The 'mrs' instruction only deals with the whole register withoutJonathan Gray
masking. Remove the use of cpsr_all/spsr_all with 'mrs' and just use the register names. This matches the arm docs and avoids confusion as cpsr_all/spsr_all don't include bits 23->8 when used with the 'msr' instruction but do with 'mrs'.
2015-01-18The 'mrs' instruction only deals with the whole register withoutJonathan Gray
masking. Remove the use of cpsr_all/spsr_all with 'mrs' and just use the register names. This matches the arm docs and avoids confusion as cpsr_all/spsr_all don't include bits 23->8 when used with the 'msr' instruction but do with 'mrs'.
2015-01-18unifdef IPKDB. These codepaths are holdouts from NetBSD code and areJonathan Gray
not used.
2015-01-17Add an ascii bit/field diagram for armv7-a psr to match theJonathan Gray
existing one for earlier arm revisions.
2015-01-12Enable lid suspends by default in the kernel, and remove the question fromTheo de Raadt
the installer. We used a full release cycle to learn that suspend/resume is reliable enough for this default. Personal policy can disable this using machdep.lidsuspend=0 in /etc/sysctl.conf ok more people begging, and less people whining
2015-01-11armv6 introduced opcodes for reversing words in registers. we canDavid Gwynne
use these on armv7 as a backend for byteswapping things that endian.h provide. i dunno if its faster, but it makes smaller code. saves 30k on GENERIC-OMAP. ok jsing@ bmercer@ jsg@
2015-01-01Always drain the write buffer on pte sync. Needed for Cortex A7/A15Jonathan Gray
which have integrated L2 so changes will get flushed to memory ASAP. From Patrick Wildt in Bitrig via rapha@ ok miod@
2014-12-30Remove redundant md memcpy.S and memmove.S lines. The mi configJonathan Gray
definitions will find the md .S files for these.
2014-12-22unifdef INETTed Unangst
2014-12-13yet more mallocarray() changes.Doug Hogan
ok tedu@ deraadt@
2014-12-11dragonflybsd has added a urio driver. conservation of urios requiresTed Unangst
that we delete ours, which isn't actually useful. ok mpi sthen
2014-12-09Replace some malloc(n*size,...) calls with mallocarray().Doug Hogan
ok tedu@ deraadt@
2014-11-18Nuke some obvious #include duplications.Kenneth R Westerback
ok espie@ deraadt@ millert@ tedu@
2014-11-16Replace a plethora of historical protection options with justTheo de Raadt
PROT_NONE, PROT_READ, PROT_WRITE, and PROT_EXEC from mman.h. PROT_MASK is introduced as the one true way of extracting those bits. Remove UVM_ADV_* wrapper, using the standard names. ok doug guenther kettenis
2014-11-14implement the atomic_foo things on arm.David Gwynne
testing and ok jsg@
2014-10-27use #ifdef DDB for Debugger()Jonathan Gray
2014-10-18Remove even more unnecessary `needs-flag' attributes from config machinery,Miod Vallat
as well as useless include of the generated flag files.
2014-10-09disassem.c only if ddb; ok miodTheo de Raadt
2014-10-09mechanical translation of dev_lkm_dummy() to dev_notdef()Ted Unangst
2014-10-09remove LKM devicesTed Unangst
2014-10-08Add offsets for cortex-A7/A15. Adapted from bitrig.Raphael Graf
ok jsg@ bmercer@
2014-10-07Use L1_S_V7_AP instead of L1_S_AP for the v7 caseJonathan Gray
otherwise the high bit of AP will end up in TEX.
2014-10-07Correct the l1 pte permission bits for armv7. Problem pointed outJonathan Gray
by Patrick Wildt who made a similiar change in Bitrig. ok miod@ rapha@
2014-09-30Increase text segment size on Arm to 32MBTobias Ulmer
ok deraadt@ miod@
2014-09-20Use config_suspend_all(9).Mark Kettenis
ok mpi@, uebayasi@, dlg@
2014-09-13Replace all queue *_END macro calls except CIRCLEQ_END with NULL.Doug Hogan
CIRCLEQ_* is deprecated and not called in the tree. The other queue types have *_END macros which were added for symmetry with CIRCLEQ_END. They are defined as NULL. There's no reason to keep the other *_END macro calls. ok millert@
2014-08-21Kill the remaining <netinet/in_systm.h> inclusion!Martin Pieuchot
2014-08-20unlink crypto(4) pseudo device from the architecture dependant characterMike Belopuhov
device tables and kernel config files. ok deraadt
2014-07-13use nitems() instead of handrolling something identicalJasper Lievisse Adriaanse
ok mpi@ sthen@
2014-07-12add a size argument to free. will be used soon, but for now default to 0.Ted Unangst
after discussions with beck deraadt kettenis.
2014-07-12Tackle the endian.h mess. Make it so that:Philip Guenther
* you can #include <sys/endian.h> instead of <machine/endian.h>, and ditto <endian.h> (fixes code that pulls in <sys/endian.h> first) * those will always export the symbols that POSIX specified for <endian.h>, including the new {be,le}{16,32,64}toh() set. c.f. http://austingroupbugs.net/view.php?id=162 if __BSD_VISIBLE then you also get the symbols that our <machine/endian.h> currently exports (ntohs, NTOHS, dlg's bemtoh*, etc) * when doing POSIX compiles (not __BSD_VISIBLE), then <netinet/in.h> and <arpa/inet.h> will *stop* exporting the extra symbols like BYTE_ORDER and betoh* ok deraadt@
2014-07-11CPU_BUSY_CYCLE(): A new MI statement for busy loop power reductionMasao Uebayashi
The new CPU_BUSY_CYCLE() may be put in a busy loop body so that CPU can reduce power consumption, as Linux's cpu_relax() and FreeBSD's cpu_spinwait(). To start minimally, use PAUSE on i386/amd64 and empty on others. The name is chosen following the existing cpu_idle_*() functions. Naming and API may be polished later. OK kettenis@
2014-07-11Convert bus_dmamem_map(9) to km_alloc(9) in order to make it fail andMartin Pieuchot
not sleep if the allocator cannot obtain a lock when BUS_DMA_NOWAIT is specified. idea and inputs from kettenis@, ok miod@
2014-07-10KNF.Masao Uebayashi
2014-07-10boot(): Remove comments about RB_TIMEBAD to reduce diffsMasao Uebayashi
RB_TIMEBAD is documented well enough that the comment is not needed. sparc64 does slightly different and its comment is left with XXX. OK deraadt@ miod@
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@