Commit Graph

33 Commits

Author SHA1 Message Date
joerg
4d12bfcd15 Pass PICFLAGS down to cc-as-as and use __PIC__ to decide if it is small
vs big PIC mode. Retire -DPIC and -DBIGPIC.
2013-09-12 15:36:14 +00:00
matt
8f26ebd43e Adjust LEA_LCL, GOT_SETUP, INTERRUPT_{SAVE,RESTORE}REG for Coldfire 2013-07-18 22:21:31 +00:00
matt
7b231464eb Make INTERRUPT_{SAVE,RESTORE}REG visible to userland 2013-07-16 23:01:05 +00:00
matt
b3065f5358 Remove non __ELF__ clauses.
Add GOT_SETUP and LEA_LCL macros.
2013-07-16 22:23:15 +00:00
matt
b97b6cbaca Add an END macro. reorder EXTBL macro 2013-07-16 21:01:03 +00:00
matt
a5e30bea72 Put RCSIDs in section .ident. (use .pushsection/.popsection) 2011-02-12 16:31:32 +00:00
joerg
3e11e26976 Consistently use .gnu.warning with .pushsectio and .popsection on all
architectures instead of obsolete STABS frames for linker warnings.
2010-12-20 21:11:24 +00:00
matt
6a66466f0c 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>.
2010-12-20 00:25:23 +00:00
martin
ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
christos
3ffa241fcd Add a STRONG_ALIAS macro 2006-01-20 22:02:40 +00:00
chs
6ebe782061 mcount() is named __mcount() on ELF, do the right thing. 2001-05-27 01:01:08 +00:00
chs
1aeca5a83b define VECTOR() and friends in non-_KERNEL environments too. 2001-05-12 22:27:05 +00:00
fredette
166d9e1ede Add an EXTBL macro. 2001-05-03 20:53:44 +00:00
kleink
133ea38323 Add a WEAK_ALIAS() macro. 2000-06-23 12:18:45 +00:00
thorpej
3b435a7396 Add register prefixes. 1999-10-25 23:48:07 +00:00
kleink
d34d0ccf51 * 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.
1999-05-01 19:20:52 +00:00
thorpej
da572a137f Argh, fix the ANSI CPP version of the a.out WARN_REFERENCES(). 1998-12-02 21:16:46 +00:00
thorpej
a6f7e0c05a Implement WARN_REFERENCES(). 1998-12-02 00:58:42 +00:00
thorpej
0e22d3b5a3 Copyright assigned to The NetBSD Foundation. 1997-10-04 17:34:08 +00:00
thorpej
b88b183ab5 Don't have kernel vs. non-kernel versions of _ENTRY(); there's no
reason to omit the .type directive in the kernel case.
1997-07-14 07:44:56 +00:00
thorpej
658ce85446 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.
1997-04-24 22:49:39 +00:00
jtc
9da5f60715 PROF -> GPROF 1996-11-30 02:48:57 +00:00
jtc
d137b0e8ba 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.
1996-09-24 00:05:55 +00:00
briggs
71a63538b8 KERNEL -> _KERNEL 1995-03-26 17:08:36 +00:00
cgd
57fb77a14e new RCS ID format. 1994-10-26 07:48:18 +00:00
brezak
39e3da4a69 Add RCSID macro; be sure ENTRY is in .text 1994-03-18 21:18:07 +00:00
glass
1bf91e4911 so you can compile a kernel w/o using our hacked gas 1994-03-01 07:50:49 +00:00
mycroft
0317b97e04 Remove bogus \ that someone inserted. 1994-01-30 22:14:00 +00:00
mycroft
b20e7826bb GPROF --> PROF 1994-01-30 21:56:15 +00:00
mycroft
b5f845fbef Forgot the .even... 1994-01-29 16:28:16 +00:00
mycroft
dcfe932f65 Fix typo. 1994-01-29 10:14:01 +00:00
mycroft
ecddf55fa4 Add .type directive. 1994-01-29 10:02:44 +00:00
briggs
4861250d0c Define ENTRY and ALTENTRY--hopefully for both STDC and K&R style...
Nabbed & mangled from sun3/include/asm.h and locore.s...
1994-01-22 13:41:08 +00:00