Commit Graph

1581 Commits

Author SHA1 Message Date
thorpej 23bc250391 Merge the nathanw_sa branch. 2003-01-17 21:55:23 +00:00
lukem 4bb41ae2f2 Rework how KERNOBJDIR functions; now it's always determined with
cd ${KERNSRCDIR}/${KERNARCHDIR}/compile && ${PRINTOBJDIR}
This is far simpler than the previous system, and more robust with
objdirs built via BSDOBJDIR.

The previous method of finding KERNOBJDIR when using BSDOBJDIR by
referencing _SRC_TOP_OBJ_ from another directory was extremely
fragile due to the depth first tree walk by <bsd.subdir.mk>, and
the caching of _SRC_TOP_OBJ_ (with MAKEOVERRIDES) which would be
empty on the *first* pass to create fresh objdirs.

This change requires adding sys/arch/*/compile/Makefile to create
the objdir in that directory, and descending into arch/*/compile
from arch/*/Makefile.  Remove the now-unnecessary .keep_me files
whilst here.

Per lengthy discussion with Andrew Brown.
2003-01-06 17:40:18 +00:00
wiz 45ad5c9584 successful with only one l. 2003-01-06 12:46:05 +00:00
thorpej 359ed65495 Use aprint_normal() for cfprint routines. 2003-01-01 00:46:13 +00:00
leo d2a5a7fd71 Regen. 2002-12-28 22:13:22 +00:00
leo e946acdd50 Since 1.6 we have 3 images (not 2!):
- 1Mb on HD floppy's
  - 1.44Mb on HD floppy's
  - 1.44Mb on a DD floppy
2002-12-28 22:11:30 +00:00
thorpej e8cc3884de Rename __LDPGSZ to AOUT_LDPGSZ, to accurately reflect what it is. 2002-12-10 17:14:02 +00:00
thorpej 78ea2dd367 Use __LDPGSZ (which must be == USRTEXT) as the text address for a.out
executables, and eliminate the USRTEXT constant, which was only used
by the a.out exec code.
2002-12-10 05:14:24 +00:00
leo e1de9af762 regen. 2002-12-08 21:33:56 +00:00
leo cacf2eb6c2 Make things work with the new autoconf stuff:
- The pcibus is now called 'pcib' and the isabus 'isab'. Their attributes are
  'pcibus' and 'isabus' respectively. This makes the underlying busses
  attach again.
- Initialize the parent structure in the config_console() function.
  Otherwise we end up without a console.
2002-12-08 21:31:35 +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
thorpej 09dfaace39 The traditional C preprocessor is fixed in GCC 3.3 now, so no need
to skip -traditional-cpp for HAVE_GCC3.
2002-11-26 18:51:12 +00:00
wiz 0b10ce5dfc regen 2002-11-22 12:23:26 +00:00
wiz e78e668887 Fix typo (responsiness -> responsiveness). 2002-11-22 12:20:58 +00:00
chs 95aae207e0 use a merged sys_machdep.c for all the motorola-MMU m68k platforms. 2002-11-03 02:29:37 +00:00
chs bcfb5eee88 enhance the common m68k db_memrw.c to handle read-only kernel text
and switch all the motorola-MMU m68k platforms to use it.
2002-11-02 20:26:36 +00:00
chs 40e5b8394f finish conversion to the common m68k cacheops:
add support for machine-specific flavors of the ops for off-chip caches.
many thanks to Izumi Tsutsui for his help with this.
2002-11-02 20:03:04 +00:00
mrg 603098b9b5 implement separate read/write disk statistics:
- disk_unbusy() gets a new parameter to tell the IO direction.
	- struct disk_sysctl gets 4 new members for read/write bytes/transfers.
	when processing hw.diskstats, add the read&write bytes/transfers for
	the old combined stats to attempt to keep backwards compatibility.

unfortunately, due to multiple bugs, this will cause new kernels and old
vmstat/iostat/systat programs to fail.  however, the next time this is
change it will not fail again.

this is just the kernel portion.
2002-11-01 11:31:50 +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
jdc c709dda0d9 Regenerate config. files from GENERIC.in rev. 1.28. 2002-10-21 16:18:34 +00:00
chs 1c2419d28a merge the 12 copies of vm_machdep.c on the m68k platforms.
clean up some other stuff along the way, including:
 - use m68k/cacheops.*, remove duplicates from cpu.h.
 - centralize a few declarations in (all the copies of) cpu.h.
 - define M68K_VAC on platforms which have a VAC.
 - switch the sun platforms to the (now common) proc_trampoline().
 - do the phys_map thang on the sun platforms too, no reason not to.
2002-10-20 02:37:21 +00:00
junyoung abbf53bb9c Add NEW_BUFQ_STRATEGY (disabled by default). 2002-10-19 05:58:25 +00:00
elric 5ab71e20b0 Added commented out cgd(4)s to GENERIC configs. 2002-10-14 18:39:22 +00:00
elric a855471fb4 Added a commented out cgd(4). 2002-10-14 18:23:30 +00:00
jdolecek fc6049b9b7 replace the somewhat strange poll routine with standard nopoll() (a.k.a
seltrue())
2002-10-10 22:33:15 +00:00
provos d1c3210192 regen from GENERIC.in 2002-10-06 03:00:02 +00:00
provos fbc128def8 add SYSTRACE here; pointed out by lukem 2002-10-06 02:58:21 +00:00
elric d19d268a95 assign majors for raw and cooked cgd's. 2002-10-04 18:28:24 +00:00
thorpej d90d300b7b Overhaul the way cfattach structures are looked up. The cfdata entry
now carries the name of the attachment (e.g. "tlp_pci" or "audio"),
and cfattach structures are registered at boot time on a per-driver
basis.  The cfdriver and cfattach pointers are cached in the device
structure when attached.
2002-10-04 01:50:53 +00:00
thorpej 666aa24c58 Use CFATTACH_DECL(). 2002-10-02 05:51:28 +00:00
thorpej c5e91d447d Use CFATTACH_DECL(). 2002-10-02 04:55:47 +00:00
thorpej 1a6b241b1d Add a config_init() function to initialize the config data structures.
Normally this is called by configure(), but some ports (amiga, atari,
x68k) need to do this early because of how they find the console.
2002-09-30 17:36:31 +00:00
thorpej 9a711d6985 Declare all cfattach structures const. 2002-09-27 20:29:02 +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 71404bb533 Don't include <sys/map.h>. 2002-09-25 22:21:01 +00:00
martti 81e8d78cd4 Add one space between "#option" and "<tab>IPFILTER_DEFAULT_BLOCK" 2002-09-25 11:49:48 +00:00
chs c081614ea2 it really helps to get the stub right before cutting + pasting it 27 times.
alas, I did not.  doh.
2002-09-22 07:53:39 +00:00
chs 55e1f79335 add pmap_remove_all() hook (empty on most platforms so far). 2002-09-22 07:17:08 +00:00
martti 3b553bac54 Added (commented out) IPFILTER_DEFAULT_BLOCK. 2002-09-20 10:39:48 +00:00
ragge b3abfee038 Do not include <sys/clist.h>, it's not used in NetBSD at all. 2002-09-19 10:37:59 +00:00
lukem 6ef0105b93 regen for: enable USERCONF 2002-09-18 02:20:50 +00:00
lukem b31e856d42 enable USERCONF 2002-09-18 02:19:19 +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
leo 449ee49a3d Decrease the vertical frequency. 2002-09-02 12:14:34 +00:00
leo 45501e0df2 Regen. 2002-09-02 12:13:35 +00:00
leo 89532d8b32 Introduce NO_PHYS_NETWORK as a define in the FALCON kernel. This define is
used to turn off the vlan, bridge and pppoe pseudo devices and the NETATALK
protocol.
2002-09-02 12:10:46 +00:00
leo eeb4fd145c defopt SERCONSOLE 2002-08-29 08:28:58 +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
leo 0ec1f59ab6 For some reason, things stopped working without explicitely adding a rule
to link the bootblocks... Found and fix provided by Thomas Gerner.
2002-08-13 20:06:32 +00:00
hannken f6391479b2 Convert to new device buffer queue interface.
Approved by: Leo Weppelman <leo@netbsd.org>
2002-08-10 21:49:14 +00:00
soren 642c31b4a3 Remove extraneous \n's in {err,warn}{,x}. 2002-08-09 10:01:53 +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
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
scw bef00d4895 m68k syscall rototill:
- Switch all m68k-based ports over to __HAVE_SYSCALL_INTERN.
 - Add systrace glue.
 - Define struct mdproc in <m68k/proc.h> instead of <machine/proc.h>.
   (They were all defined exactly the same anyway, other than a couple
   of the MDP_* flags.)
2002-07-13 08:28:40 +00:00
christos 3b50728cf4 MD systrace gluons. 2002-06-17 16:32:57 +00:00
lukem 9574a41373 regen for clockctl 2002-06-17 05:25:18 +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
leo 14693fb272 Regen for nvr0 + keyword clash. 2002-06-15 21:45:36 +00:00
leo 682c6f398a Avoid using variable names in the comments. They turn into useless '1' values
if defined.
2002-06-15 21:44:07 +00:00
leo e599730d1b Add the nvram device. It really is the same as on the other machines and
installboot(1M) needs it.
2002-06-15 21:38:33 +00:00
thorpej d941ddfee0 Don't use -traditional-cpp if HAVE_GCC3. 2002-06-04 21:39:09 +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
thorpej 78bfb83bf6 Don't use multi-line string literals. 2002-05-30 22:25:51 +00:00
thorpej 3d13a6c10b Don't include params on macro when #undef'ing it. 2002-05-30 19:59:36 +00:00
leo 65dd34362f Fix typo. 2002-05-23 14:59:28 +00:00
leo 1babc14d15 Fix the siron()/siroff() macro's. They were using a too loose contraint
that made the wd-driver fall over on kernels compiled with the latest
assembler. The macro;s now use the single_inst_*() functions so there
are less places to go wrong here next time...
2002-05-23 06:46:20 +00:00
leo 3f3c4827e0 Update md config:
- md0 -> 1MB image on a 720KB floppy
	- md1 -> 1.44MB image on a 720KB floppy
	- md2 -> 1.44MB image on a 1.44MB floppy
2002-05-23 06:39:32 +00:00
leo 4393af0b6d regen. 2002-05-23 06:32:42 +00:00
leo 2ad2395021 Remove the 'ex at pci' driver. The ex driver does not work with the
3c900-COMBO card at the moment. Something is wrong with DMA.
2002-05-23 06:30:32 +00:00
leo 5d6a896647 Force the absolute jump in a more elegant way. Suggested by Jaromir Dolecek. 2002-05-23 06:08:40 +00:00
drochner 60b6f587bc Subtract vm_map_min(kernel_map) from kernel virtual addresses to get offsets
into kernel_object where this was missing.
This is a no-op on ports where VM_MIN_KERNEL_ADDRESS==0, ie all but
cesfic.
Confirmed and corrected by Chuck Silvers.
2002-05-22 14:29:23 +00:00
leo 5b406e9d20 Try to defeat the assembler optimizer. If we jump to a local label, it tries
to use a pc-relative jump. Which is definitely not what is needed in the
relocation code!
This is new in the current assembler apparantly. None of the kernels build
after my latest upgrade were able to boot... What else is lurking!
2002-05-19 20:26:58 +00:00
thorpej 204183c0fa * Add "pcitag_t *pba_bridgetag" to pci_attach_args. This is set to
NULL for root PCI busses.  For busses behind a bridge, it points to
  a persistent copy of the bridge's pcitag_t.  This can be very useful
  for machine-dependent PCI bus enumeration code.
* Implement a machine-dependent pci_enumerate_bus() for sparc64 which
  uses OFW device nodes to enumerate the bus.  When a PCI bus that is
  behind a bridge is attached, pci_attach_hook() allocates a new PCI
  chipset tag for the new bus and sets it's "curnode" to the OFW node
  of the bridge.  This is used as a starting point when enumerating
  that bus.  Root busses get the OFW node of the host bridge (psycho).
* Garbage-collect "ofpci" and "ofppb" from the sparc64 port.
2002-05-16 01:01:28 +00:00
thorpej dada8613e1 Let machine-dependent code specify how to enumerate the bus.
Currently, everyone uses pci_enumerate_bus_generic().
2002-05-15 19:23:51 +00:00
thorpej 4fba408409 Implement pci_decompose_tag(). 2002-05-15 17:30:04 +00:00
jdolecek 8b225b8ff7 also don't make the machine symlinks for 'clean' target
move the CLEANFILES update out of the .if, so that the files get removed
  for 'clean' or 'cleandir'
2002-05-05 17:11:41 +00:00
jdolecek 806100bb55 Don't make the machine symlinks for 'cleandir' target either. This
should fix read-only source builds.

XXX Perhaps the condition should be changed to
XXX .if make(depend) || make(all) || make(dependall)
XXX similarily to bsd.kmod.mk?
2002-05-05 15:30:05 +00:00
bjh21 ca9a3c5b44 <bsd.hostprog.mk> and <bsd.prog.mk> don't play nicely together. Since
<bsd.hostprog.mk> includes <bsd.files.mk> anyway, drop <bsd.prog.mk>.
2002-05-04 21:56:50 +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
lukem 2c1cfc8e8c - in <bsd.files.mk>, don't clear FILES after using it, as that prevents
make -V FILES
  from being useful (and given that every other variable can be
  extracted using make -V, the behaviour was unusually inconsistent
  given that the original reason for clearing it doesn't seem to be
  relevant anymore)
- use <bsd.prog.mk> instead of directly including <bsd.files.mk>
  (and possibly <bsd.man.mk> or <bsd.own.mk>)
- remove obsolete NOPROG
2002-04-24 08:18:45 +00:00
tv 7da1186e67 Use ${INSTALL_FILE} to move /boot.atari into place so it is seen by an
UNPRIVED build.
2002-04-23 17:04:31 +00:00
leo 1913310c9e Handle uninitialize warning. 2002-04-18 20:12:01 +00:00
bjh21 12282dd258 Regen. Remove pppoe from FALCON kernels. 2002-04-16 22:44:26 +00:00
bjh21 0884ac3b9e Don't include pppoe in FALCON kernels, since they don't include any Ethernet
devices.
2002-04-16 22:42:55 +00:00
thorpej eedd94475c * Move the mii_bitbang attribute into dev/mii/files.mii
* Pull in dev/mii/files.mii from conf/files, rather than playing
  the magic "files include order" dance in N machine-dependent
  configuration definitions.
2002-04-16 20:50:16 +00:00
bjh21 1f1695ddff Build the keymap-generating programs as hostprogs, since they're only run
on the host system and never installed.

Install the generated keymaps using <bsd.files.mk> rather than by hand, so
that all the UNPRIVED magic can work.
2002-04-15 17:27:33 +00:00
bjh21 5178253d62 Only include opt_*.h #ifdef _KERNEL_OPT. 2002-04-15 17:05:13 +00:00
leo 6b640fdcec Fix PR-16305. Make the 'end' symbol local. 2002-04-15 09:29:56 +00:00
leo 9485827587 Regen. 2002-04-12 22:37:21 +00:00
leo d7f7c55a74 Move USERCONF to GENERIC.in and trim the phy-list. 2002-04-12 22:34:13 +00:00
leo df30bb7f3d Oops, remove some unintended changes. 2002-04-12 22:29:14 +00:00
leo c3e3c2c718 Add some PCI ethernet/audio cards for the Hades and the Milan. 2002-04-12 22:22:25 +00:00
leo f94a8b4d29 Don't bail out when /netbsd is not present. We don't really need it
anyway.
2002-04-12 22:11:33 +00:00
leo cbe57bbd7c Make the exitcode != 0 when the ioctl fails. 2002-04-12 22:09:28 +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
leo f88c5b26b4 Oops, clicked in a '+' from the diff.. 2002-04-09 14:54:40 +00:00
leo 65e47dab1d Mmmmm PCI_PRODUCT_ATI_MACH64_B -> PCI_PRODUCT_ATI_RAGE_PRO_PCI_P... 2002-04-09 13:16:09 +00:00
leo a37ac7efba Fix typo. 2002-04-09 13:14:03 +00:00
leo 47713ea9eb Define minor for DEV_NVRAM 2002-04-09 13:07:27 +00:00
leo 959fef2f01 Pull in prototype for setregs() 2002-04-09 13:04:43 +00:00
bjh21 59c268f094 Use ${PRINT_OBJDIR} rather than looking for the libsa objdir manually. 2002-04-08 17:29:53 +00:00
bjh21 98b2b14b9c Add files.c to SRCS, since other bits of libsa want it. 2002-04-08 17:25:54 +00:00
bjh21 a886efc273 Rather than grovelling around for libsa's objdir by hand, use ${PRINT_OBJDIR},
since that's what it's for.
2002-04-08 16:58:19 +00:00
bjh21 4f23ca4d62 Add -Wno-uninitialized to CFLAGS, since it's overly-pessimistic. 2002-04-08 16:49:46 +00:00
leo 7c8d16d63f Also find swap partitions in a (possibly embedded in AHDI) NetBSD label on
the disk.
2002-03-22 21:29:23 +00:00
leo 7b23fbe29a Add code for reading NetBSD disklabels. 2002-03-22 21:27:58 +00:00
christos 7e277b5782 kill remaining PS_STRINGS instances. 2002-03-20 17:59:22 +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
martin 94881fb123 Rename ISDN devices, per discussion on tech-kern. The network devices
become ippp (ISDN ppp) and irip (ISDN raw IP). The character device now
are called: /dev/isdn (isdnd <-> kernel communication), /dev/isdnctl (dialing
and other control), /dev/isdntrc* (tracing), /dev/isdnbchan* (raw B channel
access, i.e. for user land PPP) and /dev/isdntel* (telephone devices, i.e.
for answering machines).
2002-03-16 16:55:51 +00:00
leo 0cd2b4eee6 Take care of the 'machine' and 'm68k' include paths.
Copied verbatim from the x68k/stand/libsa/Makefile.
2002-03-11 10:29:42 +00:00
tsutsui 3c8b0446fe Change type of dumpmag to u_int32_t since it is actually
a 32bit unsigned magic number.
As per discussion on tech-kern, and fixes port-sparc64/11949.
2002-03-06 13:10:18 +00:00
wiz 634dabecb0 possible has two s. 2002-03-04 15:35:56 +00:00
simonb 6f0fb25121 Don't need to declare phys_map - it is declared in <uvm/uvm_extern.h>. 2002-03-04 02:43:22 +00:00
simonb 4324f37586 Use "#define<tab>". 2002-02-28 03:17:23 +00:00
leo f70bec2792 Also visit the file2swp subdir. 2002-02-27 20:29:14 +00:00
leo 927df39940 copy a file to a 'SWP' partition 2002-02-27 20:14:39 +00:00
christos e8116a8f5b - Use DEV_ constants, instead of documenting the numbers!
- Delete cdev_decl(mm); where appropriate, and other hand-crufting [hi powerpc!]
2002-02-27 01:20:51 +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
leo fa1cc12897 Move some disk I/O and disklabel functions into the library. The code
mostly originated from aptck. Need an extra pass over aptck to cut out all
functionality now moved to the library...
2002-02-24 20:51:07 +00:00
leo c3de71f0bf Fixup icu-code. It now works for both ISA and PCI. 2002-02-23 20:44:45 +00:00
chs b744097a5f allow writing to write-only mappings. fixes PR 3493. 2002-02-14 07:08:02 +00:00
wiz 66df0333a1 s/seperate/separate/ 2002-02-11 10:44:38 +00:00
jdolecek 431b02b81f regen:
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:56:49 +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 d397792cbb Added clockctl 2002-01-12 12:36:31 +00:00
leo bbad0a5d5e Checkpointing my work on the mach64 (with help from Dave Berger). There is
still one major show stopper here. The characters are nearly to dim to read.
This is weird since the same DAC settings as on the other cards are used.
2002-01-09 21:33:49 +00:00
leo 2112cf1085 Fix PCI interrupt allocation on the Milan.
Note that this _seems_ to work. It can't be really tested before my board
is upgraded.
2002-01-09 21:19:14 +00:00
leo 62cf77fa90 Nuke some unused code. 2002-01-09 20:54:14 +00:00
thorpej 3835413bc1 Overhaul of the ISA autoconfiguration code to support direct
configuration of devices logically attached to the ISA bus:

* Change the isa_attach_args to have arrays of io, mem, irq, drq
  resources.
* Add a "pnpnames" and a linked list of "pnpcompatnames" to the
  isa_attach_args.  If either of these members are non-NULL,
  direct configuration of the bus is being performed.  Add an
  ISA_DIRECT_CONFIG() macro to test for this.
* Drivers are not allowed to modify the isa_attach_args unless
  direct configuration is not being performed and the probe fucntion
  is returning success.
* Adapt device drivers -- currently, all driver probe routines return
  "no match" if ISA_DIRECT_CONFIG() evaluates to true.
2002-01-07 21:46:56 +00:00
thorpej 1c8e442315 Pull in files.wfont. 2002-01-07 17:36:40 +00:00
thorpej a130e9e458 Implement bus_space_mmap(). 2002-01-07 07:17:17 +00:00
thorpej ddb7327122 Add missing register prefix. 2002-01-07 02:54:27 +00:00
chs 9451559ef4 pmap_page_protect(VM_PROT_NONE) must remove all mappings in the PV list,
even if they are wired.  we need to be able to remove all mappings to
pages that are being freed due to (eg.) file truncation.
2002-01-02 00:51:33 +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
tsutsui 20d126a5b4 Fix comments for ref-count of PT pages. 2001-12-16 03:53:21 +00:00
chs 2dfd15933e change the reference-counting of PT pages to start from zero instead of
one, so that we don't mess up the global count of wired pages by having
the page's wire_count be non-zero when we free the page.
pointed out by Michael Hitch.
2001-12-13 04:39:50 +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
atatat d2c23d82a1 TRY_SCSI_LINKED_COMMANDS is a param, not a flag. 2001-12-05 22:15:05 +00:00
kleink e5341ee40f No point in installing svr4_machdep.h. 2001-11-28 13:14:12 +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
isaki 26b511b905 fix typo s/68551/68851/ in a comment. 2001-11-24 06:53:16 +00:00
atatat 2bf2c362fb The bridge(4) pseudo-device no longer requires the port to
__HAVE_GENERIC_SOFT_INTERRUPTS, so add it back to all GENERIC configs.
2001-11-23 05:00:22 +00:00
wiz 55e6492076 Explicitly write explicitly without a second e. 2001-11-21 17:33:26 +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 26930db20a regenerate for whitespace cleanup 2001-11-20 11:30:44 +00:00
lukem fdd071b188 cleanup whitespace 2001-11-20 11:29:41 +00:00
lukem 5997b30883 remove trailing whitespace (including in generated files) 2001-11-20 11:26:10 +00:00
chs 621a9ec9ea allocate and free page table pages explicitly instead of abusing
uvm_fault_wire().  this allows us to make pt_map non-pageable,
but we need to be careful in pmap_remove() not to attempt to
reference PTEs after the PTP has been freed.
2001-11-19 06:40:11 +00:00
soren 662f877587 MAXSLP is defined to be a machine-independent scheduling parameter,
so move it into sys/param.h.
2001-11-15 18:06:11 +00:00
tv 48c09b6243 Work around <bsd.lib.mk> used for kernel libs in other places. Clean up
include paths.
2001-11-14 23:01:13 +00:00
jmc 6d536163de Change defaults for kernel compiles. Default all to USETOOLS?=no and have
the etc Makefile override that by putting USETOOLS into $.MAKEOVERRIDES
This way the default for kernel compiles is still to use the installed
toolchain instead of depending on $TOOLDIR. $TOOLDIR can be used by
simply adding USETOOLS=yes to the command line as usual.

Adjust each ports template to set the default no setting and also pull in
bsd.own.mk if they weren't already to ensure they'll build correctly
with the new toolchain setup.
2001-10-26 06:45:33 +00:00
leo 56252d5449 Small changes to the boot system:
- Install boot.atari in both / and /usr/mdec. It looks good to have a
   spare copy soemwhere...
 - Add '/boot.ata' as a last resort bootname.

All per discussion with Simon Burge, Matthew Green and Soren S. Jorvang.
2001-10-24 20:12:57 +00:00
thorpej ba217c4196 Set MACHINE_ARCH explicitly in Makefiles for which it is constant.
Also, since config(8) now explcitly sets MACHINE, there is no need
to do it here in the Makefile.
2001-10-23 19:26:41 +00:00
leo 44c167f10d cread.o now comes from libtos.a 2001-10-14 19:47:58 +00:00
leo 09bc53b541 TOS/MiNT needs unistd.h. 2001-10-14 19:47:12 +00:00
leo 0c42421cbe Just use '_bootversion', don't use C_LABEL macros. From RTSL, I found out
that kvm_nlist adds an underscore when the binary format is ELF.
2001-10-14 19:45:53 +00:00
leo d3694f31a7 Change the name of the tertiary boot to /boot.atari. This was a suggestion
from Matthew Green. It would still allow multi-platform boots.
Thus, the second level loader first tries /boot.atari and uses /boot as a
fallback.
2001-10-14 19:43:44 +00:00
leo 37253bbe6b Add bootxxx 2001-10-13 20:40:43 +00:00
leo 38a9a4d6ff Grr, this file shouldn't have been deleted. I thought I corrected it, in
fact the comments from the commit did not mention it to be deleted, just
'changed'...
2001-10-13 20:26:48 +00:00
leo 75b42ecb12 Bootxx is no longer the last booting stage. It now handles only the
command line options. If NetBSD should be loaded, bootxx tries to load
the raw binary file '/boot' that resides on the same filesystem as the
kernel to be booted. This 3rd level boot is supposed to actually load the
kernel.
2001-10-13 20:22:56 +00:00
leo a9d59a63c5 We need a configurable heap now (that implies we need panic.c too....). 2001-10-13 20:10:02 +00:00
leo 530cee7ec2 3rd level boot 2001-10-13 20:06:57 +00:00
leo dc6d9bae0d Add an address for the 3rd level boot. 2001-10-13 19:55:07 +00:00
leo 95d16475fc Arrange include files section in such a way that we can use this code in
the MiNT and NetBSD/libsa environment.
2001-10-13 19:50:36 +00:00
leo 13a1055e2f Second pass of the bootloader reworking. Everything works from the
TOS/MiNT side now.
2001-10-11 07:07:41 +00:00
leo d6d66d6664 Check-point my work on the bootcode. 2001-10-10 14:19:49 +00:00
chs 7491bc8eea add ashldi3.c, needed by ufs.c due to added cast in lblktosize(). 2001-10-02 06:30:03 +00:00
chs 15982c7311 fix typo in pmap_kremove() which was invalidating the wrong TLB entry.
from Hiroki Tanikawa in PR 14099.
2001-09-29 22:00:29 +00:00
chs 984d30ac45 don't depend on other headers to include sys/proc.h for us. 2001-09-28 12:36:48 +00:00
leo 984d919c49 Add ELF stuff to loader. This is a combined effort from Thomas Gerner and
myself.
2001-09-27 14:29:22 +00:00
jdc b6426dff1e Fix typo in !COMPAT_13 case. 2001-09-24 13:19:54 +00:00
leo 1c35b74032 Enable ELF symbols in ddb. 2001-09-24 09:21:24 +00:00
leo c0233c6e50 Add missing argument to pmap_update(). 2001-09-24 09:17:19 +00:00
tv ab11c169b5 objcopy -> ${OBJCOPY}; remove redundant definitions of OBJCOPY?= (it is
now in bsd.own.mk).
2001-09-22 03:34:17 +00:00
wiz 456dff6cb8 Spell 'occurred' with two 'r's. 2001-09-16 16:34:23 +00:00
chris 0e7661f023 Update pmap_update to now take the updated pmap as an argument.
This will allow improvements to the pmaps so that they can more easily defer expensive operations, eg tlb/cache flush, til the last possible moment.

Currently this is a no-op on most platforms, so they should see no difference.

Reviewed by Jason.
2001-09-10 21:19:08 +00:00
thomas 35ad82f0df Make the bootloader ELF aware.
It can load either a.out or ELF, depending on compile options.
2001-09-08 16:57:09 +00:00
thomas b2990af499 ELF adaption. 2001-09-08 11:21:02 +00:00
thomas f433d91346 Now the default ecexutable is ELF.
Add COMPAT_AOUT_M68K to GENERIC options.
2001-09-08 11:19:06 +00:00
thomas d059704139 ELF adaption, clockframe must be packed. 2001-09-08 11:16:43 +00:00
thomas e97e2309f0 ELF abaption. 2001-09-08 11:15:35 +00:00
thomas eb5341b79a Some ELF adaption. 2001-09-08 11:14:33 +00:00
thomas f34c1c216e Return a useful exit status. 2001-09-07 23:09:36 +00:00
leo 558c39f10c Changes for Chuck Silvers:
implement pmap_k{enter_pa,remove}() correctly.
  remove various checks for impossible conditions.
  other misc cleanup.
2001-09-06 06:27:54 +00:00
leo 975c7a2466 Make this finally compile again. It hasn't worked since the C_LABEL() got in. 2001-09-06 06:24:17 +00:00
thomas 42f770df19 Make the bootblocks build with ELF assembler. 2001-09-05 19:48:12 +00:00
atatat 5f25c01eff Comment out bridge pseudo devices from ports that don't
__HAVE_GENERIC_SOFT_INTERRUPTS.  bridge(4) doesn't compile there.
2001-09-01 23:08:40 +00:00
atatat 97c67a9bae Add bridge pseudo devices to GENERIC configs 2001-09-01 21:52:23 +00:00
simonb 023bdd2bf2 Use comments around the token after a #endif. 2001-08-31 04:44:54 +00:00
tsutsui 62c3bdeea4 sysctl(2) -> sysctl(3) (in comments) 2001-08-26 16:22:20 +00:00
chs ba2c8088f4 use pmap_k* for buffer cache pages. 2001-08-24 04:34:25 +00:00
chs c489e9bff4 add missing pmap_update(). 2001-08-19 18:09:20 +00:00