summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include/sysarch.h
Commit message (Collapse)AuthorAgeFilesLines
* Implement 32-bit compatable fsbase/gsbase methods so that we can runpeter2005-04-141-0/+5
| | | | (newer) unmodified static i386 binaries again.
* Remove advertising clause from University of California Regent's license,imp2004-04-051-4/+0
| | | | | | per letter dated July 22, 1999. Approved by: core
* Provide sysarch(2) prototypes in the MD sysarch.h headers. While I'mnectar2004-01-091-1/+2
| | | | | | | | | | at it, use the ANSI C generic pointer type for the second argument, thus matching the documentation. Remove the now extraneous (and now conflicting) function declarations in various libc sources. Remove now unnecessary casts. Reviewed by: bde
* Use a more robust API altogether for the amd64_get_fsbase() etc functions.peter2003-10-231-4/+4
|
* Renumber the sysarch vectors for amd64 specific syscalls so that I canpeter2003-10-231-6/+5
| | | | | | | implement i386 compat numbers where it makes sense. This would save a syscall translation layer. Yes, this breaks the abi slightly again, but fortunately its just a recompile rather than tweaking the source. I will be fixing the libc stubs while I'm here.
* Give a %fs and %gs to userland. Use swapgs to obtain the kernel %GS.basepeter2003-05-121-1/+19
| | | | | | | | | | | | | | | | | value on entry and exit. This isn't as easy as it sounds because when we recursively trap or interrupt, we have to avoid duplicating the swapgs instruction or we end up back with the userland %gs. I implemented this by testing TF_CS to see if we're coming from supervisor mode already, and check for returning to supervisor. To avoid a race with interrupts in the brief period after beginning executing the handler and before the swapgs, convert all trap gates to interrupt gates, and reenable interrupts immediately after the swapgs. I am not happy with this. There are other possible ways to do this that should be investigated. (eg: storing the GS.base MSR value in the trapframe) Add some sysarch functions to let the userland code get to this. Approved by: re (blanket amd64/*)
* Commit MD parts of a loosely functional AMD64 port. This is based onpeter2003-05-011-42/+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.
* There is no need for start/num to be signed in i386_ldt_args.peter2002-09-281-2/+2
|
* Remove __P.alfred2002-03-201-7/+7
|
* Make the style a little bit more consistant by removing parametermarkm2002-02-031-3/+2
| | | | | names from some prototypes. (Other prototypes here already have these removed).
* Add a couple of debug register helper functions to assist in settingbsd2000-09-211-0/+4
| | | | | | and clearing watchpoints. Reviewed by: jwd@FreeBSD.org, -hackers@
* Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"peter1999-12-291-2/+2
| | | | | | 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.
* Some reorganization of sysarch() interface:luoqi1999-09-021-0/+17
| | | | | | | | | | 1. Move definitions of struct i386_*_args to the header file sysarch.h, since they are part of the sysarch API. struct i386_get_ldt_args and i386_set_ldt_args were identical, therefore make them into one struct i386_ldt_args. Libc should use these definitions as well. 2. Return a more sensible EOPNOTSUPP for unknown operations. Reviewed by: marcel
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* u_int --> unsigned int, remove (now unneeded) <sys/types.h>jlemon1998-07-281-3/+3
|
* Add wrappers for i386_*_ioperm, i386_vm86 so userland code doesjlemon1998-07-281-1/+4
| | | | | not have to call sysarch() directly. Added man pages for above, as well as sysarch()
* Forward declare a union so that this file is self-sufficient.bde1998-02-031-11/+10
| | | | Cleaned up ifdefs.
* VM86 kernel support.dyson1997-08-091-1/+6
| | | | | | | Work done by BSDI, Jonathan Lemon <jlemon@americantv.com>, Mike Smith <msmith@gsoft.com.au>, Sean Eric Fagan <sef@kithrup.com>, and probably alot of others. Submitted by: Jnathan Lemon <jlemon@americantv.com>
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notpeter1997-02-221-1/+1
| | | | ready for it yet.
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Added $Id$dg1994-08-021-2/+35
|
* Made all header files idempotent and moved incorrect common data fromwollman1993-11-071-3/+15
| | | | | headers into a related source file. Added cons.h as first step towards moving i386/i386/cons.h to machine/cons.h where it belongs.
* Removed all patch kit headers, sccsid and rcsid strings, put $Id$ in, somergrimes1993-10-161-0/+2
| | | | minor cleanup. Added $Id$ to files that did not have any version info, etc
* Architecture specific syscalls (i386) from NetBSDrgrimes1993-10-081-0/+10
OpenPOWER on IntegriCloud