Commit Graph

10499 Commits

Author SHA1 Message Date
christos
9a07d9dec9 Add missing prototypes and fix the fp struct for svr4. 1996-03-14 19:49:04 +00:00
christos
03b701e393 Bring prototypes into scope and fix compiler warnings. 1996-03-14 19:44:30 +00:00
christos
ab59f984ab Add and bring prototypes into scope. 1996-03-14 19:41:49 +00:00
christos
fc8b478bdd Bring prototypes into scope and fix compiler warnings. 1996-03-14 19:33:44 +00:00
christos
6cbf515e30 Fix compiler warnings 1996-03-14 19:31:45 +00:00
christos
79344ff371 - add svr4_conf.h
- add window size ioctls
1996-03-14 19:29:11 +00:00
christos
e023a87a11 Bring prototypes into scope. 1996-03-14 19:05:07 +00:00
christos
357fb0e430 - add and fix prototypes and warnings.
- remove nested comment in header file.
1996-03-14 19:02:30 +00:00
christos
e79beaff89 - fdopen -> filedescopen
- bring kgdb prototype in scope.
1996-03-14 19:01:08 +00:00
christos
84cc73f734 filedesc.h, proc.h: Rename fdopen() to filedescopen() so that it does not
conflict with the floppy driver.
conf.h: Protect against multiple inclusions. The reason will become apparent
	soon.
systm.h: Bring Debugger() prototype into scope.
1996-03-14 18:59:07 +00:00
christos
fb901eb966 - Add missing prototypes
- Bring prototypes into scope
- Correct prototype for skpc
1996-03-14 18:52:03 +00:00
christos
835271da20 Make cons_rtrequest return void because the only place it is used
is through the ifa_rtrequest method. Unfortunately the net code
does not seem to care if that operation succeeds or fails. Maybe
it should...
1996-03-14 18:47:52 +00:00
christos
acdfea75a0 ns_cksum.c: Bring prototype into scope.
ns_var.c: Add forward declaration for struct sockaddr;
1996-03-14 18:44:41 +00:00
scottr
2a5cf25e29 Back out previous change; kernel longjmp() has 1 arg. 1996-03-14 16:42:44 +00:00
scottr
24dcca72bd Optimize user-side TLB invalidation when !defined(M68020). 1996-03-14 05:50:06 +00:00
cgd
d5d2502bcb fix types on a bunch of variables (were u_long's, now are U_INT32s or ncrcmds,
and a few other fixes).  print pointers with %p, rather than casting to
(unsigned), which breaks on the Alpha.
1996-03-14 05:21:20 +00:00
cgd
ba6d1cb2dd These devices don't actually need softc's that are supersets of 'struct
device.'  No point in adding that complexity + space if they're not needed,
so axe them.
1996-03-14 04:02:58 +00:00
cgd
005569a6b3 include pcireg before pcivar.h 1996-03-14 03:04:17 +00:00
cgd
0926920201 (1) remove the #ifdef i386 from pci.c, and provide a machine-dependent
hook (pci_md_attach_hook()) to do any machine-dependent attachment
    gunk, e.g. on the i386 printing out the configuration mode (if bus 0)
(2) don't pass max device number for a given bus in, use
    PCI_MAX_DEVICE_NUMBER, which can be defined on a per-machine basis.
    (defaults to 32.  on i386, it's 32 if pci conf mode == 1, 16 if 2.)
1996-03-14 02:37:59 +00:00
cgd
20af97b2c0 don't pass max device number for a given bus in, use
PCI_MAX_DEVICE_NUMBER, which can be defined on a per-machine basis.
(defaults to 32.  on i386, it's 32 if pci conf mode == 1, 16 if 2.)
1996-03-14 02:37:28 +00:00
cgd
7fda077700 (1) provide #defines for cf_loc[] entries for devices that attach to
pcibus and pci.
(2) remove the #ifdef i386 from pci.c, and provide a machine-dependent
    hook (pci_md_attach_hook()) to do any machine-dependent attachment
    gunk, e.g. on the i386 printing out the configuration mode (if bus 0)
(3) don't pass max device number for a given bus in, use
    PCI_MAX_DEVICE_NUMBER, which can be defined on a per-machine basis.
    (defaults to 32.  on i386, it's 32 if pci conf mode == 1, 16 if 2.)
1996-03-14 02:35:32 +00:00
cgd
68b00a8e52 RCS Id police 1996-03-14 02:30:30 +00:00
pk
485ccae478 Insert child_return() for the benefit of child return path from cpu_fork(). 1996-03-14 00:55:59 +00:00
pk
0b1cba4b0b Implement cpu_set_kpc() and use its machinery to by-pass a child out
of the kernel from cpu_fork().
1996-03-14 00:54:34 +00:00
pk
d48d8e1512 Install machinery for cpu_set_kpc(). 1996-03-14 00:54:06 +00:00
pk
808df5543f Remove cpu_set_init_frame(). 1996-03-14 00:49:20 +00:00
pk
894fde6bdd Remove __FORK_BRAINDAMAGE. 1996-03-14 00:48:30 +00:00
pk
dc3c7fb2ba Actually enter executables where promised... 1996-03-14 00:11:29 +00:00
scottr
4d30db274f Back out previous change. 1996-03-13 23:42:45 +00:00
mark
46e6b251f1 Raise the spl level while modifing the keyboard autorepeat and delay
rates.
Added missing = to test for alphabetic characters so that caps lock
applies to Z as well as A-Y.
1996-03-13 21:51:32 +00:00
mark
a2ff705689 Added code to handle indents in monitor definition files. 1996-03-13 21:47:15 +00:00
mark
cb6f3bb55c Removed references to the kstack double mapping from the old debug
shell.
1996-03-13 21:45:54 +00:00
mark
32f0b6e092 curpcb is declared in pcb.h so don't declare it here.
removed debug printing when faulting in new page tables for the user
process stack.
1996-03-13 21:41:41 +00:00
mark
ba893940d3 savectx() now justs syncs the pcb, it no longer needs to copy the stack.
cpuswitch() simplified, now pushes and pulls a switchframe structure
on entry and exit. Added extra comments to indicate the states of
various registers throughout cpuswitch().
Added proc_trampoline function.
1996-03-13 21:39:10 +00:00
mark
5c857a37ef Use the value returned from initarm() to set the stack pointer before
calling main().
1996-03-13 21:34:17 +00:00
mark
bbf2aa16b5 Removed kstack references. Updated code that sets up the pcb for proc0
now that double mapping has gone.
initarm() now returns the address to be loaded into the stack pointer
before calling main() to kick things off.
1996-03-13 21:32:39 +00:00
mark
d253d345a2 Since kernel stack double mapping no longer exists there is no
point in trying to perform a postmortem on it following an panic.
1996-03-13 21:26:52 +00:00
mark
52f490ccf6 No longer need to allocate hooks for kernel stack double mapping during
pmap bootstrapping.
1996-03-13 21:25:04 +00:00
mark
7045f47891 The kstack pte fields no longer exist so remove them. 1996-03-13 21:22:32 +00:00
mark
caf9dd3edc Removed external declaration of kstack. No longer relevant now kstack
double mapping has been removed.
No longer need to fixup the trap frame address to take double mapping
into consideration.
1996-03-13 21:21:00 +00:00
mark
043ef25c23 Remove cpu_set_init_frame macro. This is no longer needed now
cpu_set_kpc() has been implemented.
1996-03-13 21:18:06 +00:00
mark
f9f45be67c Removed all the double mapping code from cpu_fork().
Arrange for the child process to return to user land via child_return()
on leaving cpuswitch().
Added function cpu_set_kpc().
1996-03-13 21:16:15 +00:00
mark
8fbba52c87 Removed option __FORK_BRAINDAMAGE at last. 1996-03-13 21:10:43 +00:00
mark
ffa6eab259 Removed the kstack pte fields. These are no longer needed as the kernel
stack is no longer double mapped.
1996-03-13 21:08:36 +00:00
christos
b92fe0f4c4 Kernel version of longjmp does not take the return value of setjmp as
an argument. It always returns 1.
1996-03-13 21:08:09 +00:00
christos
b4a31b1fc7 Kernel version of longjmp() does not take the return value of setjmp() as
an argument. setjmp() always returns 1.
1996-03-13 21:06:38 +00:00
mark
f96ae702d7 Added switchframe structure to describe the stack frame pushed on the
stack at the beginning of cpuswitch().
1996-03-13 21:06:34 +00:00
mark
c353f32f10 _mcount() can now be declared inline. 1996-03-13 21:04:55 +00:00
mark
fb4eacf0a5 Removed comments describing debugging code that has long since gone.
Added new comments for parts of the undefined vector entry point.
1996-03-13 21:00:26 +00:00
mark
1e97524220 SCSI scanner device added to the list of SCSI devices configured. 1996-03-13 20:57:45 +00:00
mark
f6c46bc20c Added hooks for the SCSI scanner device driver. 1996-03-13 20:55:21 +00:00
mark
d389b21913 Added boot time override for the memory test during probing. This
memory test apparently causes hangups on some etherH interfaces.
Until this can be debugged with an offending interface the memory
test can be bypassed.
1996-03-13 20:52:35 +00:00
mark
c117a7f133 Only call the debugger if DDB is defined. 1996-03-13 20:28:50 +00:00
scottr
eb473e57bd Add second argument to longjmp() call. 1996-03-13 19:04:04 +00:00
jonathan
dc6fdf6cdc First commit of Per Fogelstrom's port to the Acer pica r4400/isa machine. 1996-03-13 04:58:04 +00:00
fvdl
f5e6df1ed0 Disable invalidating of directory offsets cookies. Should fix one or two
directory problems.

XXX There is no clean solution to the cookie/cookieverifier validity mess.
    Together with the disabled strict cookie check, this puts us back at
    what v2 did in this case. Slightly better solution possible by
    consequently storing 64bit cookies in other places too.
1996-03-13 00:44:17 +00:00
fvdl
146f96c2ce Make readdirsize default to rsize if rsize is explicitly specified,
and readdirsize isn't.
1996-03-13 00:38:55 +00:00
scottr
b4225290a4 Use 851-specific instructions only #if defined(M68020). 1996-03-12 23:46:32 +00:00
is
905b10d4bc M68060 additional frame formats and bits. Closes PR 1174.
This shouldn't break anything; I find ... grep ... all the relevant
kernel sources subdirecotry trees I could think of for the defines
that don't use the new FSLW or FPF6 prefix. But in case it does anyway,
tell me immediately.
1996-03-12 22:21:51 +00:00
scottr
6208752b50 Oops; fix typo. 1996-03-12 21:34:57 +00:00
scottr
d504ec531e Add "options M68020" so that 68851-specific code is only compiled when
we want it (we don't support the 020 without an 851 anyway).  Note that
M68030 no longer implies support for 020+851.

This also allows us to compile with -m68030 iff M68020 isn't specified
in the config file.
1996-03-12 21:06:22 +00:00
scottr
89f7d665d5 KNF. 1996-03-12 19:18:49 +00:00
mrg
d55f4dd0c3 oops; back out previous change and add comment describing what the weird goto does. 1996-03-12 13:07:52 +00:00
mrg
c23a9d83e5 eliminate stupid use of "goto next;" where next was: "next: continue;" 1996-03-12 13:01:20 +00:00
mrg
5bc2fce9e1 test for null ifa_dstaddr before using it. (pr#2183 from chuck cranor) 1996-03-12 12:55:52 +00:00
scottr
61927fc337 Fix typo (pointed out by Shinya Taniguchi, PR 2203) 1996-03-12 06:01:16 +00:00
scottr
04de5b5b08 Back out the previous change; we'll trust adjustments to the clock
except on shutdown.
1996-03-12 04:34:46 +00:00
scottr
e11f39f4a9 Don't sync the RTC at shutdown time. 1996-03-12 04:24:47 +00:00
mrg
a8554128fc default DST and TIMEZONE to 0, if not already defined 1996-03-12 03:08:40 +00:00
perry
1faa1f926b close prs #2076 and #2159: Install kernels have had DIAGNOSTIC and
KTRACE removed to make them fit on the floppies. All kernels have had
the comment typo "internally consistency" changed to "internal consistency".
1996-03-12 01:32:43 +00:00
jonathan
044125b139 Add missing CTL_KERN_NAMES entry for "timex", the kernel NTP state. 1996-03-12 00:22:43 +00:00
phil
a3448dcd3e Update it. 1996-03-11 23:14:43 +00:00
phil
509ba91070 have files.pc532 use include feature for scsi.
use MI ncr driver.
1996-03-11 23:09:09 +00:00
cgd
8d2afa9f27 RCS ID police; get rid of Id keyword. 1996-03-11 23:06:04 +00:00
cgd
2013e4059a kill extraneous empty line in comment block at start of file 1996-03-11 23:05:47 +00:00
phil
26ee503b71 More precise DELAY function. 1996-03-11 22:50:17 +00:00
thorpej
94fc5cf4ce Resolve conflicts from merge. 1996-03-11 21:41:28 +00:00
thorpej
2e4812fa65 New snapshot of DEC PDQ-based FDDI driver, from Matt Thomas. 1996-03-11 21:04:02 +00:00
phil
6d5bf6a3ea Support for move to MI ncr5380 driver. 1996-03-11 20:56:48 +00:00
phil
d92d9aa2f7 Move the pc532 ncr5380 driver to the MI one. 1996-03-11 20:50:50 +00:00
cgd
ba91a74bb6 mostly convert to use interfaces provided by <machine/bus.h>. (For now,
assumes that pci_map_mem/pci_map_io provide interfaces which utilitize
bus_{io,mem}_handle_t's, or types which are compatible.  This works on the
i386, and will change eventually anyway.)
1996-03-11 18:57:04 +00:00
cgd
046633ffe1 Move INT32, U_INT32, TIMEOUT definitions to ncr_reg.h, and add definitions
for U_INT8, INT16, U_INT16 definitions.  Convert structs and
    definitions in ncr_reg.h (e.g. ncrcmd, the chip register layout, etc.)
    to use these definitions.
Add INB_OFF, INL_OFF, and OUTL_OFF macros to access specified offsets into
    I/O or memory space.  Convert register dumps (etc.), and cache snoop
    test to use these new macros, so that nothing accesses the device
    I/O or memory space directly.  (Register dumps now come from I/O space
    if NCR_IOMAPPED.  They used to bogusly use memory space.)
Add a new relocation type for script entries, RELOC_KVAR.  Allow scripts
    access to mono_time.tv_sec, mono_time, and ncr_cache via this
    mechanism, and convert scripts to use it.  An ncrcmd is only 32 bits
    wide, and KVAs may be > 32 bits wide (e.g. on Alpha), leading to
    linker problems.  This is a safer way to do this anyway; relocation is
    more deterministic this way, and doesn't rely on KVAs not looking like
    other relocation types.
Panic if an unmatched relocation other than 'zero' is specified.  That's
    now a script bug.  (This used to be used to convert KVAs of kernel
    variables referenced in the script to PCI bus physical addresses,
    and that is now handled by RELOC_KVAR relocations.)
Figure out and print the model of chip.
1996-03-11 16:13:57 +00:00
cgd
6f00e88e73 mostly convert to use interfaces provided by <machine/bus.h>. (For now,
assumes that pci_map_mem/pci_map_io provide interfaces which utilitize
bus_{io,mem}_handle_t's, or types which are compatible.  This works on the
i386, and will change eventually anyway.)
1996-03-11 15:07:06 +00:00
scottr
e494b8793f Back out previous change. 1996-03-11 05:46:51 +00:00
scottr
c31eae0510 Back out previous change. 1996-03-11 05:31:59 +00:00
scottr
53877395c4 XXX - stop-gap fix for use of memset() if we're compiling a kernel; it's
not included in the kernel programming interface.
1996-03-11 05:12:28 +00:00
thorpej
e142a2195f Provide a memset() for the i386 (assembly version), and move memset.c
out into the libkern proper in case other ports want to use it.
i386 kernels with COMPAT_LINUX should compile now.
1996-03-11 03:19:37 +00:00
leo
2273338717 Add the include files and the atari kernel support for new format panic
dumps.
1996-03-10 21:54:44 +00:00
briggs
9e087f0d26 Pass 2nd arg to longjmp--even though it's ignored. 1996-03-10 19:55:22 +00:00
briggs
679b7627d0 Use label_t instead of jmp_buf and don't include setjmp.h. 1996-03-10 19:54:41 +00:00
leo
7da79507e9 Take the type of the attached monitor into account when selecting a
display-mode. Includes hack to make things work on non-VGA monitors.
1996-03-10 11:42:35 +00:00
cgd
0a6a29c792 update for new commulti->com attach interface. com ports at 'ast'
multiport cards no longer need 'flags 1', because the "don't set IEN"
requirement is communicated by the commulti_attach_args.  com.c no longer
recognizes 'flags 1' at all.
1996-03-10 09:03:13 +00:00
cgd
85286bff2f convert these to use new <machine/bus.h> interfaces. This involved
substantial reworking of the multi-port drivers, as they need to frob
bits in the io-port spaces of their children.  As a result, the
commulti->com attachment interface is substantially more complex.
(This may be fixable in the future by making some of the code common,
but as long as io-port allocation checking is planned, it's necessary.)
1996-03-10 09:01:20 +00:00
ragge
f01a5dd8cc We lost declaration of kernel_pmap_store somewhere, put it back. 1996-03-09 23:39:51 +00:00
ragge
3a07f941ba Check on which SBI we are frobbing, not always 0. 1996-03-09 23:38:34 +00:00
ragge
24b2b310ae Add support for ktracing syscalls. 1996-03-09 23:37:20 +00:00
cgd
5bfb840114 Fix copyright year 1996-03-09 23:37:14 +00:00
ragge
4ee5419b8a Panic on SBI fault. 1996-03-09 23:36:40 +00:00
ragge
c7282ed159 Change NTU to NHT. 1996-03-09 23:36:09 +00:00
ghudson
4e0c8707f7 To enable people to mount DOS partitions on disks with no NetBSD
partition, add the MBR partitions to the default (faked-up)
disklabel used by NetBSD if it can't find a real one.  If the
type of the MBR partition is one of the common DOS ones, mark the
partition as having an MSDOS filesystem.
1996-03-09 20:52:54 +00:00