aboutsummaryrefslogtreecommitdiff
path: root/sys/i386/include/asm.h
Commit message (Collapse)AuthorAgeFilesLines
* Add CFI start/end proc directives to arm64, i386, and ppcConrad Meyer2020-12-051-4/+15
| | | | | | | | | | | | | | Follow-up to r353959 and r368070: do the same for other architectures. arm32 already seems to use its own .fnstart/.fnend directives, which appear to be ARM-specific variants of the same thing. Likewise, MIPS uses .frame directives. Reviewed by: arichardson Differential Revision: https://reviews.freebsd.org/D27387 Notes: svn path=/head/; revision=368354
* Remove lint support from system headers and MD x86 headers.Konstantin Belousov2017-11-231-2/+2
| | | | | | | | | | Reviewed by: dim, jhb Discussed with: imp Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D13156 Notes: svn path=/head/; revision=326123
* sys: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-201-0/+2
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 3-Clause license. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Notes: svn path=/head/; revision=326023
* Renumber copyright clause 4Warner Losh2017-02-281-1/+1
| | | | | | | | | | | | Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96 Notes: svn path=/head/; revision=314436
* Revert r274772: it is not valid on MIPSEd Maste2014-11-251-1/+1
| | | | | | | Reported by: sbruno Notes: svn path=/head/; revision=275004
* Use canonical __PIC__ flagEd Maste2014-11-211-1/+1
| | | | | | | | | | | It is automatically set when -fPIC is passed to the compiler. Reviewed by: dim, kib Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D1179 Notes: svn path=/head/; revision=274772
* Replace the WEAK_ALIAS() alias with the WEAK_REFERENCE() alias. Use it andAndreas Tobler2013-11-211-4/+8
| | | | | | | | | get rid of the __CONCAT and CNAME macros. Reviewed by: bde, kib Notes: svn path=/head/; revision=258451
* libc: Access _logname_valid more efficiently.Jilles Tjoelker2013-08-171-1/+2
| | | | | | | | | | | | | | The variable _logname_valid is not exported via the version script; therefore, change C and i386/amd64 assembler code to remove indirection (which allowed interposition). This makes the code slightly smaller and faster. Also, remove #define PIC_GOT from i386/amd64 in !PIC mode. Without PIC, there is no place containing the address of each variable, so there is no possible definition for PIC_GOT. Notes: svn path=/head/; revision=254463
* Also import WEAK_ALIAS() from the MIPS code.Ed Schouten2012-01-051-0/+7
| | | | Notes: svn path=/head/; revision=229562
* Add support for strong aliasing of symbols in i386 assembly.Ed Schouten2012-01-031-0/+7
| | | | | | | This macro is a literal copy from the MIPS version of <machine/asm.h>. Notes: svn path=/head/; revision=229367
* Define an END() macro for use in i386 and amd64 assembly code, akinJoseph Koshy2007-08-221-0/+1
| | | | | | | | | to the one available on the ia64, sparc64, and sun4v architectures. Approved by: re (kensmith) Notes: svn path=/head/; revision=171914
* Remove advertising clause from University of California Regent'sWarner Losh2004-04-071-4/+0
| | | | | | | | | | license, per letter dated July 22, 1999 and email from Peter Wemm, Alan Cox and Robert Watson. Approved by: core, peter, alc, rwatson Notes: svn path=/head/; revision=128019
* Remove _ARCH_INDIRECT, it was the glue to enable having both hardwarePeter Wemm2003-07-231-67/+0
| | | | | | | | | and software versions of the floating point code in libm. The runtime selection was done by reading the hw.floatingpoint sysctl via __get_hw_float(). Notes: svn path=/head/; revision=117911
* Don't use ## to concatinate to two things that don't together make a C token.David E. O'Brien2003-06-021-1/+1
| | | | | | | | | Two tokens that don't together form a vaid preprocssor token cannot be pasted together using ANSI-C token concatinatation. GCC 3.2's cpp, at least, produces the desired result w/o using "##". Notes: svn path=/head/; revision=115671
* PIC_GOTOFF is OBE.Peter Wemm2002-09-231-2/+0
| | | | Notes: svn path=/head/; revision=103850
* Initiate deorbit burn for the i386-only a.out related support. Moves arePeter Wemm2002-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 Notes: svn path=/head/; revision=103436
* ASM versions of __FBSDID.David E. O'Brien2002-03-231-0/+11
| | | | Notes: svn path=/head/; revision=92998
* Fixed the profiling version ALTENTRY(). Again. The previous versionBruce Evans2000-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. Notes: svn path=/head/; revision=56581
* Move ENTRY and ALTENTRY definitions to asm.h where they belong.Jason Evans2000-01-201-1/+4
| | | | | | | | | Unbreak profiling. Again. Submitted by: bde Notes: svn path=/head/; revision=56309
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50477
* Fixed longstanding profiling bug. The frame pointer wasn't set upBruce Evans1997-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 Notes: svn path=/head/; revision=25111
* Only do indirections in ENTRY() if _ARCH_INDIRECT is defined.Bruce Evans1997-04-151-5/+8
| | | | Notes: svn path=/head/; revision=24965
* Moved userland assembler macros from <machine/asmacros.h> toBruce Evans1997-03-091-1/+82
| | | | | | | <machine/asm.h>. Notes: svn path=/head/; revision=23576
* Cloned src/lib/libc/i386/DEFS.h to create <machine/asm.h> for the i386.Bruce Evans1997-03-091-0/+120
The former file was too hard to get at from other parts of the src tree and will go away. Notes: svn path=/head/; revision=23571