summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include/pcb_ext.h
Commit message (Collapse)AuthorAgeFilesLines
* Commit MD parts of a loosely functional AMD64 port. This is based onpeter2003-05-011-20/+0
| | | | | | | | | | | | | | | | | | | | | | a heavily stripped down FreeBSD/i386 (brutally stripped down actually) to attempt to get a stable base to start from. There is a lot missing still. Worth noting: - The kernel runs at 1GB in order to cheat with the pmap code. pmap uses a variation of the PAE code in order to avoid having to worry about 4 levels of page tables yet. - It boots in 64 bit "long mode" with a tiny trampoline embedded in the i386 loader. This simplifies locore.s greatly. - There are still quite a few fragments of i386-specific code that have not been translated yet, and some that I cheated and wrote dumb C versions of (bcopy etc). - It has both int 0x80 for syscalls (but using registers for argument passing, as is native on the amd64 ABI), and the 'syscall' instruction for syscalls. int 0x80 preserves all registers, 'syscall' does not. - I have tried to minimize looking at the NetBSD code, except in a couple of places (eg: to find which register they use to replace the trashed %rcx register in the syscall instruction). As a result, there is not a lot of similarity. I did look at NetBSD a few times while debugging to get some ideas about what I might have done wrong in my first attempt.
* Remove __P.alfred2002-03-201-1/+1
|
* Split the per-process Local Descriptor Table out of the PCB and intojhb2001-10-251-11/+0
| | | | | | | struct mdproc. Submitted by: Andrew R. Reiter <arr@watson.org> Silence on: -current
* KSE Milestone 2julian2001-09-121-1/+1
| | | | | | | | | | | | | | 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
* - Use sched_lock and critical regions to ensure that LDT updates are threadjhb2001-05-101-0/+1
| | | | | | | safe from preemption and concurrent access to the LDT. - Move the prototype for i386_extend_pcb() to <machine/pcb_ext.h>. Reviewed by: silence on -hackers
* Activate USER_LDT by default. The new thread libraries are going topeter2001-02-231-2/+0
| | | | | | | | depend on this. The linux ABI emulator tries to use it for some linux binaries too. VM86 had a bigger cost than this and it was made default a while ago. Reviewed by: jhb, imp
* Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"peter1999-12-291-1/+1
| | | | | | is an application space macro and the applications are supposed to be free to use it as they please (but cannot). This is consistant with the other BSD's who made this change quite some time ago. More commits to come.
* User ldt sharing.luoqi1999-12-061-0/+18
|
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* A couple of missing doscmd header files. Messed up again. Now candyson1997-08-091-0/+46
compile the kernel!!! Submitted by: Jonathan Lemon <jlemon@americantv.com>
OpenPOWER on IntegriCloud