summaryrefslogtreecommitdiffstats
path: root/sys/arm/include
Commit message (Collapse)AuthorAgeFilesLines
* Start all license statements with /*-imp2005-01-0540-43/+39
|
* Make sure gcc doesn't generate something such as swp r3, r4, [r3] for __swp,cognet2004-12-181-1/+1
| | | | as it has unpredictable results.
* Remove an unused field from the struct pv_entry.cognet2004-12-051-4/+3
| | | | While I'm there, fix style.
* Implement breakpoints and single stepping on arm.cognet2004-11-212-6/+13
| | | | Obtained from: NetBSD
* Implement enough to be able to enter and leave DDB.cognet2004-11-202-3/+20
|
* Get the kernel stack right now that the u-area is gone.cognet2004-11-201-1/+1
|
* Remove UAREA_PAGES and USPACE definitions. The definitions ofdas2004-11-201-9/+1
| | | | | | | | USPACE_SVC_STACK_TOP, USPACE_SVC_STACK_BOTTOM, USPACE_UNDEF_STACK_TOP, and USPACE_UNDEF_STACK_BOTTOM look wrong to me, so I'm leaving them alone. Reviewed by: arch@
* Import a RET macro, that will use bx if the arch supports it.cognet2004-11-091-0/+36
| | | | Obtained from: NetBSD
* Import md bits for mem(4) on arm.cognet2004-11-072-45/+44
| | | | While I'm there, cleanup a bit pmap.h.
* Disable interrupts for atomic_cmpset_32, this one is just not atomic.cognet2004-11-051-10/+13
| | | | Don't export it to userland.
* Protect the function declarations with #ifdef _KERNEL.cognet2004-11-041-0/+2
|
* Directly use __pcpu for PCPU_* instead of pcpup.cognet2004-11-041-3/+4
|
* Decrease KSTACK_PAGES and UAREA_PAGES.cognet2004-11-041-2/+2
|
* Use interrupts_disable() and interrupts_restore() as intr_disable() andcognet2004-11-041-24/+6
| | | | intr_restore() instead of re-implement it.
* Don't barf if no CPU type is defined while compiling kernel modules.cognet2004-11-041-2/+2
|
* Implement get_cyclecount().cognet2004-11-041-1/+7
|
* Try to implement atomic operations using swp, instead of disabling interrupts.cognet2004-11-041-76/+65
|
* Use casts to enforce the return type of bswap16() and bswap32().cognet2004-11-041-6/+6
|
* Add optimized version of the bswap macroes for constants if __OPTIMIZED__ iscognet2004-10-011-2/+30
| | | | defined.
* Remove the empty definition of struct osigcontext, as it will never be used.cognet2004-09-231-3/+0
|
* Remove the pcb32_cstate field of struct pcb.cognet2004-09-231-1/+0
|
* Declare sigcode and szsigcode.cognet2004-09-231-0/+3
|
* Define VM_PROT_READ_IS_EXEC.cognet2004-09-231-0/+1
|
* Implement _mcount().cognet2004-09-231-49/+52
| | | | Obtained from: NetBSD
* Define STACKALIGNBYTES and STACKALIGN.cognet2004-09-231-0/+2
|
* We are using _mcount, not __mcount.cognet2004-09-231-6/+1
| | | | Remove the !__ELF__ case.
* Add new functions to know which irqs are pending, and to mask and unmaskcognet2004-09-231-35/+4
| | | | | | interrupts, as these are CPU specific. If the interrupt handler is not marked as INTR_FAST, don't unmask the interrupt until it as been serviced.
* Rename macroes, as we don't need to mess with alignment faults.cognet2004-09-231-41/+14
| | | | Call ast() if TDF_NEEDRESCHED is set too, not just TDF_ASTPENDING.
* Remove bus_space_vaddr(), it does not exists in FreeBSD.cognet2004-09-231-17/+35
|
* Add MD syscalls to sync the icache and to drain the write buffer.cognet2004-09-231-0/+66
| | | | Obtained from: NetBSD
* Implement pmap_growkernel() and pmap_extract_and_hold().cognet2004-09-232-100/+26
| | | | | | | | | Remove the cache state logic : right now, it provides more problems than it helps. Add helper functions for mapping devices while bootstrapping. Reorganize the code a bit, and remove dead code. Obtained from: NetBSD (partially)
* Move the kernel-specific logic to adjust frompc from MI to MD. Formarcel2004-08-271-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | these two reasons: 1. On ia64 a function pointer does not hold the address of the first instruction of a functions implementation. It holds the address of a function descriptor. Hence the user(), btrap(), eintr() and bintr() prototypes are wrong for getting the actual code address. 2. The logic forces interrupt, trap and exception entry points to be layed-out contiguously. This can not be achieved on ia64 and is generally just bad programming. The MCOUNT_FROMPC_USER macro is used to set the frompc argument to some kernel address which represents any frompc that falls outside the kernel text range. The macro can expand to ~0U to bail out in that case. The MCOUNT_FROMPC_INTR macro is used to set the frompc argument to some kernel address to represent a call to a trap or interrupt handler. This to avoid that the trap or interrupt handler appear to be called from everywhere in the call graph. The macro can expand to ~0U to prevent adjusting frompc. Note that the argument is selfpc, not frompc. This commit defines the macros on all architectures equivalently to the original code in sys/libkern/mcount.c. People can take it from here... Compile-tested on: alpha, amd64, i386, ia64 and sparc64 Boot-tested on: i386
* Instead of calling ia32_pause() conditionally on __i386__ or __amd64__mux2004-08-031-0/+1
| | | | | | | | | being defined, define and use a new MD macro, cpu_spinwait(). It only expands to something on i386 and amd64, so the compiled code should be identical. Name of the macro found by: jhb Reviewed by: jhb
* *blush*cognet2004-08-021-2/+2
| | | | Fix htonl and htons.
* Fix comments.cognet2004-08-021-2/+3
| | | | Spotted out by: mux
* Correct typo in prior commit: s/cd/td/rwatson2004-07-271-1/+1
|
* Pass a thread argument into cpu_critical_{enter,exit}() rather thanrwatson2004-07-271-4/+4
| | | | | | | | | dereference curthread. It is called only from critical_{enter,exit}(), which already dereferences curthread. This doesn't seem to affect SMP performance in my benchmarks, but improves MySQL transaction throughput by about 1% on UP on my Xeon. Head nodding: jhb, bmilekic
* Do not declare curpcb.cognet2004-07-211-1/+1
|
* Define pmap_page_is_mapped().cognet2004-07-211-0/+1
|
* Nuke disable_intr() and enable_intr(), as it already exists elsewhere.cognet2004-07-202-5/+3
|
* Make FLT_ROUNDS correctly reflect the dynamic rounding mode.das2004-07-191-2/+2
|
* Update to kdb.cognet2004-07-121-6/+2
|
* Remove the kbd_trap() declaration.cognet2004-07-121-2/+0
|
* Protect setjmp.h with #ifndef _MACHINE_SETJMP_H_.cognet2004-07-121-0/+3
|
* Forward declare "struct pcb", so that one does not need to includecognet2004-07-121-0/+2
| | | | <machine/pcb.h> before including <machine/pmap.h>.
* Implement a stub breakpoint().cognet2004-07-121-0/+5
|
* Prototype makectx().cognet2004-07-121-0/+2
|
* Import bus_memio.h and bus_pio.h for arm.cognet2004-07-122-0/+66
|
* Import a kdb.h for arm, which contains stubs right now.cognet2004-07-121-0/+50
|
* Nuke bus_space_mmap(), as it does not exist in FreeBSD.cognet2004-06-171-9/+0
|
OpenPOWER on IntegriCloud