Commit Graph

15582 Commits

Author SHA1 Message Date
scottr
c1370f4435 Add console bell callback support 1997-02-10 22:06:20 +00:00
gwr
7ceee3c729 Add -fno-defer-pop to COPTS (helps ddb backtrace).
Add AFLAGS=-m68020 and use it with ${AS} commands.
Depend kgdb_stub.o on Makefile (KGDBDEV, KGDBRATE).
1997-02-10 19:23:41 +00:00
gwr
a5b114c665 Forgot to initialize cn->cn_dev, cn->cn_pri 1997-02-10 19:11:12 +00:00
fvdl
c745cba077 If the target for a rename() call exists, it will be removed. So, don't
leave any pages around (i,e, insert a vnode_pager_uncache()).
1997-02-10 12:41:19 +00:00
fvdl
c76913c26f Move vnode_pager_uncache to a better spot in nfsrv_remove. Also use it
in nfsrv_rename, if the 2nd argument is an existing file and will thus
be removed.
1997-02-10 12:20:49 +00:00
matthias
258699485f add missing parentheses to assym.h rule. 1997-02-10 10:54:00 +00:00
mark
faec60a06c Add a define for the cpu_functions structure member cf_sleep. 1997-02-10 04:01:08 +00:00
mark
700a2e2041 Remove the code force the processor into a sleep mode during idle() and
instead call the sleep function defined in the cpufunctions structure.
1997-02-10 03:57:42 +00:00
mark
187f8c7c3d Remove local definitions of macros to push and pull trapframes and instead
include machine/frame.h to get these definitions.
1997-02-10 03:50:53 +00:00
mark
60cab4af5d Centralise the definition of the ASM macros used to push and pull and
trapframe and irqframe structures defined here top and from the stack.
1997-02-10 03:26:28 +00:00
mark
28203348d8 Process the parameters passed in the SYNC_ICACHE sysarch() call and just
sync the caches for the specified virtual address range.
1997-02-10 03:19:36 +00:00
mark
5f3ba778ab Define parameters for the arm32_sync_icache() function. 1997-02-10 03:14:22 +00:00
fvdl
be787cc073 * Fix some bugs in NQNFS (malformed RPC requests, no directory lease eviction)
* Avoid possible NULL ptr ref in nfs_reply
* Don't ever try to sillyrename directories (from FreeBSD)
1997-02-09 21:19:04 +00:00
christos
041fb607e0 Add a break; in the irq/drq allocation loop so we take the first one instead
of the last one.
1997-02-09 18:36:44 +00:00
christos
12a7c99376 Fix an irq -> drq typo 1997-02-09 18:36:11 +00:00
matthias
9712aaf1b5 * clean:: -> clean: change. 1997-02-08 09:34:46 +00:00
matthias
f3cdc89574 * Use Phil Budne's full name in the copyright header.
* Define RECOVER to something faster.
* Check for a valid softc in scnsoft. When there is
  a "hole" (e.g. you have scn0,scn1, scn4, scn5) the
  old code would panic. Thank's to Phil Budne for
  finding and fixing this bug.
1997-02-08 09:34:31 +00:00
matthias
f3ae5cdf29 * Convert NetBSD/pc532 to use the new libkvm. 1997-02-08 09:34:12 +00:00
matthias
8a3b8c0477 * Fix a bug that would had cause an hang on fpuless machines. 1997-02-08 09:34:09 +00:00
matthias
8ec2fa0cfa * Convert NetBSD/pc532 to use the new libkvm by stealing code
from the alpha port.
1997-02-08 09:34:06 +00:00
matthias
5a17e54866 * Convert NetBSD/pc532 to use the new libkvm. 1997-02-08 09:34:01 +00:00
matthias
92842a6db7 * Remove some unused macros. 1997-02-08 09:33:58 +00:00
matthias
efea7eb83f * Correctly format the NetBSD-Id string. 1997-02-08 09:33:55 +00:00
matthias
6f5bca455b * Remove whitespaces from empty lines.
* Add (commented out) type and asmtype commands. asmtype will
  be used to define the gcc constraint used to emit constants
  and type will be used to define the type the constant should
  get casted to before passing it to printf.
1997-02-08 09:33:52 +00:00
matthias
869f7f78fb * Now that we use genassym.sh/genassym.cf this is no longer needed. 1997-02-08 09:33:50 +00:00
matthias
0e2fbfdbcd * The rom monitor and the bootprogram might have another idea about unit
numbers then the kernel. Use some code stolen from the mvme68k port
  to find the bootdevice.
1997-02-08 09:33:45 +00:00
matthias
ed7d482ddf * Don't wildcard scn[0-7]. This will not work for holes (at the moment). 1997-02-08 09:33:28 +00:00
matthias
d90eb8ee1e * Corrected rule for assym.h. In case genassym.sh fails assym.h
has to be removed and a non-zero exit value has to be provided
  to make.
* Removed last references to genassym and genassym.o.
1997-02-08 09:33:27 +00:00
matthias
3eded68a05 * Added PFIL_HOOKS to make modloading of the ipf module possible.
* Aded UNION fs. The lkm doesn't work at the moment.
1997-02-08 09:33:24 +00:00
matthias
6224783740 * Added KMEMSTATS option to save some memory. 1997-02-08 09:33:22 +00:00
matthias
021ca50fe4 * Added INSECURE to allow modloads in multiuser mode.
* Added PFIL_HOOKS to make modloading of the ipf module possible.
1997-02-08 09:33:20 +00:00
matthias
64065fbba2 * Removed old and invalid comment.
* Added LKM, PFIL_HOOKS and NFSSERVER options.
* Added four ccd devices.
* Removed PLIP and NO_INLINE_SPLX options.
* Removed MFS, MSDOSFS, CD9660, FDESK, KERNFS and PROCFS filesystems
  because they all are lkmable.
1997-02-08 09:33:17 +00:00
matthias
67c8bca33d * Convert NetBSD/pc532 to use the new libkvm. 1997-02-08 09:33:03 +00:00
matthias
8f1067c4d8 * Remove some unused macros. 1997-02-08 09:32:33 +00:00
matthias
1f7aefb0a1 * Declare bootdev and booted_device. 1997-02-08 09:32:30 +00:00
mrg
f5c45aaa78 allow queue.h macro's to act as functions. 1997-02-08 04:47:41 +00:00
cgd
9277910d32 kill wdc/wd, which accidentally crept in in the last commit 1997-02-08 01:06:58 +00:00
gwr
60d4782469 Get rid of HOSTED_CC. 1997-02-07 22:55:44 +00:00
mycroft
1dd1504980 Move the aha ISA probe functions into a separate file. 1997-02-07 17:37:27 +00:00
mikel
c96410d0c1 move inclusion of <sys/cdefs.h> up to catch all uses of __P();
PR kern/2712.
1997-02-07 07:29:38 +00:00
mikel
24378379b8 eliminate obsolete t_min and t_time shortcuts; from Bill Studenmund in
PR kern/2440.
1997-02-07 06:35:44 +00:00
mikel
6131acb9c8 fix typos; from Erik Bertelsen in PR port-i386/2272. 1997-02-07 06:12:46 +00:00
mikel
e707982f35 check options argument to wait{3,4,pid}(); from Klaus Klein in PR 3182. 1997-02-07 05:33:07 +00:00
pk
5851e327c5 Inline functions and place variable assigment after the program.
This enables other versions of AWK (eg. `nawk') to grok the script.
1997-02-06 22:16:12 +00:00
gwr
ea3925f508 FIXUP_PC_AFTER_BREAK now takes an arg of type db_regs_t * 1997-02-06 21:16:28 +00:00
is
721627ba4a The last few libsa/open.c changes gradually increased code size, until fdboot
became too big. Disable its building, til we can squeeze a couple of bytes
out of the code again.
XXX Yes, this is a disgusting hack.
1997-02-05 22:32:44 +00:00
cgd
711939bcf4 add a bunch of commented-out, unconfirmed entries, based on data from
a "Smart Frame Buffer TURBOchannel Module" user's manual(?), and from
some "DECstation 5000 Model 240 Options and Upgrades" guides found
while cleaning out my office.
1997-02-05 22:14:18 +00:00
thorpej
82adcde8ca Fix edit-o that caused panic's when root was on HP-IB disk. 1997-02-05 20:56:29 +00:00
mhitch
f470b2c5b5 Fix makebootdev() bug when boot device isn't in pmax_nam2blk. When booting
from the network, makebootdev() would attempt to use a NULL pointer and
silently hang.
1997-02-05 17:53:52 +00:00
gwr
ca11ffdfae Kill a type-cast. 1997-02-05 17:44:59 +00:00
gwr
b4f4d97d22 s/romp/romVectorPtr/ 1997-02-05 17:39:21 +00:00
gwr
84fad0db28 include <machine/pte.h> 1997-02-05 17:33:46 +00:00
gwr
699e513ced Add -Dsun3 1997-02-05 17:31:46 +00:00
oki
d3fdda40ff Use bitmask_snprintf (from i386) 1997-02-05 16:35:47 +00:00
gwr
8b6cbcf45c sync with the sun3x version 1997-02-05 14:51:23 +00:00
gwr
2ae3afc4d0 Simplify the cpp conditional sections near the end.
Get rid of "romp" (too prone to name conflicts).
1997-02-05 14:36:46 +00:00
gwr
05c4b6759d Apply that fix from Bill Studenmund that keeps us from ignoring DCD.
Also fix the copyright (s/REGENTS/FOUNDATION/).
1997-02-05 14:06:58 +00:00
mrg
491e8af174 minor KNF from jason. 1997-02-05 08:26:25 +00:00
mrg
eadd7792d9 add thread_sleep_msg() that takes a wait message, and change thread_sleep()
into a macro for backwards compat.  alter vm_object_sleep() to take advantage
of this.
1997-02-05 08:09:45 +00:00
mrg
85328f7b35 KNF. 1997-02-05 07:48:42 +00:00
scottr
6d39698236 db_expr_t is now a long. 1997-02-05 05:10:24 +00:00
pk
ddb0d6fa06 Add `-mno-fpu' to compiler flags; pulled up from 1.2 version. 1997-02-05 00:12:46 +00:00
pk
095b310e77 db_expr_t is now a long. 1997-02-05 00:01:50 +00:00
thorpej
39d0deba46 - Don't include option headers if _LKM is defined.
- If _LKM is defined, always use the function versions of malloc()/free().
1997-02-04 22:23:53 +00:00
pk
79da30bb31 typo. 1997-02-04 21:59:26 +00:00
fvdl
64fcae7bcb * Make sure a new socket is created when switching to/from NOCONN with
a mount
* Add extra printf statements to hopefully get some more info on lockups,
  specifically when a send error is ignored.
1997-02-04 21:33:19 +00:00
fvdl
0a4a706e84 Cast initialization of 2nd field in db_variable struct to (long *). Should
probably be register_t *
1997-02-04 19:52:55 +00:00
thorpej
f79798f810 Bump version: Add support for booting gzip'd kernels 1997-02-04 19:42:29 +00:00
thorpej
76839db714 Add the ".gz" names of the kernels to the kernel names list. New
boot order is:

	netbsd -> netbsd.gz -> netbsd.bak -> netbsd.bak.gz ->
	  netbsd.old -> netbsd.old.gz -> onetbsd -> onetbsd.gz
1997-02-04 19:40:07 +00:00
thorpej
6a721b41eb Bump version: Add support for reading gzip'd miniroot images 1997-02-04 19:36:29 +00:00
thorpej
8ceaa2c3f5 - If copying the miniroot from an NFS server, don't attempt to
compute the number of iterations through the copy loop based
  on file size; the miniroot image may be compressed.  Instead,
  ignore short reads in the NFS case, and handle them like EOF.
- Fix typo in a printf format.
1997-02-04 19:34:09 +00:00
thorpej
e876a86309 Add support for transparent handling of decompressing read, useful
for gzip'd kernels and miniroot images.
1997-02-04 19:28:50 +00:00
thorpej
5a9b27d5cf Set the heap limit to the last byte of the 3rd page from the
end of RAM, i.e.:

	[ heap limit page][msgbuf page][ROM scratch page]
                        |                              |
		    heap limit                     end of RAM
1997-02-04 19:14:57 +00:00
ragge
a1d8a4570c Support for DL11 (-compatible) async ctlr.
Written by Ben Harris (bjh@mail.dotcom.fr).
1997-02-04 19:13:15 +00:00
thorpej
9a6b12944d In close(), if the file descriptor was used for writing, don't free
data structures that weren't allocated.  Fix sanity-checked
by Matthias Drochner.
1997-02-04 18:38:20 +00:00
thorpej
63930d7db4 Add some debugging code to free(), to catch frees before the
start of the heap and beyond the end of the heap (if a heap limit
is defined).
1997-02-04 18:36:33 +00:00
gwr
599d8811dc Adapt to changed definition of struct db_variable. 1997-02-04 18:15:18 +00:00
gwr
c0b220738c change :: to : 1997-02-04 17:15:38 +00:00
oki
aabb7063c9 Added copyright notice 1997-02-04 11:45:03 +00:00
oki
53aceb9c4b hit any key to reboot when halted (like hp300) 1997-02-04 11:43:30 +00:00
oki
0e9085546c Added ipfilter device 1997-02-04 10:35:39 +00:00
thorpej
1e250357ac Thou shalt not taunt the HP BOOTROM with silliness such as incorrect
link order.
1997-02-04 08:39:26 +00:00
mark
51495d4bf1 Updated to work with the recent changes to the MI DDB code. 1997-02-04 07:15:46 +00:00
mark
6ec73b6227 Removed all the CPU_SA110 conditional compilation. All the cache
cleaning calls will now be indirected throught the cpu_functions
that will have the correct function pointers for the CPU in use.
All register fixup code following aborts has been removed and
instead a call to the cpu_*abt_fixup() routine is called instead
to provide the correct fixed based on the CPU type and abort mode.
1997-02-04 07:12:30 +00:00
mark
06f80904ec Set the sc_ixfer function pointer to the default sfas_ixfer() function
during initialisation if the pointer is NULL.
Use the sc_ixfer function pointer in the sfas softc when doing
immediate polled transfers.
1997-02-04 06:57:47 +00:00
mark
1715a217cf Removed the SA110 condition compilation and instead test the cputype
variable to determine what adjustment is required for the trace back PC.
1997-02-04 06:53:41 +00:00
mark
403608bdbb Add defines for the cpu_functions structure members cf_cache_purgeID and
cf_context_switch.
1997-02-04 06:51:34 +00:00
mark
e626201c12 Adopt as standard, the instruction sequence for storing the trapframe that
includes the workaround from the SA110 STM^ bug. This allows one piece of
code to be used to store the trapframe on all CPU types.
1997-02-04 06:49:08 +00:00
mark
f6570e9a78 Update for recent changes. Added options to support ARM6, ARM7 and SA110
CPUs in a single kernel.
1997-02-04 06:37:06 +00:00
mark
c2a184bc45 Fix SA110 CPU ID. 1997-02-04 06:30:57 +00:00
mark
64c714c82c This configuration file is dead now that all ARM6/7 & SA110 CPUs are
supported in the one kernel.
1997-02-04 06:29:57 +00:00
mark
2f04af3ab0 This file is no longer needed as the functionally it provided is now
provided within cpufunc_asm.S
1997-02-04 06:24:27 +00:00
mark
c2a2cba5dd Add Makefile as a dependancy cpufunc.o and cpufunc_asm.o 1997-02-04 06:19:08 +00:00
mark
663277e00c Simplify cpu option checks now that multiple CPU types are supported in a
single kernel.
1997-02-04 06:10:48 +00:00
mark
f53ea9b979 Only include md_hooks.c if md AND memory_disk_hooks are defined.
Updated for changes in the cpu specific functions (addition of
cpufunc.c and cpufunc_asm.S and removal of coproc15.S).
1997-02-04 05:58:55 +00:00
mark
ee02ce0401 Major overhaul of handling of CPU/MMU/TLB specific functions. This allows
different ARM CPUS with different cache architectures for example to be
supported in a single kernel.
        - All CPU/MMU/TLB specific functions are now held as function
          pointers in a cpu_functions structure defined in machine/cpufunc.h
	  All coproc 15 accesses, TLB flushing, cache cleaning/flushing
          and abort correction functions are now defined in this structure.
        - cpufuncs is a global structure that is setup during initarm()
          that holds all the function pointers for the booted CPU.
	- A global variable 'cputype' now defines the probed cputype.
        - All the existing functions for manipulating CPU specific features
          have been replaced with macros defined in machine/cpufunc.h
          that will call the appropriate function in the cpu_functions
          structure.
	- CPU functions are provided for selected CPU types (config options)
          and the appropriate cpu_functions structure is chosen during
          booting, based on the probed CPU type.
	- All the required functions for existing CPU types (ARM6, ARM7 and
          SA110) have been implemented.
1997-02-04 05:50:19 +00:00
mark
fd6725ae88 Remove all the old do_mountroot() junk that was built into GENERIC kernels.
This code has been replaced with the more flexible MI setroot() code.
1997-02-04 05:47:56 +00:00
thorpej
9fc5d41bb3 Garbage-collect an ... insane use of "GENERIC" (used to generate a
different "default in-core disklabel" with a larger b partition in
the event no disklabel was present on the disk).
1997-02-04 05:24:55 +00:00
perry
19d153fc48 Nuke some options GENERIC residue. 1997-02-04 04:57:10 +00:00
thorpej
1cec4494cb Don't default to RB_ASKNAME _ever_. (Besides, GENERIC is long gone.) 1997-02-04 04:46:42 +00:00
perry
0b3a46d6b3 Nuke some GENERIC residue. 1997-02-04 04:31:55 +00:00
thorpej
0130161343 Bump version: Reorganization of boot block code 1997-02-04 03:59:40 +00:00
thorpej
8226741fc2 Replay history: Added support for HP-IB cartridge tapes 1997-02-04 03:58:52 +00:00
thorpej
25f97c348f Reply history: Merged network and disk boot programs 1997-02-04 03:57:51 +00:00
thorpej
f52a7cea62 Replay history: Added support for network booting 1997-02-04 03:57:08 +00:00
thorpej
b327731a21 Bump version: Reorganization of boot block code 1997-02-04 03:55:56 +00:00
thorpej
6c19137655 Replay history: Added support for HP-IB cartridge tapes 1997-02-04 03:54:56 +00:00
thorpej
a0864b3e07 Complete and total reorganization of the hp300 boot code, modeled
closely after the build process used by NetBSD/alpha's boot code.
1997-02-04 03:51:37 +00:00
mark
7ef8e3bcd9 Fix declaration of the interrupt handler to match new prototype for IRQ
function pointers.
1997-02-04 02:23:35 +00:00
mark
aab5efa574 Updated to use the new bus space interface code. Use a number of bus
space handles to describe the task file registers, aux register, 16 bit
data register and 32 bit data register.
The wdc softc structure has been moved to a separate file.
Added support for multiple attachments by separating the core of the
probe and attach functions from the mainbus probe and attach routines.
Added a new wdc flags 32_BIT so that the wd can determine 32 bit xfer
support from the wdc device.
1997-02-04 02:04:51 +00:00
cgd
a9295bf811 make variable pointers (in variable declaration structs) be 'long *', so
that the common case can be handled with no hassles on all machines.
fix up the various internal variables which are also exported via sysctl
(and which therefore must be 'int's) to do the right thing via a special
read/write function.
1997-02-04 00:33:32 +00:00
cgd
bd0be84b0a fix printf format widths 1997-02-04 00:32:09 +00:00
mycroft
df3b4bae5c db_expr_t became a long. 1997-02-04 00:02:34 +00:00
mycroft
12da023cd4 db_expr_t became a long. 1997-02-03 23:36:09 +00:00
oki
e42b78c179 Remove #ifdef GENERIC ... #endif 1997-02-03 22:20:32 +00:00
oki
f2ef4f87ec Removed options GENERIC 1997-02-03 22:19:36 +00:00
oki
78c033ae63 Remove swapgeneric.c from target lint 1997-02-03 22:18:38 +00:00
oki
5bd33fc853 Oops, correct value in previous commit 1997-02-03 21:51:15 +00:00
oki
98f832a1b3 Remove #include <string.h> 1997-02-03 21:41:59 +00:00
oki
6bb753af5b - tv_kfont[] size fix.
- silly speed hack.
1997-02-03 21:40:45 +00:00
gwr
d372229de2 This little awk program translates the initialized data table found
in the assembly file genassym.s into the usual assym.h file.  The
assym.h file generated this way is identical to the output generated
if I simply compile and run the genassym.s file.  "Heh, Kewl!"
Thanks to Matthias Pfaller for the "translate the .s file" idea!
1997-02-03 21:31:17 +00:00
oki
ddfc714cbe Remove initialize mrh_list line, and fixed 1997-02-03 21:08:48 +00:00
oki
e79ab67da5 - RCSid police
- Correct header comment
- Sync with ALL
1997-02-03 20:20:45 +00:00
cgd
ae8e8e7f6b print warnings about unrecognized boot flags. accept S/s as recognized,
even though they're redundant.
1997-02-03 20:02:02 +00:00
cgd
a34fffe676 part of the SOFTWARE_SSTEP code was mips-specific. #ifdef it appropriately.
fix various 64-bitness bugs.
fix various -Wall bugs.
1997-02-03 19:57:41 +00:00
cgd
3e34fdf8ac fix various 64-bitness bugs.
fix various db_printf format bugs (long vs. int, etc.).
1997-02-03 19:57:03 +00:00
cgd
4e829562bb needs systm.h for prototypes 1997-02-03 19:56:24 +00:00
cgd
65a65d45b2 fix various 64-bitness bugs. 1997-02-03 19:56:03 +00:00
cgd
e09497929c clean up a bit, add kernel setjmp and longjmp definitions. 1997-02-03 19:50:23 +00:00
cgd
b9910b1c1f clean up a bit, add bad144-handling code 1997-02-03 19:48:04 +00:00
cgd
ca0809980e add fd and wd to alpha_nam2blk 1997-02-03 19:46:55 +00:00
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
thorpej
9dcd3dd0d5 - Declare a structure to map device names to block device major numbers,
used by the new machine-independent setroot().
- Prototype setroot() and swapconf() here.
1997-01-31 03:01:50 +00:00
thorpej
647fa23dc4 - Add nfs_mountroot to nfs_vfsops.
- Only attempt to mount NFS root on a DV_IFNET class device.
- If nfs_boot_init() failes, return the error code to the caller.
1997-01-31 03:00:31 +00:00
thorpej
dc33841893 NFSCLIENT -> NFS. 1997-01-31 02:58:48 +00:00
thorpej
2ec3e70ff4 - Don't look for a "suitable interface"; we're now given the name of the
network interface to use.
- If any part of the NFS root mount process fails, don't panic.
  Simply return the appropriate error and let the caller recover.
1997-01-31 02:57:31 +00:00
thorpej
68de7ca719 - Implement vfs_mountroot(). This function is called my main() to
mount the root file system.  If the operator specified the root
  file system type in the kernel configuration file, attempt to
  mount that file system type on the root device.  If the root
  file system type was wildcarded (or unspecified), try all of
  the file systems statically built into the kernel until one
  succeeds.  If no file systems succeed, return an error.  The
  system will recover from this condition.
- Implement vfs_getopsbyname().  This function returns the file
  system ops vector given a file system name.
1997-01-31 02:50:36 +00:00
cgd
d3f790f3d0 add 'major' declaration for wd 1997-01-31 02:49:57 +00:00
cgd
3603b076e1 add major and minor numbers for 'wd', slight clean 1997-01-31 02:49:35 +00:00
thorpej
e101942fa0 NFSCLIENT -> NFS 1997-01-31 02:36:24 +00:00
thorpej
1005d16030 Syscalls.master changed, regen. (NFSCLIENT -> NFS) 1997-01-31 02:35:52 +00:00
thorpej
55ee7ceeb8 NFSCLIENT -> NFS 1997-01-31 02:34:23 +00:00
thorpej
ec15ba06cb Add a sysctl node "kern.root_device", which contains the external
name of the device that root was mounted on (e.g. "sd0").
1997-01-31 02:33:59 +00:00
thorpej
0408b501ce - Implement a new machine-independent setroot() function, mostly derived
from the version used by NetBSD/alpha, with several changes by me.
  Support for asking for root device and root file system type on any
  kernel, obsoleting "options GENERIC".
- Make my mountroothook implementation used by the sparc and x68k
  ports machine-independent, and use it here.  Mountroothooks allow
  devices to execute special functions before being mounted as the
  root device (such as ejecting the floppy and prompting for a new
  floppy disk).
- Make swapconf() machine-independent.  It was identical on all ports.
1997-01-31 02:31:33 +00:00
thorpej
883ccf99b6 - NFSCLIENT -> NFS
- Run mountroot hooks before we attempt to mount the root device, and
  destroy mountroot hooks after the root file system has been sucessfully
  mounted.
- Don't panic if we can't mount root.  Instead, set RB_ASKNAME and
  call setroot(), which will prompt the operator for the root device
  and file system type.
1997-01-31 02:25:47 +00:00
thorpej
f41783799b - Add cd9660_mountroot to cd9660_vfsops.
- Only attempt to mount root if root_device is a DV_DISK class device.
1997-01-31 02:23:25 +00:00
thorpej
578626f7ea nfsclient -> nfs 1997-01-31 02:21:33 +00:00
thorpej
8e50039b7c Syscalls.master changed, regen. (NFSCLIENT -> NFS) 1997-01-31 02:20:58 +00:00
thorpej
90b1ce5234 NFSCLIENT -> NFS 1997-01-31 02:20:03 +00:00
thorpej
bf69384ef4 Syscalls.master chagned, regen. (NFSCLIENT -> NFS) 1997-01-31 02:19:34 +00:00
thorpej
83b3ffe116 NFSCLIENT -> NFS 1997-01-31 02:18:54 +00:00
thorpej
b266dedfc8 Syscalls.master changed, regen. (NFSCLIENT -> NFS) 1997-01-31 02:18:26 +00:00
thorpej
12cb3aaf21 NFSCLIENT -> NFS 1997-01-31 02:17:46 +00:00
thorpej
2525eee053 Use new machine-independent mountroothook code. 1997-01-31 02:15:54 +00:00
thorpej
e37a1f5794 Use new machine-independent setroot() and mountroothook code. 1997-01-31 02:15:09 +00:00
thorpej
be49bd8254 Update for new file system and root spec grammar. 1997-01-31 02:14:19 +00:00
thorpej
9b683dc125 Use new machine-independent setroot(). 1997-01-31 02:13:40 +00:00
thorpej
003dad8fdd Pass a struct device ** down to the functions that find the boot device. 1997-01-31 02:12:31 +00:00
thorpej
fc9c10afb7 Update prototypes to match new calling convention of functions that
find the boot device.
1997-01-31 02:11:51 +00:00
thorpej
2b43c7eab7 Adopt for new file system and root spec grammar. 1997-01-31 02:10:33 +00:00
thorpej
bb87691950 Use new machine-independent setroot(). 1997-01-31 02:08:50 +00:00
thorpej
95380a8478 Adopt for new file system and root spec grammar. 1997-01-31 02:08:19 +00:00
thorpej
801f7e1a0e Use new machine-independent setroot() and mountroothook code. 1997-01-31 02:07:29 +00:00
thorpej
f159c829df Adopt for new file system and root spec grammar. 1997-01-31 02:06:41 +00:00
thorpej
304c785022 Find the root device in a much more sane way. Also, remove all of the
code that determines the root file system type.  This is now done in
machine-independent code, much differently.
1997-01-31 02:05:54 +00:00
thorpej
773c77b683 Use the new machine-independent setroot(). 1997-01-31 02:04:43 +00:00
thorpej
1a0f586e08 Declare booted_device and booted_partition as "extern". 1997-01-31 02:04:14 +00:00
thorpej
bd1a87986a Adopt for new file system and root spec grammar. 1997-01-31 02:03:38 +00:00
thorpej
65e736fcae Use new machine-independent setroot(). 1997-01-31 02:02:56 +00:00
thorpej
08dafb1339 Add a sick little hack to glue old-config-pmax-scsi-stuff into the
alldevs list.  This is required for the new machine-independent setroot().
1997-01-31 02:00:56 +00:00
thorpej
1b341f7e70 Update for new file system and root spec grammar. 1997-01-31 01:59:09 +00:00
thorpej
e4d6c27735 Use new machine-independent setroot(). 1997-01-31 01:58:44 +00:00
thorpej
16aa3354f7 Adopt for new file system and root spec grammar. 1997-01-31 01:58:17 +00:00
thorpej
0735d8d32e Use new machine-independent setroot(). 1997-01-31 01:57:51 +00:00
thorpej
fcb565dde2 Adopt for new file system and root spec grammar. 1997-01-31 01:57:08 +00:00
thorpej
70653a472d bootdv -> booted_device 1997-01-31 01:56:03 +00:00
thorpej
573e68b745 Use new machine-independent setroot(). 1997-01-31 01:55:40 +00:00
thorpej
0e3acd811d bootdv -> booted_device 1997-01-31 01:53:06 +00:00
thorpej
3fd4de4cd9 Adopt for new file system and root spec grammar. 1997-01-31 01:52:38 +00:00
thorpej
5f46d3130a Use new machine-independent setroot(). 1997-01-31 01:51:17 +00:00
thorpej
8eae9eaaec Adopt for new file system and root spec grammar. 1997-01-31 01:50:46 +00:00
thorpej
8763a04e25 Use the new machine-independent setroot(). 1997-01-31 01:49:41 +00:00
thorpej
8496115a38 Adopt for new file system and root spec grammar. 1997-01-31 01:48:24 +00:00
thorpej
3e47546598 Use new machine-independent setroot() 1997-01-31 01:47:25 +00:00
thorpej
24c607fc32 NFSCLIENT -> NFS 1997-01-31 01:46:49 +00:00
thorpej
1c705f35fd Use new machine-independent setroot(). 1997-01-31 01:46:23 +00:00
thorpej
e752da4888 Adopt for new file system and root spec grammar. 1997-01-31 01:45:40 +00:00
thorpej
f1065bcb07 Garbage-collect unused bootdev global. 1997-01-31 01:44:13 +00:00
thorpej
16d4fd0ac8 Use the new machine-independent setroot(). 1997-01-31 01:43:37 +00:00
thorpej
aea810c379 Adopt for new file system and root spec grammar. 1997-01-31 01:42:34 +00:00
thorpej
4e686aa6ae Don't locally declare root_device; it's not used in the MI kernel. 1997-01-31 01:41:37 +00:00
thorpej
d5257c641b Use the new machine-independent setroot() 1997-01-31 01:40:40 +00:00
mouse
b5657b655d Oops, forgot the #include. 1997-01-31 00:50:38 +00:00
mouse
f2e82f1145 Apply the interim fix from PR 2236, reformatted and a comment added.
Not a real fix, but it should help until we get a real fix done.
1997-01-31 00:47:12 +00:00
gwr
d9267b93fd Forgot to initialize cs->cs_rr0_dcd and fiends in attach. 1997-01-31 00:07:06 +00:00
scottr
fc20c2eb8f Add missing major number decls, from Klaus Klein (closes PR 3165). 1997-01-30 22:11:19 +00:00
tls
dff9c0904d Do not always use KMEMSTATS, it's a performance lose 1997-01-30 22:07:44 +00:00
cgd
f89ffa1fe4 don't clobber IER in cominit(). (suggested by mycroft.) 1997-01-30 19:42:33 +00:00
scottr
13802e3a85 Add DIOVERBOSE per Jason; clean up formatting for some options. 1997-01-30 18:33:52 +00:00
thorpej
5885fe6b78 This file is now obsolete. 1997-01-30 17:29:23 +00:00
oki
7195b16867 :: --> : 1997-01-30 16:03:55 +00:00
thorpej
570522c72c Clean up #includes. 1997-01-30 10:32:51 +00:00
thorpej
5906c26c8b Commit this to the right place, this time.
The boot blocks do a primitive form of autoconfiguration.  Duplicate some
of the old config strcutures for the benefit of the boot blocks; they
don't need something as flexible as the kernel does.
1997-01-30 10:31:44 +00:00
tls
af543e23ae remove ability to mangle namei cache 1997-01-30 10:29:24 +00:00
tls
a6b42c4d73 fix a large number of braindead unconditional #defines 1997-01-30 10:16:18 +00:00
thorpej
40d51256bb These files are no longer needed. 1997-01-30 10:00:39 +00:00
thorpej
5e781164af Update for new-style config. 1997-01-30 09:58:57 +00:00
thorpej
add93ce69e Garbage-collect some uneeded stuff now that we're new config only. 1997-01-30 09:55:45 +00:00
tls
d0c43309b5 add support for noatime mount flag 1997-01-30 09:52:26 +00:00
matthias
1370131ffd Add scripts and documentation for a new method to create assym.h files.
With the kern/genassym.sh script HOSTED_CC is no longer used to create
assym.h files. This should make crosscompilation easier.
1997-01-30 09:37:20 +00:00
thorpej
d26d94a7a5 Regen to clear up RCS id snafu. 1997-01-30 09:20:42 +00:00
thorpej
cb63bb9de5 Garbage-collect all old-style autoconfiguration support; it is no
longer supported.  The hp300 port uses new config now.
1997-01-30 09:18:33 +00:00
thorpej
9bb27910a9 Convert to new-style autoconfiguration; old-style config is no longer
supported.
1997-01-30 09:14:10 +00:00
thorpej
f19d55d659 - Garbage-collect the old-style configuration glue.
- Make sure we don't get interrupts in dcmselftest().
1997-01-30 09:11:24 +00:00
thorpej
f5bb637c10 - Convert these drivers to new-style autoconfiguration. Old-style
config is no longer supported.
- Use a much more obvious SCSI job queueing scheme.
1997-01-30 09:08:55 +00:00
thorpej
365324ec10 - Convert these drivers to new-style autoconfiguration. Old-style
configuration is no longer supported.
- Use a much more obvious HP-IB job queueing scheme.
1997-01-30 09:06:51 +00:00
thorpej
d49c71cb8a - Use indicies, rather than pointer arithmetic, to track DMA chain
segments.
- Use a much more obvious DMA job queueing scheme.
- Fixup some debugging code.
1997-01-30 09:04:33 +00:00
thorpej
7bfe4e11c4 Garbage-collect old-style autoconfiguration glue. 1997-01-30 09:00:21 +00:00
thorpej
743140bb51 Garbage-collect old-style autoconfiguration code. Adopt boot device
detection code to new-style autoconfiguration.
1997-01-30 08:59:29 +00:00
tls
e9a5b29d40 add #ifdef KMEMSTATS around variable otherwise unused; now compiles with KMEMSTATS turned off. 1997-01-30 06:50:46 +00:00
thorpej
9a815ed696 A performance optimization, inspired by a conversation with Thor Simon:
- Keep a freelist of component buffer headers, defaulting
	  to 8 headers per component (tunable with the CCDNBUF
	  kernel compile option).
	- When allocating a component buffer, try to pull a header
	  off the freelist first, falling back on MALLOC() if the
	  freelist is empty.  Use MALLOC() rather than malloc(),
	  because it will attempt to short-cut the allocation before
	  actually making a full-blown malloc() call.
	- Keep statistics on how many component buffer headers have
	  been allocated and how many of those allocations have
	  resulted in freelist misses.

With these changes, I observed measurable decreases in system and
wall clock time on operations on an 8G ccd, as well as a measurable
drop in the time spent in ccdbuffer() (measured with kernel profiling).
1997-01-30 04:00:52 +00:00
thorpej
bb60822446 Fix OBOB in ccdopen() partition range check.
From Klaus Klein <kleink@layla.inka.de>, PR #3161.
1997-01-30 03:32:56 +00:00
is
3d42605db3 Correct yet another typing error. 1997-01-29 17:19:35 +00:00
is
3d43ed097b fixed my own stupid typing error. 1997-01-29 17:12:51 +00:00
thorpej
b21c166228 ioctl cmd arguments are u_long, not int. Pointed out by
Fred L. Templin <templin@nas.nasa.gov>
1997-01-29 02:16:23 +00:00
mycroft
c4062005b4 Oops! Forgot to pop an argument to npxintr(). 1997-01-29 01:07:38 +00:00
pk
01bd8a8ca8 Initialize `f_offset'. 1997-01-28 09:41:03 +00:00
mark
b371b8a271 Prototype main(). 1997-01-28 05:02:30 +00:00
mark
01b365e7a5 Use <machine/conf.h> for prototypes of the block and character device
functions.
1997-01-28 05:00:03 +00:00
mark
a497e39048 Fix the declarations of the interrupt handlers to accept void * pointers
as the only argument and cast this as appropriate now that the function
pointers to the interrupt registration functions are fully prototyped.
Use <machine/conf.h> for the declarations of the device driver entry
points.
1997-01-28 04:55:15 +00:00
mark
844495ceb6 Use machine/conf.h for prototypes for device entry points.
Declare the cpuioctl() cmd argument as u_long rather than int.
1997-01-28 04:36:14 +00:00
mark
ed854d0d12 Fix the declarations of the interrupt handlers to accept void * pointers
as the only argument and cast this as appropriate now that the function
pointers to the interrupt registration functions are fully prototyped.
1997-01-28 04:20:58 +00:00
mark
ad1a9d7854 Now that the generic sfas code works fine under interrupts, disable polling
behaviour of the driver.
1997-01-28 04:10:47 +00:00
mark
e1460d785b Add prototypes for match and attach functions. 1997-01-28 04:08:21 +00:00
mikel
2ef9229953 remove superflous DESTDIR ref; PR 3143 1997-01-28 04:01:41 +00:00
gwr
c7fd1435c6 Update for new struct member names in db_regs_t. 1997-01-27 23:07:04 +00:00
gwr
b0f4781a3d Include <machine/frame.h> and typedef db_regs_t using struct trapframe
(instead of replicating trapframe here by a different name).  Update the
macros that refer to members of db_regs_t to use the trapframe members.
1997-01-27 23:02:55 +00:00
gwr
09fa19ebb5 Protect this agains multiple includes so it can be included by db_machdep.h 1997-01-27 22:58:45 +00:00
gwr
3cf095df8d The sunmon_* declarations are now in machdep.h 1997-01-27 22:55:07 +00:00
gwr
9f0e342d0c Now getting these from arch/sun3 1997-01-27 22:51:40 +00:00
gwr
5f1abbe73b Add OBIO_EMULEX_SCSI 1997-01-27 22:42:44 +00:00
gwr
7f16997d26 Replace sunmon.h with machdep.h 1997-01-27 22:35:03 +00:00
gwr
2e2e2a855c Change "machdep.h" to <machine/machdep.h> 1997-01-27 22:33:34 +00:00
gwr
c1ccab6daa Get trap.c, vector.c from arch/sun3/sun3 1997-01-27 22:26:50 +00:00
gwr
8fddc5d688 Kill sunmon.h 1997-01-27 22:24:03 +00:00
gwr
55cc627131 Let bus_mapin return void* 1997-01-27 22:23:38 +00:00
gwr
0352f52a7a Kill sunmon.h; add sun "code names" (Hydra, Pegasus). 1997-01-27 22:22:51 +00:00
gwr
21da6a34c0 Add machdep.h; use sunmon_abort() instead of mon_exit_to_mon(). 1997-01-27 22:16:37 +00:00
gwr
39d7966a63 Kill sunmon.h 1997-01-27 22:15:06 +00:00
gwr
530f35200b kill type cast 1997-01-27 22:14:19 +00:00
gwr
317b22ec3f Let bus_mapin() return void * 1997-01-27 22:12:27 +00:00