Home | History | Annotate | Download | only in include
History log of /src/sys/arch/m68k/include/asm.h
RevisionDateAuthorComments
 1.37  06-Jan-2025  martin PR 58960: fix misunderstanding in semantic and provide both the original
id string as well as _NETBSD_REVISIONID.
Do not rely on string concatenation in the inline assembler, use .ascii
and .asciz for individual string parts instead.
 1.36  04-Jan-2025  martin PR 58960: m68k/asm.h: Respect NETBSD_REVISIONID.
 1.35  26-Sep-2023  tsutsui branches: 1.35.6;
Remove trailing spaces and TABs.
 1.34  17-Apr-2020  joerg Mark the .ident section as mergable string section to avoid redundant
entries.
 1.33  12-Sep-2013  joerg branches: 1.33.30; 1.33.40;
Pass PICFLAGS down to cc-as-as and use __PIC__ to decide if it is small
vs big PIC mode. Retire -DPIC and -DBIGPIC.
 1.32  18-Jul-2013  matt Adjust LEA_LCL, GOT_SETUP, INTERRUPT_{SAVE,RESTORE}REG for Coldfire
 1.31  16-Jul-2013  matt branches: 1.31.2;
Make INTERRUPT_{SAVE,RESTORE}REG visible to userland
 1.30  16-Jul-2013  matt Remove non __ELF__ clauses.
Add GOT_SETUP and LEA_LCL macros.
 1.29  16-Jul-2013  matt Add an END macro. reorder EXTBL macro
 1.28  12-Feb-2011  matt branches: 1.28.4; 1.28.14; 1.28.18;
Put RCSIDs in section .ident. (use .pushsection/.popsection)
 1.27  20-Dec-2010  joerg branches: 1.27.2; 1.27.4;
Consistently use .gnu.warning with .pushsectio and .popsection on all
architectures instead of obsolete STABS frames for linker warnings.
 1.26  20-Dec-2010  matt Move counting of faults, traps, intrs, soft[intr]s, syscalls, and nswtch
from uvmexp to per-cpu cpu_data and move them to 64bits. Remove unneeded
includes of <uvm/uvm_extern.h> and/or <uvm/uvm.h>.
 1.25  28-Apr-2008  martin branches: 1.25.22;
Remove clause 3 and 4 from TNF licenses
 1.24  20-Jan-2006  christos branches: 1.24.72; 1.24.74; 1.24.76;
Add a STRONG_ALIAS macro
 1.23  27-May-2001  chs branches: 1.23.8; 1.23.40; 1.23.52;
mcount() is named __mcount() on ELF, do the right thing.
 1.22  12-May-2001  chs define VECTOR() and friends in non-_KERNEL environments too.
 1.21  03-May-2001  fredette Add an EXTBL macro.
 1.20  23-Jun-2000  kleink branches: 1.20.2;
Add a WEAK_ALIAS() macro.
 1.19  25-Oct-1999  thorpej branches: 1.19.6;
Add register prefixes.
 1.18  01-May-1999  kleink branches: 1.18.2; 1.18.4; 1.18.6;
* Change multiple inclusion protection symbols to use the standard naming
convention (not that it should matter for assembly).
* Provide an additional set of _C_LABEL() macros for ELF.
* Provide a PIC_PLT() macro for the benefit of ELF.
 1.17  02-Dec-1998  thorpej branches: 1.17.6;
Argh, fix the ANSI CPP version of the a.out WARN_REFERENCES().
 1.16  02-Dec-1998  thorpej Implement WARN_REFERENCES().
 1.15  04-Oct-1997  thorpej Copyright assigned to The NetBSD Foundation.
 1.14  14-Jul-1997  thorpej branches: 1.14.2;
Don't have kernel vs. non-kernel versions of _ENTRY(); there's no
reason to omit the .type directive in the kernel case.
 1.13  24-Apr-1997  thorpej Add several useful macros:
- ENTRY_NOPROFILE() and ASENTRY_NOPROFILE(), similar to ENTRY() and
ASENTRY(), but without the profiling prologue.
- GLOBAL()/ASGLOBAL() and LOCAL()/ASLOCAL(), for defining global and
local variables with C and ASM labels.
- BSS()/ASBSS(), for defining items in the BSS segment, with C or
ASM labels.
- PANIC("panic message") - shorthand for calling panic() from assembly code.
- VECTOR(), ASVECTOR(), VECTOR_UNUSED - shorthand for defining entries
in the vector table.
Also, change RCSID() to pad out the string to even boundary.
 1.12  30-Nov-1996  jtc PROF -> GPROF
 1.11  24-Sep-1996  jtc Added new macro _PROF_PROLOG which contains the code sequence needed
to call mcount(). This is needed because the ``link a6,#0'' insn used
trips up gcc's ANSI preprocessor (A # in a function-type macro must be
followed by a macro argument). _PROF_PROLOG is also used in the i386
asm.h.

Solaris' asm_linkage.h has a MCOUNT macro similar to _PROF_PROLOG
except it expands to different code sequences based on whether a
function is being compiled with "prof" or "gprof" instrumentation.

I also discovered that the m68k ALTENTRY is very different than the
implementation used by other NetBSD ports. Usually ALTENTRY simply
provides an alternate function entry point. The m68k version takes a
second argument and jumps inside the second function when profiling is
enabled. The m68k behavior is similar to the ENTRY2 macro found in
solaris.

Providing ENTRY2 and changing all the code that uses ALTENTRY to use
it would be a desirable change.
 1.10  26-Mar-1995  briggs KERNEL -> _KERNEL
 1.9  26-Oct-1994  cgd new RCS ID format.
 1.8  18-Mar-1994  brezak Add RCSID macro; be sure ENTRY is in .text
 1.7  01-Mar-1994  glass so you can compile a kernel w/o using our hacked gas
 1.6  30-Jan-1994  mycroft Remove bogus \ that someone inserted.
 1.5  30-Jan-1994  mycroft GPROF --> PROF
 1.4  29-Jan-1994  mycroft Forgot the .even...
 1.3  29-Jan-1994  mycroft Fix typo.
 1.2  29-Jan-1994  mycroft Add .type directive.
 1.1  22-Jan-1994  briggs Define ENTRY and ALTENTRY--hopefully for both STDC and K&R style...
Nabbed & mangled from sun3/include/asm.h and locore.s...
 1.14.2.1  14-Oct-1997  thorpej Update marc-pcmcia branch from trunk.
 1.17.6.1  21-Jun-1999  thorpej Sync w/ -current.
 1.18.6.1  27-Dec-1999  wrstuden Pull up to last week's -current.
 1.18.4.1  15-Nov-1999  fvdl Sync with -current
 1.18.2.1  20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.19.6.1  25-Jul-2000  kleink Pull up rev. 1.20 (approved by thorpej):
For ELF, add a WEAK_ALIAS() macro.
 1.20.2.1  21-Jun-2001  nathanw Catch up to -current.
 1.23.52.1  01-Feb-2006  yamt sync with head.
 1.23.40.1  21-Jun-2006  yamt sync with head.
 1.23.8.2  27-May-2001  chs mcount() is named __mcount() on ELF, do the right thing.
 1.23.8.1  27-May-2001  chs file asm.h was added on branch nathanw_sa on 2001-05-27 01:01:09 +0000
 1.24.76.1  16-May-2008  yamt sync with head.
 1.24.74.1  18-May-2008  yamt sync with head.
 1.24.72.1  02-Jun-2008  mjf Sync with HEAD.
 1.25.22.1  05-Mar-2011  rmind sync with head
 1.27.4.1  17-Feb-2011  bouyer Sync with HEAD
 1.27.2.1  06-Jun-2011  jruoho Sync with HEAD.
 1.28.18.2  18-May-2014  rmind sync with head
 1.28.18.1  28-Aug-2013  rmind sync with head
 1.28.14.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.28.4.1  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.31.2.1  23-Jul-2013  riastradh sync with HEAD
 1.33.40.1  20-Apr-2020  bouyer Sync with HEAD
 1.33.30.1  21-Apr-2020  martin Sync with HEAD
 1.35.6.1  02-Aug-2025  perseant Sync with HEAD

RSS XML Feed