tangled
alpha
login
or
join now
jcs.org
/
openbsd-src
0
fork
atom
jcs's openbsd hax
openbsd
0
fork
atom
overview
issues
pulls
pipelines
openbsd-src
/
sys
/
arch
/
arm
/
include
/
at
master
49 files
_float.h
create new machine/_float.h which is namespace clean. create a new MI float.h which pulls in and defines the values that are needed from there, and repair sys/limits.h so that it defines the values it needs as well (depending on POSIX version, XPG version, etc). guenther has a more exact selection of that coming for limits.h. this also fixes a few mistakes for the vax. reviewed by kettenis and guenther.
14 years ago
_types.h
arm, armv7: add clockintr support
3 years ago
apmvar.h
flense more trailing whitespace
7 years ago
armreg.h
Synch the cpu match/attach/identify code with arm64. This drops some information from dmesg that is no longer relevant to ARMv7 CPUs in favour of printing the full architected cache hierarchy in the same way as we do on arm64. It also is another small step towards SMP support on armv7.
6 years ago
asm.h
_C_LABEL() and _ASM_LABEL() are no longer useful in the "everything is ELF" world. Eliminate use of them in amd64, arm64, armv7, i386, macppc, mips64, and sparc64 code.
3 years ago
atomic.h
use ansi volatile keyword, not __volatile ok miod@ guenther@
3 years ago
bus.h
Let the armv7 bus_dma layer and simplebus(4) implementation deal with DMA remapping in the same way as arm64. This relies on the dma-ranges property in the device tree and allows us to get rid of the hack for the Raspberry Pi in the dwctwo(4) driver.
6 years ago
cdefs.h
Add __strong_alias macros for all architectures to be able to alias another symbol without weak attribute. To be used in libc and libm soon. Agreed by kettenis@, guenther@, matthew@.
13 years ago
conf.h
Remove unused field d_poll from struct cdevsw.
3 years ago
cpu.h
arm, armv7: add clockintr support
3 years ago
cpuconf.h
unifdef CPU_ARMv7 and ARM_ARCH_7 ok kettenis@ patrick@
9 years ago
cpufunc.h
ansi
4 years ago
db_machdep.h
Remove typedef of db_addr_t; mpi converted the users of it to vaddr_t already back in 2019.
4 years ago
disklabel.h
Use #ifndef _MACHINE_DISKLABEL_H_ everywhere. Replace _ARM_DISKLABEL_H_ 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.
10 years ago
endian.h
Unify the MD byteswapping code as much as possible across architectures. Use inline functions instead of GNU C statement expressions, and make them available to userland. With clues from guenther@.
7 years ago
exec.h
In exec_elf.c: expand ELFNAME(), ELFNAME2(), and ELFNAMEEND() except leaving out the size, so that ELFNAME2(exec,makecmds) becomes exec_elf_makecmds instead of exec_elf{32,64}_makecmds and then delete the ELFNAME2() and ELFNAMEEND() macros.
9 years ago
fdt.h
Extend the interrupt API on arm64 and armv7 to be able to pass around a struct cpu_info *. From a driver point of view the fdt_intr_establish_* API now also exist same functions with a *_cpu suffix. Internally the "old" functions now call their *_cpu counterparts, passing NULL as ci. NULL will be interpreted as primary CPU in the interrupt controller code.
5 years ago
fenv.h
Also enclose variable names with external linkage in __BEGIN_DECLS.
15 years ago
fiq.h
Arm port, NetBSD codebase stripped down, 32bit only support.
22 years ago
frame.h
_C_LABEL() and _ASM_LABEL() are no longer useful in the "everything is ELF" world. Eliminate use of them in amd64, arm64, armv7, i386, macppc, mips64, and sparc64 code.
3 years ago
ieee.h
remove support for big endian; ok drahn
14 years ago
ieeefp.h
Normalize sentinel. Use _MACHINE_*_H_ and _<ARCH>_*_H_ properly and consitently.
15 years ago
kcore.h
Kernel crash dump support for arm-based platform, with minimal support in libkvm, but all the necessary information for a complete _kvm_kvatop() is available in the crash dump.
19 years ago
limits.h
Remove SIZE_MAX from limits.h. It was added years ago before we had a proper stdint.h. No ports fallout. OK guenther@ miod@
11 years ago
machdep.h
If the value of r0 upon entering the kernel is zero, interpret this as the address of the end of the symbol table. This will make it possible to get rid of the code in the bootloader that patches up the kernel with the updated esym value.
9 years ago
mplock.h
Make it possible to build a MULTIPROCESSOR kernel on armv7. While this doesn't actually spin up any secondary CPUs, it does run. Mostly a cleanup of <machine/cpu.h> along the lines of what I did earlier on arm64. Makes armv7 use the MI mplock implementation and implements copyin32.
7 years ago
mutex.h
Convert armv7 to MI mutex.
8 years ago
openpromio.h
Implement openprom(4) for armv7.
10 years ago
param.h
Unify and bump some of the NMBCLUSTERS defines. Some archs had it set to 4MB which is far too low especially when the platform is able to run MP. New limits are, amd64 = 256M; arm64, mips64, sparc64 = 64M; alpha, arm, hppa, i386, powerpc = 32M; m88k, sh = 8M Still rather conservative numbers but much better than before. At least some hangs of arm64 build boxes was caused by this. OK kettenis@, visa@
7 years ago
pcb.h
Add kernel support for the VFP FPU/SIMD unit. Based on a diff by drahn@. This allows us to use floating-pointer and vector instructions in userland code. The current implementation assumes all 32 VFP registers are present. This should be the case on all armv7 hardware currently supported by OpenBSD.
8 years ago
pci_machdep.h
Use a 64-bit integer for pcitag_t and define PCITAG_NODE and PCITAG_OFFSET macros to make armv7 build again.
4 years ago
pmap.h
On systems without xonly mmu hardware-enforcement, we can still mitigate against classic BROP with a range-checking wrapper in front of copyin() and copyinstr() which ensures the userland source doesn't overlap the main program text, ld.so text, signal tramp text (it's mapping is hard to distinguish so it comes along for the ride), or libc.so text. ld.so tells the kernel libc.so text range with msyscall(2). The range checking for 2-4 elements is done without locking (because all 4 ranges are immutable!) and is inexpensive.
3 years ago
proc.h
Provide mips64 with kernel-facing TCB_{GET,SET} macros that store it in struct mdproc. With that, all archs have those and the __HAVE_MD_TCB macro can be unifdef'ed as always defined.
9 years ago
profile.h
Modernize arm assembly in the kernel for clang. Based on a similar diff in bitrig. No binary change when compiled with gcc.
9 years ago
pte.h
spelling
5 years ago
ptrace.h
Arm port, NetBSD codebase stripped down, 32bit only support.
22 years ago
reg.h
Revise 'struct fpreg' such that it can actually represent the full VFPv3-D32 state.
8 years ago
reloc.h
Add RCS id.
20 years ago
setjmp.h
Save and restore the relevant FPU state on armv7.
7 years ago
signal.h
Save and restore FPU registers around signal handlers. Fixes the random crashes in sh(1).
7 years ago
softintr.h
Remove "for all XXX platforms" from comment. Fixes the issue pointed out by miod@ where the powerpc64 claimed to be "for all AArch64 platforms".
5 years ago
spinlock.h
Move mutex, condvar, and thread-specific data routes, pthread_once, and pthread_exit from libpthread to libc, along with low-level bits to support them. Major bump to both libc and libpthread.
8 years ago
sysarch.h
Remove excessive sys/cdefs.h inclusion ok guenther millert kettenis
13 years ago
sysreg.h
Add macros to access cp14/cp15 registers by name instead of six arguments to instructions. Based on a file from FreeBSD.
10 years ago
tcb.h
The userspace TCB_GET() shouldn't take an argument
9 years ago
trap.h
Remove strange /* End of file */ style.
7 years ago
undefined.h
Store whether or not the VFP was active on entering the unhandled instruction trap and pass it to the VFP fault handler, so that it knows if we faulted with the VFP active or disabled. Reading the status in the VFP fault handler does not work since at that point the VFP already got disabled.
7 years ago
vfp.h
cululative -> cumulative
4 years ago
vmparam.h
Do not redefine PAGE_SHIFT/PAGE_SIZE/PAGE_MASK in vmparam.h; those definitions are already found in param.h ok jsg
8 years ago