summaryrefslogtreecommitdiffstats
path: root/sys/sparc64/include/param.h
Commit message (Collapse)AuthorAgeFilesLines
* Make PAGE_SIZE and related quantities signed on sparc64. (They are signedalc2003-10-031-4/+4
| | | | | | quantities on every other architecture.) This change is required in order to move pmap_prefault() out of the pmap and into the machine-independent layer.
* Deal with 'options KSTACK_PAGES' being a global option.peter2003-07-311-0/+2
|
* Migrate the thread stack management functions from the machine-dependentalc2003-06-141-2/+1
| | | | | | | | | | | | | | | | to the machine-independent parts of the VM. At the same time, this introduces vm object locking for the non-i386 platforms. Two details: 1. KSTACK_GUARD has been removed in favor of KSTACK_GUARD_PAGES. The different machine-dependent implementations used various combinations of KSTACK_GUARD and KSTACK_GUARD_PAGES. To disable guard page, set KSTACK_GUARD_PAGES to 0. 2. Remove the (unnecessary) clearing of PG_ZERO in vm_thread_new. In 5.x, (but not 4.x,) PG_ZERO can only be set if VM_ALLOC_ZERO is passed to vm_page_alloc() or vm_page_grab().
* Get rid of the TODO macro in the few places that still need work; eitherjake2002-10-011-3/+0
| | | | | comment it out or change to explicit panics. It conflicts with things like #if TODO in drivers.
* Initiate deorbit burn for the i386-only a.out related support. Moves arepeter2002-09-171-7/+0
| | | | | | | | | | | | | | | under way to move the remnants of the a.out toolchain to ports. As the comment in src/Makefile said, this stuff is deprecated and one should not expect this to remain beyond 4.0-REL. It has already lasted WAY beyond that. Notable exceptions: gcc - I have not touched the a.out generation stuff there. ldd/ldconfig - still have some code to interface with a.out rtld. old as/ld/etc - I have not removed these yet, pending their move to ports. some includes - necessary for ldd/ldconfig for now. Tested on: i386 (extensively), alpha
* Move MI stuff out of MD param.h files.phk2002-05-141-41/+0
| | | | It can all still be overridden in the MD files should need suddenly arise.
* Move the CTASSERT macro from MD code to systm.h alongside KASSERT so otherjake2002-04-011-4/+0
| | | | | | | | | | | | code can use it. This takes a single constant argument and fails to compile if it is 0 (false). The main application of this is to make assertions about structure sizes at compile time, in order to validate assumptions made in other code. Examples: CTASSERT(sizeof(struct foo) == FOO_SIZEOF); CTASSERT(sizeof(struct foo) == (1 << FOO_SHIFT)); Requested by: jhb, phk
* Parameterize the number of pages to allocate for the per-cpu area onjake2002-02-271-0/+1
| | | | PCPU_PAGES.
* Add a macro for shift of an integer (1 << shift == sizeof). Move the pointerjake2002-02-271-0/+3
| | | | | define to live alongside it. For kicks assert at compile time that they are correct. Use these instead of magic numbers.
* Remove PANIC_STACK_PAGES which is no longer used.jake2002-01-081-5/+3
| | | | Redefine the compile time assertion macro to take one parameter.
* Add a panic stack, which is used as a known good stack when there isjake2002-01-011-2/+4
| | | | | | something wrong with the kernel stack. Add code to check the kernel stack pointer in various important places and try hard not to go down in flames if its wrong.
* Don't concatentate __func__.jake2001-12-291-5/+9
| | | | | Make page size constants explicitly long and unsigned. Add a macro for compile time assertions.
* Header file updates needed for the cache code: add/correct some ASItmm2001-11-091-0/+6
| | | | definitions and add PAGE_*_MIN and -_MAX macros.
* Move the pcb the to the top of the kernel stack.jake2001-09-301-3/+2
| | | | | | | | Add a guard page at the bottom of the kernel stack. Its unclear how easy it will be to detect these faults and do something useful. Setup the registers on exec how the c runtime expects. Implement various {fill,set}_*regs. Fix proc locking.
* KSE Milestone 2julian2001-09-121-1/+5
| | | | | | | | | | | | | | Note ALL MODULES MUST BE RECOMPILED make the kernel aware that there are smaller units of scheduling than the process. (but only allow one thread per process at this time). This is functionally equivalent to teh previousl -current except that there is a thread associated with each process. Sorry john! (your next MFC will be a doosie!) Reviewed by: peter@freebsd.org, dillon@freebsd.org X-MFC after: ha ha ha ha
* Bump UPAGES to 4. The pcb can be rather large.jake2001-09-031-1/+1
|
* Flesh out the sparc64 port considerably. This contains:jake2001-07-311-23/+25
| | | | | | | | | - mostly complete kernel pmap support, and tested but currently turned off userland pmap support - low level assembly language trap, context switching and support code - fully implemented atomic.h and supporting cpufunc.h - some support for kernel debugging with ddb - various header tweaks and filling out of machine dependent structures
* Add skeleton machine dependent headers and c files for a port of freebsdjake2001-07-311-0/+165
to a new architecture. This is the base of the sparc64 port, but contains limited machine dependent code, and can be used a base for ports. Included are: - standard machine dependent headers, tweaked for a 64 bit, big endian architecture, including empty versions of all the machine dependent structures - a machine independent atomic.h, which can be used until a port has support for interrupts and the operations really need to be atomic - stub versions of all the machine dependent functions, which panic when called and print out the name of the function that needs to be implemented. functions which are normally in assembly files are not included, but this should reduce the number of different undefined references on the first few compiles from hundreds to 5 or 6 Given minimal startup code and console support it should be trivial to make this compile and run the first few sysinits on almost any architecture. Requested by: alfred, imp, jhb
OpenPOWER on IntegriCloud