Commit Graph

365 Commits

Author SHA1 Message Date
fvdl
dce33cef19 Set up lkm_map in range of kernel text. 2003-05-07 22:58:18 +00:00
fvdl
38b24046a0 Fix some locking nits found by LOCKDEBUG. Somewhat ugly, since they're
not really needed. But, they're not called very frequently.
2003-05-07 21:25:34 +00:00
fvdl
a4777405c5 unifdef bus/segv/ill logging. 2003-05-04 23:51:56 +00:00
fvdl
9756b6a911 Follow i386, and mask deferred level-triggered interrupts at the ioapic. 2003-05-04 23:46:41 +00:00
fvdl
041046e740 Default to -O2. 2003-05-04 12:03:41 +00:00
fvdl
7a214454f6 Correct save FP state for signals. 2003-05-04 12:00:14 +00:00
fvdl
b5233cbfdd Add dummy eisa option to ease sharing with i386. 2003-05-03 14:24:52 +00:00
yamt
4b800ec987 set symbol to be a function using .type directive in IDTVEC macro
so that ddb backtrace can pick them up after recent ksyms changes.

suggested by Matt Thomas on tech-kern.
ok'ed by Frank van der Linden.
2003-05-02 18:05:46 +00:00
dsl
d91455ce26 Change return type of readdisklabel() to const char *
I hope I've found all the correct places!
2003-05-02 08:45:10 +00:00
scw
8c5c893bf7 Add a BKPT_ADDR() macro which gives MD code a chance to munge a
breakpoint address before it's used. Currently a no-op on all but sh5.

This is useful on sh5, for example, to mask off the instruction
type encoding in the bottom two address bits, and makes it possible
to do "db> break $rXX" instead of manually munging the address.
2003-04-29 17:06:03 +00:00
bjh21
4be7a2dcf3 Add a new feature-test macro, _NETBSD_SOURCE. If this is defined
by the application, all NetBSD interfaces are made visible, even
if some other feature-test macro (like _POSIX_C_SOURCE) is defined.
<sys/featuretest.h> defined _NETBSD_SOURCE if none of _ANSI_SOURCE,
_POSIX_C_SOURCE and _XOPEN_SOURCE is defined, so as to preserve
existing behaviour.

This has two major advantages:
+ Programs that require non-POSIX facilities but define _POSIX_C_SOURCE
  can trivially be overruled by putting -D_NETBSD_SOURCE in their CFLAGS.
+ It makes most of the #ifs simpler, in that they're all now ORs of the
  various macros, rather than having checks for (!defined(_ANSI_SOURCE) ||
  !defined(_POSIX_C_SOURCE) || !defined(_XOPEN_SOURCE)) all over the place.

I've tried not to change the semantics of the headers in any case where
_NETBSD_SOURCE wasn't defined, but there were some places where the
current semantics were clearly mad, and retaining them was harder than
correcting them.  In particular, I've mostly normalised things so that
_ANSI_SOURCE gets you the smallest set of stuff, then _POSIX_C_SOURCE,
_XOPEN_SOURCE and _NETBSD_SOURCE in that order.

Tested by building for vax, encouraged by thorpej, and uncontested in
tech-userlevel for a week.
2003-04-28 23:16:11 +00:00
fvdl
a4d65735ea Fix *LONGMAX values. 2003-04-27 22:33:49 +00:00
fvdl
176ac62c3e Skip sym space if ksyms or LKMs are included, too. 2003-04-26 19:34:45 +00:00
fvdl
043f21d9ea x86_64 -> amd64 2003-04-26 19:14:17 +00:00
fvdl
81918bf8b4 Rename the x86_64 port to amd64, as this is the actual name used for
the processor family now. x86_64 is kept as the MACHINE_ARCH value,
since it's already widely used (by e.g. the toolchain, etc), and
by other operating systems.
2003-04-26 18:39:25 +00:00