Commit Graph

29043 Commits

Author SHA1 Message Date
thorpej 9fec93804a Changes to config(8) to support dump configuration in the wake of the
new swap system.  The dump specification syntax is now more flexible,
and supports constructs like the following:

config netbsd root on ? type ? dumps on ?
	- wildcarded root, fstype, and dump device

config netbsd root on ? type ffs dumps on sd0b
	- wildcarded root, ffs root fs, always dump on sd0b

config netbsd root on de0 type nfs dumps on wd0b
	- mount an nfs root using de0, and write kernel crash dumps
	  to wd0b

Also, garbage-collect some now unused code, now that swap configuration
is no longer handled by config(8).
1997-06-14 04:25:55 +00:00
thorpej 70eb4a4223 Add an extern declaration for dumpspec. 1997-06-14 04:19:48 +00:00
thorpej e94c4d3f1c Call cpu_dumpconf() after cpu_rootconf(). 1997-06-14 04:18:34 +00:00
thorpej 91f7efbaf9 Fix crash dump device selection after the recent swap changes:
- If RB_ASKNAME, prompt for the dump device, defaulting to
  partition 'b' of the root device, if the root device is a disk.
- Else, if dumpspec is set to "none", do not configure a dump device.
- Else, if dumpspec is set by config(8), attempt to use that device.
- Else, dumpspec is wildcarded or unspecified; if the root device is
  a disk, select partition b.  (which was the previous default dump
  partition)

Note, dumps to a local disk now work even if root is on nfs.
1997-06-14 04:17:32 +00:00
perry 9c487327a3 Update for new RAMDISK based install system. 1997-06-14 02:07:08 +00:00
drochner 444a854ad2 Separate access to filesystem and access to raw device, mount
device only if needed. This allows to work on unmounted disks in
securelevel 1.
1997-06-13 22:14:58 +00:00
thorpej 4d323b75fe Remove swapon, add swapctl 1997-06-13 19:31:26 +00:00
augustss 86ad297c12 Fix a braino in record source selection and a pasto in detecting
16 bit mode recording.
1997-06-13 19:21:59 +00:00
thorpej 7b3b89d852 Regen: Use compat_12_sys_swapon(). 1997-06-13 19:16:12 +00:00
thorpej 35b5fbf200 Use compat_12_sys_swapon(). 1997-06-13 19:15:18 +00:00
thorpej 896ec49c49 Regen: Use compat_12_sys_swapon(). 1997-06-13 19:12:58 +00:00
thorpej 6f6452cc13 Use compat_12_sys_swapon(). 1997-06-13 19:11:42 +00:00
thorpej 30597f2eed Regen: Use compat_12_sys_swapon(). 1997-06-13 19:10:11 +00:00
thorpej 068d1ad637 Use compat_12_sys_swapon(). 1997-06-13 19:09:12 +00:00
thorpej 41e29be490 Garbage-collect sunos_sys_swapon(); it is not needed. 1997-06-13 19:08:25 +00:00
drochner a0d9d3bc54 Allow to boot from DOS if a XMS manager is installed.
XMS is recognized and used as temporary buffer for the kernel image.
The processor must still be in real mode at program start, so EMM386
or QEMM are not allowed. W*95 is OK.
Written by Martin Husemann (pr port-i386/3336).
Completely separated from other bootloaders for sanity.
1997-06-13 17:49:22 +00:00
thorpej ac4da17507 Regen: Use compat_12_sys_swapon(). 1997-06-13 17:31:37 +00:00
thorpej 454c1df5f3 Use compat_12_sys_swapon(). 1997-06-13 17:30:19 +00:00
thorpej 8671b8f854 Don't #ifdef compat_12_sys_swapon() so that it can be used by other compat
modules.
1997-06-13 17:28:29 +00:00
agc 04cc1342e6 Fix for misuse of NULL definition, from Arne Juul
(<arnej@math.ntnu.no>). Fixes bin/3745.
1997-06-13 16:10:15 +00:00
pk b769cc2fb1 Remove initialization of `swapdev_vp' from mountroot(). 1997-06-13 15:38:58 +00:00
pk e5b0a8820b As long as we actually use `swapdev_vp', initialize it. 1997-06-13 15:37:17 +00:00
ragge 2ab0792e74 Bug fixes to page fault handling system. Many thanks to Johnny Billquist
for hunting down this bug(s).
1997-06-13 15:16:25 +00:00
ragge 5c3a8f6b46 Not-yet-finished console RX01 driver for 11/780. 1997-06-13 14:55:07 +00:00
drochner bc7d1ebcfb Don't #include <string.h>, needed prototypes are in libkern.h. 1997-06-13 14:32:24 +00:00
drochner a0c4d8cb61 Add prototype for strerror(). 1997-06-13 14:30:44 +00:00
drochner 319cc90118 -Wall fixes 1997-06-13 14:29:50 +00:00
drochner 8347a7476f Bring prototypes into scope. 1997-06-13 14:28:52 +00:00
drochner aab2edd1d4 Add prototype for bzero() (since it is implemented here). 1997-06-13 14:27:04 +00:00
drochner 5af5a7c097 Remove strerror() prototype, it goes into stand.h. 1997-06-13 13:48:47 +00:00
drochner d0bb0480b7 Remove bzero() prototype, it goes into libkern.h. 1997-06-13 13:45:50 +00:00
drochner 715639165d Use default media selection from EEPROM. 1997-06-13 13:44:37 +00:00
drochner 7713cd3fb6 Fix misleading comment. 1997-06-13 13:43:05 +00:00
drochner e82115f7f4 Add missing datasize prefix. 1997-06-13 13:42:27 +00:00
drochner e242b6fe17 Reformat comments. (messed up by "indent")
-Wall fixes
1997-06-13 13:41:20 +00:00
drochner d55d9adc84 Reformat comments. (messed up by "indent") 1997-06-13 13:36:04 +00:00
drochner ec191bc613 Fix operand size confusion in 16-bit code. 1997-06-13 13:32:09 +00:00
drochner 2d36b26ee0 The socket descriptor can only be used by one connection at a time.
Simplify the code accordingly.
1997-06-13 13:28:19 +00:00
drochner 44079e2f16 Remove strerror() prototype, it goes into stand.h.
Pass console selection to exec_netbsd().
1997-06-13 13:25:25 +00:00
drochner 906ad4efef Remove strerror() prototype, it goes into stand.h. 1997-06-13 13:22:08 +00:00
drochner 771175f3d8 Remove some relicts from the time before libsa/Makefile got
"SAMISCCPPFLAGS".
Enable -Wall.
1997-06-13 13:17:46 +00:00
drochner 1b787da26a Force inclusion of "diskbuf" into bootsectors.
This allows to build bootsectors containing netboot code
("make netboot.sym" in the netboot directory).
1997-06-13 13:12:29 +00:00
pk 2e8a55e122 TIMESPEC_TO_TIMEVAL => TIMEVAL_TO_TIMESPEC 1997-06-13 08:59:51 +00:00
ragge 9412f1c4fc Some new definitions for different boot devices. 1997-06-13 08:24:09 +00:00
ragge 68a4a97360 Add clock_subr.c. 1997-06-13 08:18:49 +00:00
thorpej dacadc3aff Add the ext2fs file system. 1997-06-13 00:44:13 +00:00
thorpej 9e69444bbd Nuke __VM_PMAP_HACK. 1997-06-12 23:57:26 +00:00
mrg 7bc62c9a2d move swapon() stub here 1997-06-12 22:39:15 +00:00
mrg 5321ad5c6f regenerate. 1997-06-12 22:07:47 +00:00
mrg 9cee42ea7c swapon back to compat_12 syscall.. 1997-06-12 22:05:37 +00:00