summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include/asm.h
Commit message (Collapse)AuthorAgeFilesLines
* Align the entry point to assembly language functions to a 16-byte boundary.alc2005-04-101-2/+1
| | | | | (The Opteron's instruction fetcher reads instructions from the L1 cache in 16-byte, aligned packets.)
* Argh. Add the mini-stack-frame back in for mcount's benefit for syscallpeter2004-06-101-0/+4
| | | | stubs.
* Remove advertising clause from University of California Regent's license,imp2004-04-051-4/+0
| | | | | | per letter dated July 22, 1999. Approved by: core
* MFi386: i386/include/asm.h rev 1.11: Do not abuse ##.peter2003-06-021-1/+1
|
* Stop profiled libc from exploding, matching gcc's generated code.peter2003-05-241-4/+0
| | | | Approved by: re (amd64/* blanket)
* Remove _ARCH_INDIRECT ifdefs. They existed for lib/msun/* on i386, whichpeter2003-05-101-63/+0
| | | | | | | | could use different versions of the math code depending on whether there was real floating point hardware or math emulation. Since the fpu is part of the core specification on amd64, there is no need for this here. Approved by: re (blanket amd64/*)
* Commit MD parts of a loosely functional AMD64 port. This is based onpeter2003-05-011-33/+19
| | | | | | | | | | | | | | | | | | | | | | 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.
* PIC_GOTOFF is OBE.peter2002-09-231-2/+0
|
* Initiate deorbit burn for the i386-only a.out related support. Moves arepeter2002-09-171-9/+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
* ASM versions of __FBSDID.obrien2002-03-231-0/+11
|
* Fixed the profiling version ALTENTRY(). Again. The previous versionbde2000-01-251-5/+9
| | | | | didn't set up the frame pointer before calling mcount, and then jumped to the wrong place in ENTRY() to defeat the point of the jump.
* Move ENTRY and ALTENTRY definitions to asm.h where they belong.jasone2000-01-201-1/+4
| | | | | | Unbreak profiling. Again. Submitted by: bde
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Fixed longstanding profiling bug. The frame pointer wasn't set upbde1997-04-231-63/+23
| | | | | | | | | | | | | | | | | | | for syscalls, so one frame was lost in backtraces from syscalls. This is handled better in the kernel by using a different mcount entry point for profiling before the frame pointer is set up. Expand RCSID(). Use .p2align instead of the ambiguous .align. Added idempotency ifdef. Removed unused macros ALTENTRY(), ALTASENTRY(), ASENTRY(), _MID_ENTRY. Cleaned up formatting. Reviewed by: jdp reviewed an old version Obtained from: parts from NetBSD
* Only do indirections in ENTRY() if _ARCH_INDIRECT is defined.bde1997-04-151-5/+8
|
* Moved userland assembler macros from <machine/asmacros.h> tobde1997-03-091-1/+82
| | | | <machine/asm.h>.
* Cloned src/lib/libc/i386/DEFS.h to create <machine/asm.h> for the i386.bde1997-03-091-0/+120
The former file was too hard to get at from other parts of the src tree and will go away.
OpenPOWER on IntegriCloud