summaryrefslogtreecommitdiff
path: root/sys/arch/arm
AgeCommit message (Collapse)Author
2015-12-12comment typommcc
2015-11-05Fix build with DEBUG_INTC defined; from Daniel Bolgheroni on tech@Miod Vallat
2015-11-01Remove the definition of USRTEXT. It has no relevance outside of the non-PIEMiod Vallat
a.out world. ok deraadt@ kettenis@
2015-10-23Allocate a new major for tap(4) also note that pseudo-device tun is for tapClaudio Jeker
as well. OK dlg@ mpi@
2015-10-21Do not call uvm_swap_finicrypt_all() a second time in dumpsys().Martin Pieuchot
ok tedu@, deraadt@, miod@
2015-09-30Use #ifndef _MACHINE_DISKLABEL_H_ everywhere. Replace _ARM_DISKLABEL_H_Kenneth R Westerback
and _SH_DISKLABEL_H_ with _MACHINE_DISKLABEL_H_. Add the guard to loongson and octeon. The #defines are not used anywhere else in the tree so no functional change.
2015-09-30Use consistant whitespace/comments for #define'ing LABELSECTOR,Kenneth R Westerback
LABELOFFSET and MAXPARTITIONS. Easier on the eye when scanning through all these files. No functional change.
2015-09-27Use readdisksector() instead of manual buf initialization. These areKenneth R Westerback
identical to the amd64 change already committed. ok deraadt@
2015-09-26lint is dead and C99 may be old enough to drive a car: delete LONGLONGPhilip Guenther
comments ok millert@
2015-09-19intr_barrier(9) for armJonathan Gray
ok kettenis@
2015-09-12Explicitely include <arm/armreg.h> here instead of expecting previouslyMiod Vallat
included files to bring it in.
2015-09-08Give the pool page allocator backends more sensible names. We now have:Mark Kettenis
* pool_allocator_single: single page allocator, always interrupt safe * pool_allocator_multi: multi-page allocator, interrupt safe * pool_allocator_multi_ni: multi-page allocator, not interrupt-safe ok deraadt@, dlg@
2015-08-30Provide remaining arch with END() macro for setting calculated size onPhilip Guenther
symbols in ASM ok deraadt@ mpi@
2015-08-29_NLIST_DO_ELF is no longer needed: it's the only optionPhilip Guenther
ok deraadt@
2015-08-18Fix inconsistent spelling of `inconsistent'Miod Vallat
2015-08-15Remove orphaned debug code.Miod Vallat
2015-07-17remove obsolete INET kernel optionTed Unangst
2015-07-15The exynos gic is not at a fixed offset from periphbase unlikeJonathan Gray
the other socs. Handle this by setting variables in exynos{4,5}_init functions and calling the board_init callback earlier. tested by and ok bmercer@
2015-06-29Implement membar_* for armv7 with the dmb instruction. The previousJonathan Gray
sys/sys/atomic.h default of __sync_synchronize() resulted in "dmb sy", a full system barrier for all memory operations. With this change membar_producer() switches to "dmb st" (StoreStore). earlier version ok rapha@
2015-06-24Remove unused KERNEL_PD_SIZE macro which performs unsafe signed shift ofMiod Vallat
KERNEL_BASE.
2015-06-13When investigating an uninitialised variable in the armv7 resettodr()Jonathan Gray
miod pointed out that time_second should be compared to 1 not 0 in the md resettodr() functions as it is initialised to 1. ok miod@ deraadt@
2015-06-08At some point arm moved to a unified syntax for arm and thumb instructions.Jonathan Gray
While binutils supports both "unified" and "divided" syntax (defaulting to divided) the integrated assembler in clang only supports unified names so switch some files to unified syntax. Similiar changes were made in bitrig and freebsd. No difference in objdump -d output. tested on zaurus by deraadt@, ok miod@
2015-06-06Add some changes from Patrick Wildt in bitrig that are required to makeJonathan Gray
the qemu cortex a15 useable without trustzone. Establish the interrupt for the non-secure physical timer (30), in addition to the secure physical timer (29). Stop masking the timer output signal in the interrupt handler.
2015-06-05Use p15 for the coprocessor name not 15. gas accepts both forms, clangJonathan Gray
won't accept just a number which a comment in the gas code mentions is for backward compatibility.
2015-06-02with binutils 2.17 we can change some raw opcodes into instruction namesJonathan Gray
ok miod@ deraadt@
2015-05-29add some more cortex A idsJonathan Gray
2015-05-29Remove unused bus space tags/handles. The generic timer uses the cp15Jonathan Gray
coprocessor space.
2015-05-28when machdep.allowaperture sysctl is set to 3, allow concurrent accessJoshua Stein
2015-05-20ARM L2C driver is only relevant on Cortex-A9 machines.Jonathan Gray
From Patrick Wildt in bitrig.
2015-05-15add some missing splx() callsJonathan Gray
ok deraadt@ kettenis@ krw@
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@