Commit Graph

15201 Commits

Author SHA1 Message Date
cgd 778552d37c add bad sector information to cpu disklabel 1997-02-03 19:46:07 +00:00
gwr 165a7a3eeb Put all the name/value pairs in an initialized array of structures
so that this can be compiled to assembly code and then translated
directly into assym.h by a simple awk program (genassym.awk).
This program can still be run the old way for verification.
1997-02-03 19:31:44 +00:00
scottr d8deae5099 Convert to bus.h; this removes the need for the ASCBase global. 1997-02-03 17:36:00 +00:00
scottr f042e543c9 Implement basic bus space access macros/functions.
Note:  we currently do not use the extent manager.
1997-02-03 17:32:54 +00:00
oki b2f7c338bf Correct prototype 1997-02-03 17:01:57 +00:00
oki 9f4a52fe65 Added missing semicolon 1997-02-03 16:55:00 +00:00
thorpej 4d7a6cf6dd Update clean and depend rule for kernel make changes. 1997-02-03 07:23:32 +00:00
mark 649a90497e No need to check for CPU_ARM7500 being defined as this option implies
CPU_ARM7 which has to be checked anyway.
1997-02-03 03:12:09 +00:00
scottr df2df037ca copypage() is now declared in m68k/cpu.h 1997-02-02 21:33:30 +00:00
thorpej 7b30910b48 KMEMSTATS is a header option; pull in "opt_kmemstats.h". 1997-02-02 21:22:16 +00:00
thorpej 796764eb23 KMEMSTATS is a header option; pull in "opt_kmemstats.h" iff _KERNEL. 1997-02-02 21:20:58 +00:00
thorpej 72096190e8 Make KMEMSTATS a "header option". 1997-02-02 21:16:25 +00:00
mhitch 93ce3347e7 Where did that 0 come from? Fix typo in cpu type definitions. 1997-02-02 18:37:16 +00:00
scottr ea6b85a8db copypage() is now declared in m68k/cpu.h 1997-02-02 18:19:55 +00:00
thorpej 876ea64acb Add "options LKM", suggested by Klaus Klein <kleink@layla.inka.de>. 1997-02-02 17:29:42 +00:00
thorpej 2a0c6f4a0a Use splkbd(). 1997-02-02 09:40:31 +00:00
thorpej 47e3ffe813 Definition of splhil() is in param.h now. 1997-02-02 09:39:21 +00:00
thorpej 14a4465f0b - Implement _splraise(), like _spl(), but only modifies the SR if the
new ipl is higher than the ipl currently set in SR.  (Thanks to
  scottr@netbsd.org for implementing it while I was busy with other stuff!)
- Define spl{bio,net,tty,imp} in terms of _splraise().
- Move definition of splhil() here, and define splkbd() as an alias for it.
1997-02-02 09:34:26 +00:00
thorpej e17b9d9d39 Garbage-collect extra copy of mappedcopy. 1997-02-02 08:56:04 +00:00
thorpej 97be41b969 Use zeropage() in pmap_zero_page() 1997-02-02 08:54:20 +00:00
thorpej e3a9cf46ee zeropage -> devzeropage, and make it static. 1997-02-02 08:50:51 +00:00
thorpej f05c6918f6 Garbage-collect extra copypage() 1997-02-02 08:48:35 +00:00
thorpej 8501929f45 Use copypage() and zeropage() in the right places. 1997-02-02 08:41:10 +00:00
thorpej adcdf4cc59 zeropage -> devzeropage, and make it static. 1997-02-02 08:39:55 +00:00
thorpej 8d00d8cb60 Remove an un-true comment. 1997-02-02 08:38:51 +00:00
thorpej 95e30218f2 Declare and set cputype and mmutype. 1997-02-02 08:36:39 +00:00
thorpej 109700d828 Use copypage() and zeropage() in the right places. 1997-02-02 08:35:27 +00:00
thorpej 2bde56ef38 zeropage -> devzeropage, and make it static. 1997-02-02 08:34:16 +00:00
thorpej 3af641fa98 Remove an untrue comment. 1997-02-02 08:33:11 +00:00
thorpej 68950edae8 Garbage-collect extra copy of mappedcopy. 1997-02-02 08:30:54 +00:00
thorpej 243f0119cb Purely cosmetic whitespace frobbing. 1997-02-02 08:30:08 +00:00
thorpej 94c399f00e Use zeropage() in pmap_zero_page(). 1997-02-02 08:28:58 +00:00
thorpej 3f17e697bf zeropage -> devzeropage, and make it static 1997-02-02 08:27:15 +00:00
thorpej 2d04a07129 Garbage-collect extra copypage(). 1997-02-02 08:25:23 +00:00
thorpej 07ded04c6f Use zeropage() in pmap_zero_page() 1997-02-02 08:20:38 +00:00
thorpej 6bab515bce zeropage -> devzeropage, and make it static. 1997-02-02 08:18:58 +00:00
thorpej 2282bab9ea Garbage-collect extra copypage() 1997-02-02 08:17:46 +00:00
thorpej 65494a33cb Garbage-collect extra copy of mappedcopy. 1997-02-02 08:03:06 +00:00
thorpej 2f2eed4a30 Use zeropage() in pmap_zero_page(). 1997-02-02 08:01:32 +00:00
thorpej c51511c5b5 zeropage -> devzeropage, and make it static. 1997-02-02 07:59:41 +00:00
thorpej 4b525c0004 Clean up the mappedcopy initialization code. 1997-02-02 07:58:49 +00:00
thorpej 00111f0a5d - Eliminate some unnecessary cpu/mmu checks, based on what CPUs
the kernel was compiled for.
- Add some comments about possible further optimization.
- Garbage-collect extra copypage()
1997-02-02 07:55:52 +00:00
thorpej 2bf5021447 - Use <errno.h>, not "extern int errno."
- Define FPU constants.
1997-02-02 07:53:16 +00:00
thorpej f10c97e7e7 zeropage -> devzeropage, and make it static. 1997-02-02 07:29:35 +00:00
thorpej 2a1f46c2d5 Gerbage-collect extra copypage() 1997-02-02 07:27:48 +00:00
thorpej f5c8779ed3 zeropage -> devzeropage, and make it static. 1997-02-02 07:17:14 +00:00
thorpej e38eb392aa - Set cputype and mmutype (XXX we set 68040 in the 68060 case)
- garbage-collect extra copypage()
1997-02-02 07:15:05 +00:00
thorpej c4756a90f1 Define CPU, MMU, and FPU constants. 1997-02-02 07:05:52 +00:00
thorpej de70c1051d prototype mappedcopy{in,out}(), {copy,zero}page(). 1997-02-02 06:56:57 +00:00
thorpej 9568fcee35 Build mappedcopy.c conditional on "options MAPPEDCOPY" 1997-02-02 06:55:15 +00:00
thorpej e9eba07a8f Add the Utah mappedcopyin/mappedcopyout functions to a common m68k
area.  These functions are designed to improve performance of large
copyin/copyout operations by mapping the user page in to the kernel
address space and using bcopy(), rather then copying across protection
boundaries.

XXX This doesn't work yet -- the way it's called doesn't obey C calling
XXX conventions.  That will be fixed soon.
1997-02-02 06:54:10 +00:00
thorpej 7dae9fb29b Add two optimized functions used by pmap.c:
- copypage() -- a single page-aligned NBPG-byte copy.
- zeropage() -- a single page-aligned NBPG-byte zero.
These functions don't play around with alignment, etc.  Their use
causes a measureable performance improvement in pmap_copy_page()
and pmap_copy_page().

A few m68k ports already had copypage() in their locore.s.  It has
been moved here so it can be shared.
1997-02-02 06:50:06 +00:00
thorpej 834bef67f2 If the user has halted the system, allow them to press a key to reboot. 1997-02-02 05:33:30 +00:00
thorpej 6dc3c24a7c Add missing \n in printf format for "cannot mount root" error message.
Pointed out by cgd@netbsd.org
1997-02-02 02:55:06 +00:00
carrel 31ff345489 My config files. To quote from thorpej: "for kicks". 1997-02-02 00:23:23 +00:00
thorpej 312e813007 Oops, need PFIL_HOOKS. 1997-02-02 00:11:33 +00:00
thorpej f28303c413 - Garbage-collect a kludge necessary when we were using old config.
- Synch the "clean" rule with the i386 port's.
- Add a commented-out rule for generating assym.h w/ the new genassym.sh.
  Some slight changes need to be made to genassym.h to make it work with
  m68k, so we can't use it just yet.
1997-02-01 23:55:10 +00:00
scottr 37fbc156dc Now that we can compile without warnings, enable -Werror 1997-02-01 21:55:23 +00:00
mrg 96c21c1fcf no need to delcare mcount here; fixes warnings(errors) when compiling a kernel with profiling. 1997-02-01 20:56:40 +00:00
matthias a6befcbede * clean, depend :: -> : change
* use genassym.sh to create assym.h
1997-02-01 09:23:02 +00:00
cgd 9eb66b4bab back out some of the previous change. In particular, go back to
#defining MALLOC/FREE to use malloc()/free() if DIAGNOSTIC (not DEBUG)
since DIAGNOSTIC is what enables freelist consistency checking, and
don't force the definition of KMEMSTATS if DEBUG is defined (there's no
reason to, since users can do it themselves if they want it).
1997-02-01 05:33:32 +00:00
cgd 3d3f4afbea use cnpollc() appropriately in getstr() 1997-02-01 02:28:48 +00:00
mhitch e65c38353c Use the disk offset to the boot block (first block in the partition) to
pass the block number of the boot partition to the kernel.  The kernel
will use the block number to determine which disk device the kernel was
booted from and set the boot device based on that instead of the old
"generic" method.
1997-02-01 01:46:26 +00:00
cgd 1a0b411d75 list 'a'+MAXPARTITONS-1, rather than just 'a'+MAXPARTITIONS, as last partition 1997-02-01 00:39:14 +00:00
mhitch 3af372d68a If the bootloader passes the boot partition offset, try to determine which
disk device was the boot device and use that for setroot().
1997-01-31 23:26:10 +00:00
mhitch 965c7a43fe Get the boot partition offset from the boot loader. Also pass it when
doing a reload.  The partition offset will be used to determine which
disk device was the boot device.
1997-01-31 23:18:56 +00:00
carrel 05c0e704dc Make "options HP340" actually work without having "option HP360". 1997-01-31 23:01:21 +00:00
mhitch d8489a6f7e "options GENERIC" is obsolete, don't need the prototype for setconf() anymore. 1997-01-31 22:59:19 +00:00
mhitch 78d0024855 "options GENERIC" is obsolute. 1997-01-31 22:55:42 +00:00
gwr 186a6ad683 Add include <machine/mon.h> so this compiles, etc. 1997-01-31 22:33:47 +00:00
pk 1cdfe6e18c Simplify a bit by using `next' statements, eliminating the `matched' variable.
Also, ignore lines with just whitespace, instead of reporting a syntax error.
1997-01-31 21:56:28 +00:00
pk d4e0e6e7a3 - remove two debugging (apparently) lines.
- generate a `return(0)' at the end of the generated `int main()'.
- append a newline when printing the rest of a `^quote[ ]+' line.
1997-01-31 21:38:16 +00:00
carrel 32f2102a58 Patch from thorpej to mark non-console grf's and ite's alive. 1997-01-31 21:16:50 +00:00
thorpej 2c94d6307c Fix typo introduced in new setroot code. (There's only just a little
irony in that, eh?)

From Klaus Klein <kleink@layla.inka.de>, PR #3173.
1997-01-31 20:20:53 +00:00
thorpej 604572daf0 This file is now obsolete. 1997-01-31 19:11:31 +00:00
thorpej 2ca27c5550 Garbage-collect "argdev". 1997-01-31 19:10:27 +00:00
cgd 95963edf4f add KMEMSTATS to ALPHA, clean up ports diagnostic/debug options 1997-01-31 18:00:33 +00:00
fvdl ffffefac59 nfsrv_readdirplus also suffered from the off-by-one loop problem; fix it too. 1997-01-31 16:12:26 +00:00
veego 87ba0ff405 :: -> : (pr #3154 with a minor change) 1997-01-31 10:16:07 +00:00
thorpej a2ea85a36d Faily major kernel change went in today; bump date to 199701 and
version to 1.2C.
1997-01-31 09:30:05 +00:00
thorpej bcdef359ef Fairly major kernel change went in today; bump the version to 1.2C. 1997-01-31 09:28:05 +00:00
fvdl 5710775a55 Fix order error in loop condition which could cause a crash in nfsrv_readdir().
Fixes PR #3170
1997-01-31 09:09:43 +00:00
thorpej bb1cdc5027 Yet Another NFSCLIENT -> NFS. (I must be getting tired.) 1997-01-31 06:13:42 +00:00
thorpej 04da46b022 Gah, missed another NFSCLIENT -> NFS. 1997-01-31 06:12:57 +00:00
thorpej 6ce149b26e Oops, missed an NFSCLIENT -> NFS. (grep is your friend) 1997-01-31 06:12:07 +00:00
thorpej 739819c9ba Adopt for new file system and root spec grammar. 1997-01-31 06:05:14 +00:00
thorpej ac90be5e3b Oops! NFSCLIENT -> NFS 1997-01-31 06:03:38 +00:00
thorpej 87e3085155 Adopt for new file system and root spec grammar. 1997-01-31 06:02:19 +00:00
thorpej d8096d0e4e Oops! NFSCLIENT -> NFS 1997-01-31 05:57:05 +00:00
thorpej 41809f9413 Adopt for new file system and root spec grammar. 1997-01-31 05:56:10 +00:00
thorpej 41a9e723e3 Adopt for new file system and root spec grammar. 1997-01-31 05:46:09 +00:00
cgd 6384f7c322 fix check_console() changes:
* prototype it before it is used (several ports compile with
  -Wstrict-prototypes -Wmissing-prototypes), so this is _necessary_.
* conform to C syntax (yes, that's right, it wouldn't parse).
* make error check less error-prone, + style fixups.
1997-01-31 05:25:24 +00:00
thorpej 7edaeb36ce Oops, remove straggler NFSCLIENT. 1997-01-31 05:20:06 +00:00
thorpej e0145dbc88 NFSCLIENT -> NFS 1997-01-31 05:18:51 +00:00
thorpej 739f23a219 This file is obsolete; this information is now generated by config(8). 1997-01-31 05:12:49 +00:00
thorpej 593fdd462d NFSCLIENT -> NFS 1997-01-31 03:06:06 +00:00
thorpej 727078d31e - Add ffs_mountroot to ffs_vfsops.
- Only attempt to mount a root FFS on a DV_DISK class device.
1997-01-31 03:05:31 +00:00
thorpej 12f087b37a - Add external declarations for globals used by the setroot() code.
- Prototype the mountroothook functions here.
1997-01-31 03:04:31 +00:00
thorpej 5d55d65b47 Define the kern.root_device sysctl node. 1997-01-31 03:03:29 +00:00
thorpej 1010921e24 - Add a (*vfs_mountroot)() entry to struct vfsops, used by the
vfs_mountroot() function.
- Prototype vfs_mountroot() and vfs_getopsbyname().
1997-01-31 03:02:57 +00:00