wiz
7e681f7063
interrupt with two rs.
2003-01-06 13:04:54 +00:00
wiz
5a91827c81
through, not throught.
2003-01-06 12:29:48 +00:00
thorpej
95fa2e148a
Use aprint_normal() for cfprint routines.
2003-01-01 01:57:51 +00:00
simonb
6a5e492b57
Remove the explicit `makeoptions MACHINE_ARCH="mipse{b,l}"' for kernel
...
builds and use the endianness of the toolchain being used to determine
the endianness of the kernel.
2002-12-09 22:54:09 +00:00
jdolecek
d9944f3152
need -mno-abicalls in AFLAGS as well, so that .S would be compiled as
...
non-PIC same way as .c
2002-12-09 12:42:18 +00:00
jdolecek
a74b5c71e2
build with -ffreestanding
2002-12-09 12:20:56 +00:00
jdolecek
4f2661e403
add #include <lib/libkern/libkern.h> to pull in prototypes
...
for couple items which don't have implicit prototypes with -ffreestanding
2002-12-09 12:14:10 +00:00
lukem
0635de35a3
Remove KDIR=, since SYS_INCLUDE=symlinks and KDIR are not supported any more.
2002-11-26 23:30:07 +00:00
christos
729ccbc9cd
si_ -> sel_
2002-11-26 19:49:00 +00:00
wiz
e78e668887
Fix typo (responsiness -> responsiveness).
2002-11-22 12:20:58 +00:00
jdolecek
c82ab2eb79
now that mem_no is emitted by config(8), there is no reason to keep
...
copy of more or less identical iskmemdev() for every arch; move the function
to spec_vnop.c, and g/c machine-dependant copies
2002-10-26 13:50:17 +00:00
jdolecek
e0cc03a09b
merge kqueue branch into -current
...
kqueue provides a stateful and efficient event notification framework
currently supported events include socket, file, directory, fifo,
pipe, tty and device changes, and monitoring of processes and signals
kqueue is supported by all writable filesystems in NetBSD tree
(with exception of Coda) and all device drivers supporting poll(2)
based on work done by Jonathan Lemon for FreeBSD
initial NetBSD port done by Luke Mewburn and Jason Thorpe
2002-10-23 09:10:23 +00:00
junyoung
e4b7588c28
Add NEW_BUFQ_STRATEGY (disabled by default).
2002-10-18 15:11:08 +00:00
elric
5ab71e20b0
Added commented out cgd(4)s to GENERIC configs.
2002-10-14 18:39:22 +00:00
provos
2f7a0aaac8
add SYSTRACE; approved perry.
2002-10-06 02:11:54 +00:00
elric
d19d268a95
assign majors for raw and cooked cgd's.
2002-10-04 18:28:24 +00:00
thorpej
b96bc0d7bc
Use CFATTACH_DECL().
2002-10-02 04:06:36 +00:00
wiz
b1c7ac0e6d
"definitions" has lots of 'i's, but that's not reason to leave one out.
2002-09-29 23:23:56 +00:00
wiz
683554e2fd
Fix strangeness introduced in v1.4:
...
- panic("panic(\"Mem error interrupt\");");
+ panic("Mem error interrupt");
2002-09-29 15:11:14 +00:00
thorpej
f818766afe
Declare all cfattach structures const.
2002-09-27 20:31:45 +00:00
provos
0f09ed48a5
remove trailing \n in panic(). approved perry.
2002-09-27 15:35:29 +00:00
thorpej
6c88de3b53
Introduce a new routine, config_match(), which invokes the
...
cfattach->ca_match function in behalf of the caller. Use it
rather than invoking cfattach->ca_match directly.
2002-09-27 03:17:40 +00:00
thorpej
d1ad2ac4f2
Rather than referencing the cfdriver directly in the cfdata entries,
...
instead use a string naming the driver. The cfdriver is then looked
up in a list which is built at run-time.
2002-09-27 02:24:06 +00:00
thorpej
c75e60ed75
Get the pointer to the driver name early, rather than constantly
...
deferencing the cfdriver pointer.
2002-09-26 20:45:42 +00:00
thorpej
6c87786450
G/c external reference to ibus_cd.
2002-09-26 20:36:51 +00:00
thorpej
958db4d3b7
No need to check that parent's cfdriver is ioasic_cd.
2002-09-26 20:36:14 +00:00
thorpej
98f612ef11
No need to check that that parent's cfdriver is ibus_cd.
2002-09-26 20:33:25 +00:00
martti
81e8d78cd4
Add one space between "#option" and "<tab>IPFILTER_DEFAULT_BLOCK"
2002-09-25 11:49:48 +00:00
martti
3b553bac54
Added (commented out) IPFILTER_DEFAULT_BLOCK.
2002-09-20 10:39:48 +00:00
lukem
3ea2e21f82
enable USERCONF by default; it's small and extremely useful to have available.
2002-09-18 02:43:53 +00:00
gehenna
77a6b82b27
Merge the gehenna-devsw branch into the trunk.
...
This merge changes the device switch tables from static array to
dynamically generated by config(8).
- All device switches is defined as a constant structure in device drivers.
- The new grammer ``device-major'' is introduced to ``files''.
device-major <prefix> char <num> [block <num>] [<rules>]
- All device major numbers must be listed up in port dependent majors.<arch>
by using this grammer.
- Added the new naming convention.
The name of the device switch must be <prefix>_[bc]devsw for auto-generation
of device switch tables.
- The backward compatibility of loading block/character device
switch by LKM framework is broken. This is necessary to convert
from block/character device major to device name in runtime and vice versa.
- The restriction to assign device major by LKM is completely removed.
We don't need to reserve LKM entries for dynamic loading of device switch.
- In compile time, device major numbers list is packed into the kernel and
the LKM framework will refer it to assign device major number dynamically.
2002-09-06 13:18:43 +00:00
lukem
fb7bc8541e
arch/*/stand stuff should be LDSTATIC=-static and not LDSTATIC?=-static.
...
It doesn't make sense to have standalone stuff dynamically linked just
because an end-user uses LDSTATIC="".
2002-08-27 08:53:14 +00:00
thorpej
139cdc3125
Make nbuf, nswbuf, and bufpages unsigned. Make all operations on these
...
variables unsigned, and update places where their values are printed.
2002-08-25 20:21:33 +00:00
ad
ac3f848ebe
Replace FONT_LUCIDA with FONT_GALLANT.
2002-08-08 00:11:52 +00:00
briggs
0b956d0b8b
Implement pmc(9) -- An interface to hardware performance monitoring
...
counters. These counters do not exist on all CPUs, but where they
do exist, can be used for counting events such as dcache misses that
would otherwise be difficult or impossible to instrument by code
inspection or hardware simulation.
pmc(9) is meant to be a general interface. Initially, the Intel XScale
counters are the only ones supported.
2002-08-07 05:14:47 +00:00
simonb
fef76c7e26
Use a __HAVE_BOOTINFO_H define to check for bootinfo support instead of
...
speading port names in arch-dependant code.
2002-08-05 02:13:14 +00:00
gmcgarry
3647e0d293
Merge cpu_sysctl() for all mips ports, based on powerpc and m68k precedent.
...
For now, only pmax implements CPU_BOOTED_KERNEL. Need to revisit.
2002-08-04 01:41:23 +00:00
grant
6742cb1812
sweep of errx/warnx, remove unnecessary trailing \n
2002-07-20 08:36:17 +00:00
thorpej
3912e469dd
Rename cdev_systrace_init() to cdev_clonemisc_init(), so it can
...
be properly used by any misc. cloning device. While here, correct
a comment to indicate that "open" is the only entry point and that
everything else is handled with fileops.
2002-07-19 16:38:14 +00:00
gmcgarry
4b0692e70a
Don't invoke MachFPInterrupt() if we're using SOFTFLOAT.
2002-07-07 00:22:18 +00:00
abs
eb73becae2
Ensure all INSTALL config files consistantly include PIPE_SOCKETPAIR,
...
MALLOC_NOINLINE, and VNODE_OP_NOINLINE. The exceptions are when they
include another config files that already defines the options, or if
they are for an embedded board, just define a few extra options, and
do not already define PIPE_SOCKETPAIR.
2002-07-05 13:40:10 +00:00
junyoung
3d826105dc
alloc_attr -> allocattr
...
Approved by Matthias Drochner.
2002-07-04 14:37:10 +00:00
jdolecek
6710074860
update comment
2002-06-18 20:23:08 +00:00
christos
3b50728cf4
MD systrace gluons.
2002-06-17 16:32:57 +00:00
lukem
fde6ae6f04
Enable "pseudo-device clockctl" in all kernels, except
...
installation related kernels (INSTALL* and RAMDISK*).
This enables rc.conf(5) $ntpd_chroot to be used "out of the box"
2002-06-17 05:14:02 +00:00
simonb
d7a3af7811
ANSIfy.
2002-06-05 06:19:29 +00:00
drochner
d2b9876081
move initialization of the "struct pglist" returned by uvm_pglistalloc()
...
from the calling code into uvm_pglistalloc() itself for consistency
and easier error handling
2002-06-02 14:44:35 +00:00
simonb
91a4b7da7f
Use "NOMAN=" instead of "MKMAN=no"; per lukem.
2002-05-07 02:13:51 +00:00
simonb
79cc6dcb79
Remove a "NOMAN="; Makefile.booters now has MKMAN=no.
2002-05-07 02:04:26 +00:00
jdolecek
f1a07a4001
no manpages here
2002-05-05 22:09:05 +00:00
gmcgarry
2a622dde25
Pull in <bsd.own.mk> for definition of ELF2ECOFF.
2002-05-04 07:26:11 +00:00
atatat
d1b3852365
Add the INCLUDE_CONFIG_FILE option to all config files. In config
...
files that are generic (ie, GENERIC, GENERICSBC, GENERIC32, ALL, or
ALPHA), it is uncommented.
2002-04-25 15:06:20 +00:00
simonb
506b9316a4
Remove commented out "options EXEC_ELF_CATCHALL", and note that
...
COMPAT_1{1,2} provide this (renamed) functionality.
2002-04-13 12:08:46 +00:00
gmcgarry
6e066ba77a
Add commented-out USERCONF option. Mainly useful for install media
...
and can be optionally enabled based on miniroot and ramdisk size
requirements.
2002-04-12 08:10:45 +00:00
lukem
dab39d6237
use ${ELF2ECOFF} from <bsd.{own,sys}.mk>
2002-04-12 05:11:17 +00:00
lukem
230e0c2c3e
Decommission pmax MD installboot in favour of MI installboot.
...
(Woo! pmax first again - hi Simon! :-)
2002-04-04 22:59:33 +00:00
simonb
2548187935
Don't make arch/mips/mips/mips_mcclock.c mandatory for all mips ports
...
with an mcclock - pmax is the only one currently using this.
2002-04-03 13:16:13 +00:00
lukem
d213d804f7
Rename MEMORY_DISK_SIZE (formerly MINIROOTSIZE) to MEMORY_DISK_ROOT_SIZE,
...
which was suggested by Izumi Tsutsui <tsutsui@ceres.dti.ne.jp> as
being more consistent with what it's controlling...
2002-04-02 05:30:34 +00:00
gmcgarry
bf49f00fe6
Use host tool elf2ecoff if available.
2002-03-20 20:18:00 +00:00
gmcgarry
dd71debbae
Test for USETOOLS properly.
...
cVS: ----------------------------------------------------------------------
2002-03-20 20:15:18 +00:00
simonb
a85e214bda
Make sure that private DMA flags don't overlap with standard DMA flags;
...
start these at 0x10000 to leave room for an increase in the latter.
2002-03-17 21:45:06 +00:00
atatat
31144d9976
Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for
...
indicating an unhandled "command". ERESTART is -1, which can lead to
confusion. ERESTART has been moved to -3 and EPASSTHROUGH has been
placed at -4. No ioctl code should now return -1 anywhere. The
ioctl() system call is now properly restartable.
2002-03-17 19:40:26 +00:00
simonb
02383cded0
The "debug" variable is only used during network debugging, and then
...
only if NET_DEBUG is defined. Put it's declaration and initialisation
inside '#ifdef NET_DEBUG' and save another 16 bytes.
2002-03-15 13:31:08 +00:00
ad
449a7e788b
Remove unmaintained / of limited use configs.
2002-03-13 16:56:49 +00:00
ad
b89e39b91a
Reorganise the wsfont stuff slightly so that multiple display adapters
...
with different bit/byte order requirements can co-exist happily.
2002-03-13 15:05:13 +00:00
simonb
22db14d9e1
All the mips ports had an identical procfs_machdep.c, so use a common
...
file under arch/mips/mips.
2002-03-13 02:55:10 +00:00
lukem
cd19d52695
* rename MINIROOTSIZE to MEMORY_DISK_SIZE, so that all md(4) options
...
are now consistently named
* fold opt_mdsize.h into opt_md.h
2002-03-10 19:56:37 +00:00
simonb
fd77e40b6b
Provide a L2 cache configuration function.
2002-03-05 16:12:35 +00:00
simonb
9bcc70fa1d
Don't cast argument to ffs() to long.
...
Per discussion on port-alpha, noticed by Robert Elz.
2002-03-05 09:40:38 +00:00
simonb
4324f37586
Use "#define<tab>".
2002-02-28 03:17:23 +00:00
christos
6b030ee036
- define other DEV_ constants that the local port uses.
...
- delete cdev_decl(mm) since <sys/conf.h> does it.
2002-02-27 01:19:03 +00:00
simonb
d9ab16ba2f
Purge CLSIZE, CLSIZELOG2 and MCLOFSET.
...
Be consistant in the way that MSIZE, MCLSHIFT, MCLBYTES and NMBCLUSTERS
are defined.
Remove old VM constants from cesfic port.
Bump MSIZE to 256 on mipsco (the only one that wasn't already 256).
2002-02-26 15:13:19 +00:00
ad
fab93c4a60
Reserve majors 101 and 102 for wsmux and wsfont.
2002-02-24 00:39:36 +00:00
gmcgarry
feb0773e27
Support two-stage netboot. Is known to work on maxine, but problems
...
have been reported on 3min.
2002-02-23 21:43:57 +00:00
wiz
37e458fa45
strategy should have an 'r'. Inspired by similar change in OpenBSD.
2002-02-19 17:09:40 +00:00
lukem
0d0b003e9c
use ${INSTALL_FILE} instead of "cp -p"
2002-01-31 04:23:15 +00:00
jdolecek
6d265bd894
add options PIPE_SOCKETPAIR to individual kernel configs
...
the option is commented out on everything but kernels I was able
to recognize as INSTALL-like or ones for small memory machines
2002-01-27 13:23:08 +00:00
oster
39b858e3bf
Add new RF_* options for RAIDframe bits that are no longer built by default.
...
While we're here, enable RAIDframe (and RAID_AUTOCONFIG) by default for
architectures that I'm comfortable can deal with it being on by default.
Also: bump the number of 'raid' devices from 4 to 8, since 4 seems to
be insufficient in practise.
2002-01-19 18:45:06 +00:00
manu
5f90ae55b5
Added clockctl
2002-01-12 14:52:40 +00:00
chs
a6f2a36ecc
include sys/systm.h for strcmp() prototype.
2002-01-08 17:10:28 +00:00
martin
b506d6e135
Add PPPoE to all generic kernels that should be able to use it.
...
XXX TODO: do this for INSTALL kernels too, add sysinst support and make the
XXX needed binaries available on the ramdisk root fs.
2001-12-28 12:21:52 +00:00
gmcgarry
bdd225baa1
Add a blurb to the top of all GENERIC files. This serves three purposes:
...
- to clarify some terminology
- to clarify the intention of the GENERIC file
- to cross-reference some useful man pages
2001-12-14 05:34:45 +00:00
lukem
b0b0a32ad7
Set NOxxx= before <bsd.own.mk> is pulled in (even indirectly).
...
Otherwise the appropriate MKxxx=no won't be defined .
2001-12-12 12:24:19 +00:00
tv
8e6f7afb5b
MKfoo=no -> NOfoo
2001-12-12 01:48:43 +00:00
atatat
b45c51b1fc
Roll the rest of the ports over to the new MI kernel build machinery.
...
Any problems reported by testers have been fixed, and massive
cross-compiling of kernels has shown that any problems that remain
with actually building kernels are not related to this.
2001-12-09 05:00:40 +00:00
gmcgarry
f6b3e39803
Don't abuse preprocessor flags.
2001-11-30 06:40:52 +00:00
gmcgarry
b35b20d732
Remove clock_machdep.h.
2001-11-30 06:30:52 +00:00
lukem
ecb81c3f6d
- convert usage of "defopt" to "defflag" where the relevant option does
...
not support a value (e.g., it's to be used as "options FOO" instead of
"options FOO=xxx"). options that take a value were converted to
defparam recently.
- minor whitespace & formatting cleanups
2001-11-28 10:21:10 +00:00
simonb
1b1e4bd3d1
Remove hardcoded values for HZ (under different names!) from mcclock.c
...
and clock_machdep.h, so that now HZ can be any supported frequency of
the mc146818a/ds1287a RTCs.
Tested at 256Hz and 2048Hz.
2001-11-23 01:04:11 +00:00
wiz
1f1e26bd6d
Presence looks better with a 'c' instead of an 's'.
2001-11-21 19:01:31 +00:00
lukem
03aef4723c
cleanup:
...
options SPACE TAB
makeoptions TAB
psuedo-device TAB
remove trailing whitespace
replace multiple spaces -> tabs
options "FOO" -> options FOO
options "FOO=bar" -> options FOO=bar
options "FOO=\"bar\"" -> options FOO="\"bar\""
2001-11-20 12:56:17 +00:00
lukem
99bccc3cab
- pull in opt_kgdb.h where necessary
...
- replace opt_kgdb_machdep.h with opt_kgdb.h
- defparam opt_kgdb.h:
KGDB_DEV KGDB_DEVNAME KGDB_DEVADDR KGDB_DEVRATE KGDB_DEVMODE
- move from opt_ddbparam.h to opt_ddb.h:
DDB_FROMCONSOLE DDB_ONPANIC DDB_HISTORY_SIZE DDB_BREAK_CHAR SYMTAB_SPACE
- replace KGDBDEV with KGDB_DEV
- replace KGDBADDR with KGDB_DEVADDR
- replace KGDBMODE with KGDB_DEVMODE
- replace KGDBRATE with KGDB_DEVRATE
- use `9600' instead of `0x2580' for 9600 baud rate
- use correct quotes for options KGDB_DEVNAME="\"com\""
- use correct quotes for options KGDB_DEV="17*256+0"
- remove unnecessary dependancy on Makefile for kgdb_stub.o
- minor whitespace cleanup
2001-11-20 08:43:19 +00:00
thorpej
af66038f73
Merge the thorpej-mips-cache branch onto the trunk. This is an
...
overhaul of how caches are handled for NetBSD's MIPS ports.
2001-11-14 18:15:10 +00:00
tv
5489b30b60
${MAKE} print-objdir -> ${PRINTOBJDIR}
2001-11-14 00:58:48 +00:00
scw
45e7238a02
Bump the version numbers of all bootloaders which use loadfile_elfXX() now
...
that it tries hard to avoid backwards seeks.
2001-11-09 19:53:11 +00:00
thorpej
e727e3f180
Split elf32 vs. elf64 handling in loadfile(), including support for
...
each separately and explicitly. BOOT_ELF is now BOOT_ELF32 and
BOOT_ELF64, and ELFSIZE should no longer be defined in loadfile_machdep.h.
2001-10-31 17:20:45 +00:00
thorpej
90a2bc2cf7
For MIPS kernel Makefiles, don't set ENDIAN in std.${MACHINE}. Instead,
...
explicitly set MACHINE_ARCH to the appropriate thing. Makefile.mips will
then set all of the internal variables it needs to accordingly.
2001-10-23 20:40:00 +00:00
simonb
bc2ec5e553
Use a single ldscript instead of separate scripts for either endianness;
...
use command line parameters to ld(1) instead to set the endian format.
Clean up some endian decisions in mips/conf/Makefile.mips.
Wrap some long lines.
2001-10-05 05:03:27 +00:00
simonb
30d7e93296
Move pmax-only if_le_ibus.c from dev/tc to arch/pmax/ibus.
2001-10-01 11:42:17 +00:00
simonb
342856c15c
Move asc_tc and asc_tcds config info to dev/tc/files.tc now that pmax
...
uses MI SCSI.
2001-10-01 10:22:42 +00:00