Commit Graph

15 Commits

Author SHA1 Message Date
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