summaryrefslogtreecommitdiffstats
path: root/sys/arch/amd64/include/sysarch.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* amd64_{get,set}_fsbase() are superfluous and unused; delete them.guenther2018-01-071-50/+1
| | | | | | | Delete unused/never-implemented sysarch defines and structs while here. ports check and ok naddy@ ok deraadt@ mlarkin@
* remove never used get/set ioperm sysarch functions. ok guenthertedu2013-05-051-11/+1
|
* Remove excessive sys/cdefs.h inclusionderaadt2012-12-051-3/+4
| | | | ok guenther millert kettenis
* Add __BEGIN_DECLS so that programs using C++ can use functionssthen2012-10-101-1/+5
| | | | | defined in sysarch.h again, they were broken following the change to NO_IMPLICIT_EXTERN_C. help/ok kettenis@
* Unrevert the FS.base diff: the issues were actually elsewhereguenther2011-04-131-6/+12
| | | | Additional testing by jasper@ and pea@
* Revert bulk of the FS.base diff, as it causes issues on some machinesguenther2011-04-101-12/+6
| | | | and the problem isn't obvious yet.
* Add support for per-rthread base-offset for the %fs selector on amd64.guenther2011-04-051-6/+12
| | | | | | | | | | | Add pcb_fsbase to the PCB for tracking what the value for the thread is, and ci_cur_fsbase to struct cpu_info for tracking the CPU's current value for FS.base, then on return to user-space, skip the setting if the CPU has the right value already. Non-threaded processes without TLS leave FS.base zero, which can be conveniently optimized: setting %fs zeros FS.base for fewer cycles than wrmsr. ok kettenis@
* Normalize sentinel. Use _MACHINE_*_H_ and _<ARCH>_*_H_ properly and consitently.pirofti2011-03-231-4/+4
| | | | Discussed and okay drahn@. Okay deraadt@.
* Old-style MTRRs were never used on amd64, so remove the remaining tracesguenther2011-03-181-17/+1
| | | | | | | of them, as well as some other unused proc md_flags bits: MDP_COMPAT and MDP_SYSCALL. ok mikeb@
* The LDT is only used by dead compat code now, so load the ldtguenther2010-10-261-3/+1
| | | | | | | | | | | | | register with the null selector (disabling use of it), stop reloading it on every context switch, and blow away the table itself, as well as the pcb and pmap bits that were used to track it. Also, delete two other unused pcb members: pcb_usersp and pcb_flags. (Deleting pcb_usersp also keeps the pcb_savefpu member aligned properly.) Finally, delete the defines for the unimplemented AMD64_{GET,SET}_LDT sysarch() calls. Tested by various with both AMD and Intel chips ok mikeb@
* ldt removal missed some. amd64_{get,set}_ldt gone. also removemartynas2009-09-181-18/+1
| | | | ldt_{alloc,free} to shave a few. ok jasper@, oga@
* move to amd64_() functionsderaadt2004-02-271-45/+36
|
* put the goo there for ldt handling, even if we do not do it yetderaadt2004-02-261-3/+3
|
* an amd64 arch support.mickey2004-01-281-0/+120
hacked by art@ from netbsd sources and then later debugged by me into the shape where it can host itself. no bootloader yet as needs redoing from the recent advanced i386 sources (anyone? ;)