chs
0b0e802177
de-__P, remove register, ansify.
2003-11-20 03:58:47 +00:00
chs
5dcca2231a
restructure autoconf for [ABCDJK]-class machines. add phantomas bus.
...
adapted from OpenBSD by Jochen Kunz.
2003-11-18 04:04:42 +00:00
chs
d277a48ec3
a stripped-down config to work around netboot problems.
2003-11-18 04:03:32 +00:00
chs
cfb436dcf3
remove link_set hack, new toolchain doesn't need it.
2003-11-18 03:25:48 +00:00
tsutsui
addcf5d254
#if defined(_KERNEL_OPT) is enough, #if !defined(_LKM) isn't needed
...
in that case. Pointed out by mrg.
2003-11-08 15:19:20 +00:00
tsutsui
7a6d021fe2
Include "opt_lockdebug.h" only #if !defined(_LKM) && defined(_KERNEL_OPT).
2003-11-08 12:06:20 +00:00
kleink
9acc1a6c3b
Have the linker discard local labels' symbols.
2003-11-06 18:19:32 +00:00
matt
1dc67abbb1
Compile at -O2. Fix various GCC3-isms
...
XXX mem.c still fails to assemble.
2003-11-01 18:23:37 +00:00
lukem
f85d2d1c14
Use ${HOST_SH} instead of `sh'.
...
If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.
2003-10-26 07:25:33 +00:00
jdolecek
821f341675
add necessary majors for miscellaneous devices, such as missing
...
wscons/scsi/isdn devices
2003-10-24 08:18:36 +00:00
jdolecek
ee510816af
add wsfont major to archs which have the other wscons devices
2003-10-22 16:53:22 +00:00
itohy
29baf4fd02
white space police
2003-10-21 13:10:42 +00:00
itohy
173218ef29
Slightly change the base address so GENERIC kernel may boot (but not confirmed).
2003-10-21 12:43:19 +00:00
itohy
87bcaf3acc
1.2: Support disklabel.
2003-10-21 12:40:15 +00:00
itohy
3fd01cc3f8
Add -D__daddr_t=int32_t so that the arguments of IODC are
...
not promoted to 64bit.
On 32bit PDC machines, IODC *requires* 32bit args and IODC
can handle only 2GB, and need not to use 64bit integer.
2003-10-21 12:35:23 +00:00
itohy
59f09ea752
Fix types of printf() args to match the format strings.
2003-10-21 12:26:27 +00:00
itohy
76595c213b
Enable disklabel support.
2003-10-21 12:24:11 +00:00
itohy
d71dd6d1f4
#if 0 unused parts.
2003-10-21 12:22:37 +00:00
itohy
a57f5d5d08
Use ../common/libsa.h for prototype declarations of common functions.
...
Add tgets prototype (should be in some header file?).
2003-10-21 12:21:05 +00:00
itohy
1bb2ee7654
Add prototypes.
2003-10-21 12:19:24 +00:00
itohy
9833e639a8
Add a prototype.
...
Silence -Wshadow.
2003-10-21 12:18:02 +00:00
itohy
29f0f3babf
Change the location of BSD disklabel not to overlap with LIF header.
...
LABELSECTOR: 0 -> 1
LABELOFFSET: 64 -> 0
per discussion on NetBSD mailing lists: port-hp700 and tech-kern.
2003-10-18 23:45:30 +00:00
jdolecek
79ebb210fa
add majors for ipfilter, lkm, vnd, tun, raid, cgd, ccd, and md
...
where missing
2003-10-15 18:20:19 +00:00
he
fe6ca02de9
Since the boot loader is a stand-alone program, stub out LIBCRT0,
...
LIBCRTBEGIN, LIBCRTEND, and LIBC -- these are being added to the
PROG target list by bsd.prog.mk.
2003-10-12 18:56:44 +00:00
matt
e291b36f05
Get hp700 boot tools to compile again. Patches from Jochen Knuz.
...
(with some modification from me).
2003-10-11 03:57:31 +00:00
jdolecek
ef5bb330f5
reassing majors for crypto and pf to use the newly defined MI major
...
range
2003-10-10 22:42:39 +00:00
jdolecek
4e915c9ccd
update the comment - the space for machine-dependant majors
...
is reduced to 0-143
follows discussion on tech-kern
2003-10-10 21:21:25 +00:00
jdolecek
8af3527920
g/c USETOOLS?= no
2003-10-10 20:08:00 +00:00
chs
06332c88ef
update for new gas syntax. from Jochen Kunz.
2003-10-10 15:07:43 +00:00
jdolecek
e6286b949a
Add some framework for MI assignment of device majors - add sys/dev/majors
...
which is automatically included during kernel config, and add comments
to individual machine-dependant majors.* files to assign new MI majors
in MI file.
Range 0-191 is reserved for machine-specific assignments, range
192+ are MI assignments.
Follows recent discussion on tech-kern@
2003-10-05 08:04:24 +00:00
matt
467632cd2a
Install <machine/mcontext.h>
2003-09-20 22:25:07 +00:00
chs
ea3277f683
add a defflag for USELEDS.
2003-08-31 01:55:27 +00:00
chs
b5ed452510
just include the hppa version.
2003-08-31 01:28:22 +00:00
chs
e9303b36fc
disable some things that don't build yet.
2003-08-31 01:27:18 +00:00
chs
a2ffedf11f
add a hack for the link set stuff.
2003-08-31 01:27:00 +00:00
chs
cc0b88792e
update for LWPs, and some lite cleanup.
2003-08-31 01:26:31 +00:00
itojun
4440262659
create /dev/crypto
2003-08-22 05:06:22 +00:00
agc
aad01611e7
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22364, verified by myself.
2003-08-07 16:26:28 +00:00
itojun
3f14c71f75
reserve cdev major # for PF. ok'ed by technical-exec
2003-07-27 14:17:57 +00:00
lukem
0c82163c78
__KERNEL_RCSID()
2003-07-15 02:29:24 +00:00
martin
d505b18964
Make sure to include opt_foo.h if a defflag option FOO is used.
2003-06-23 11:00:59 +00:00
thorpej
452a8fdae2
Rename IPL_IMP -> IPL_VM.
2003-06-16 20:00:56 +00:00
fvdl
7dd7f8baa2
Handle 64bit DMA addresses on PCI for platforms that can (currently only
...
enabled on amd64). Add a dmat64 field to various PCI attach structures,
and pass it down where needed. Implement a simple new function called
pci_dma64_available(pa) to test if 64bit DMA addresses may be used.
This returns 1 iff _PCI_HAVE_DMA64 is defined in <machine/pci_machdep.h>,
and there is more than 4G of memory.
2003-06-15 23:08:53 +00:00
thorpej
0eff671820
Also pass a type argument to comcnattach() and com_kgdb_attach().
...
comspeed() (and thus cominit()) may need this information.
2003-06-14 17:01:06 +00:00
thorpej
e43fecb228
Change bounds_check_with_label() to take a pointer to the disk structure,
...
rather than the label itself. This paves the way for some future changes.
2003-05-10 23:12:28 +00:00
wiz
1ffa7b76c4
DMA, not dma nor Dma.
2003-05-03 18:10:37 +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
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
ragge
d8c8fa8111
Add pseudo-device ksyms.
2003-04-26 14:10:04 +00:00
ragge
69a66687f8
Call ksyms_init() instead of ddb_init() in case of
...
NKSYMS || defined(DDB) || defined(LKM)
2003-04-26 11:05:05 +00:00