cgd
702e7ec138
make script_kvars an array of unsigned longs, and cast when assigning the
...
elements, to avoid warnings (with -Wcast-qual) about 'volatile'
qualifiers being discarded.
1996-10-25 00:33:00 +00:00
cgd
bba547e063
second and third args to scanc() (string and table) are not and should not
...
be modified. Make them 'const'.
1996-10-24 23:50:31 +00:00
cgd
311fcee75f
when casting const pointers, preserve const qualifiers. (-Wcast-qual)
1996-10-24 23:45:32 +00:00
is
6e74f35ac9
First small hack at 68060 support: processor configuration register.
...
(We don't use the new instructions lpstop and plpa in our kernel, so no hurry.)
1996-10-24 18:30:17 +00:00
is
b88543e379
Remove addressing bug in hand-optimized assembly code.
1996-10-24 15:52:08 +00:00
fvdl
753949629e
Make this compile again if PCI_CONF_MODE is defined (unused label).
1996-10-24 12:32:29 +00:00
fvdl
016d7b35dc
Make this compile without COMPAT_10 (unused variable).
1996-10-24 12:22:43 +00:00
cgd
574f71ab26
replace a construction in sys_setitimer() that was too tricky for its
...
(and my!) own good with a more straightforward one that is equally (and
more apparently) correct.
1996-10-24 04:35:33 +00:00
cgd
8595fc3073
make coredump() use more sensible error returns (even though they're
...
not used by anything, for now), and implement MNT_NOCOREDUMP by checking
whether or not MNT_NOCOREDUMP is set on the file system where the dump
would land (i.e. the file system of the process's current working
directory), and disallowing the core dump if it's set.
1996-10-23 23:13:19 +00:00
cgd
6d3337bdf6
permit MNT_NOCOREDUMP as a generic mount flag.
1996-10-23 23:07:08 +00:00
cgd
92f76697f5
add the MNT_NOCOREDUMP file system flag, which prevents the system
...
from writing core dumps on file systems for which it is set. Also, add
a comment noting that the mount flags aren't in numerical order.
1996-10-23 22:53:09 +00:00
mhitch
dd4aa9cef1
Fix typo: #endeif
1996-10-23 20:04:40 +00:00
gwr
601935b8ae
Use struct trapframe instead of struct frame, and include a
...
slight hack to make this cross-build correctly on a SPARC.
1996-10-23 16:39:27 +00:00
gwr
4e462c2f6e
Dont bother grouping labels in computeSignal().
...
This form is easier to compare with trap.h
1996-10-23 16:30:48 +00:00
gwr
6fa72d79b5
Add options EXEC_AOUT and EXEC_SCRIPT
1996-10-23 16:14:23 +00:00
briggs
4675aac3cf
Set SCSIBase properly on Quadras. Separate out CLASSAV. From Dave Huang
...
<khym@bga.com>.
Also fix COMPAT_NOMID to compile again.
1996-10-23 14:12:37 +00:00
briggs
0363bd9a12
Include ether.h since we're now using NETHER, also use NETHER > 0 not NETHER.
1996-10-23 13:35:41 +00:00
matthias
8738c57e61
* Phil Budne's is now integrated.
...
* Remote kerneldebugging with gdb works too.
1996-10-23 07:55:10 +00:00
matthias
2336fbd2c6
* Phil Budne's much improved scn driver.
1996-10-23 07:52:35 +00:00
matthias
e7e91939da
* Remove references to deleted files (oldncr.c, dp.c).
1996-10-23 07:50:03 +00:00
matthias
54eec4c697
* Add EXEC_SCRIPT and EXEC_AOUT.
1996-10-23 07:49:58 +00:00
matthias
0cdf2807ab
* KLONDIKE has only four serial lines.
...
* KLONDIKE has a ns381 installed.
* Add EXEC_SCRIPT and EXEC_AOUT.
* Enable ddb.
* Enable FDESC.
* Monitor speed is 9600 baud.
* Monitor speaks 8N1.
* Pin down devices on the SCSI-Bus.
* Configure vnd, bpfilter, ppp and tun.
1996-10-23 07:49:55 +00:00
matthias
45fe815542
* Add EXEC_SCRIPT and EXEC_AOUT.
...
* Remove lines commented out.
* scsibus0 is attached to ncr0.
1996-10-23 07:49:54 +00:00
matthias
225801ae14
* New file; configuration for my second pc532.
1996-10-23 07:49:52 +00:00
matthias
414cbce393
* Add EXEC_SCRIPT and EXEC_AOUT.
...
* Use new options for to set the console baudrate and the default
tty mode.
* Include PPP_BSDCOMP and PPP_DEFLATE.
* scsibus0 is attached to ncr0.
1996-10-23 07:49:49 +00:00
matthias
63d15a966d
* Sync with i386 version.
...
* Scratch ram for debugger stacks ends at VM_MIN_KERNEL_ADDRESS + 0x1000
and not at VM_MIN_KERNEL_ADDRESS + 0x2000.
1996-10-23 07:46:08 +00:00
matthias
e9a160096b
* Sync with i386 version.
1996-10-23 07:46:07 +00:00
matthias
4b2a039488
* configure() has to be declared void.
1996-10-23 07:46:04 +00:00
matthias
865930408c
* Do not include limits.h, use machine/limits.h.
1996-10-23 07:43:44 +00:00
matthias
897acfdcbb
* Do not include stddef.h.
...
* Add definition of offsetof.
1996-10-23 07:43:42 +00:00
matthias
1a81564477
* Declare reserve_dumppages and pmap_activate.
1996-10-23 07:30:57 +00:00
matthias
1731660b98
* Declare kvtop.
1996-10-23 07:30:54 +00:00
matthias
c53ad1988a
* At least the Teac FC-1 Shugart-SCSI bridgeboard does motor on/off
...
management by itself. But when it gets a start unit request, it keeps
the floppy motor running all the time. This adds code for dealing with
yet another quirk (SDEV_NOSTARTUNIT) that prevents sd.c from sending
start unit requests. A entry for the Teac FC-1 is added to the quirk
table.
1996-10-23 07:25:39 +00:00
matthias
3ff0c0553e
* The kernel-stack no longer needs to be wired-down on the pc532.
1996-10-23 07:20:09 +00:00
matthias
a587cc60a0
* In dosetrlimit ensure that rlim_cur and rlim_max are >0. Otherwise
...
the kernel might crash due to invalid values passed to setrlimit.
1996-10-23 07:19:38 +00:00
cgd
2e7c250f84
update drivers to use the new NetBSD/alpha DMA mapping hack, since
...
the old one is not workable with the new bus.h.
1996-10-23 04:37:31 +00:00
cgd
1b03f1bca7
update for new bus.h macros. bus_io_* and bus_mem_* integrated into
...
single bus_space_* framework. Unfortunately, bus_space_{read,write}_*
operations still imply barriers. That will change soon.
1996-10-23 04:12:13 +00:00
mhitch
0023076caa
Need to initialize fi_glasstty before using it.
1996-10-23 02:34:23 +00:00
gwr
e1467b90b1
Add prototypes, and a few more fields now used in z8530tty.c
1996-10-23 00:38:05 +00:00
gwr
a329be829e
Add masks for some combinations of bits that are set as a group.
1996-10-23 00:32:31 +00:00
mhitch
32fccda062
The active target needs to be initialized in siiattach() instead of
...
old_siiattach().
1996-10-22 23:15:10 +00:00
explorer
8e8c326f5d
Spelling error
1996-10-22 22:28:20 +00:00
cgd
2f614ee518
update for new bus.h
1996-10-22 21:34:19 +00:00
cgd
8f5cf31b8a
clean up the recent reimplementation, and kill several bogons in the new
...
definitions.
1996-10-22 21:23:49 +00:00
cgd
6d917387e4
there is no TC I/O space, so in the new bus.h world order there
...
is no tc_bus_io.c.
1996-10-22 21:15:45 +00:00
mhitch
39079306ce
Add the missing ".set noreorder".
1996-10-22 20:46:09 +00:00
explorer
239580d5d0
Clean up changes to make sys/lkm build again
1996-10-22 19:43:13 +00:00
explorer
03d7e64aaa
Make this compile again for i386
1996-10-22 19:32:06 +00:00
pk
fd8ac8b221
If no specific kernel architecture is requested, define the CPU_* and
...
NBPG et.al. as in the generic case. This would be the expected thing to do
when compiling LKMs and such.
1996-10-22 19:11:19 +00:00
explorer
6b59a239ae
Change MACHINE to MACHINE_ARCH, to properly find the machine-dependant sunos
...
files; closes pr port-m68k/2881 from David Carrel
1996-10-22 19:09:50 +00:00
cgd
48dc9aaae4
update alpha bus.h for new bus space interfaces. chipsets haven't
...
been updated yet, and the hacked DMA vto(busphys) macro is gone and
hasn't yet been replaced.
1996-10-22 18:06:54 +00:00
veego
cf6307b2e7
Fix GRFTOGGLE.
...
The old version only toggles to the amiga signal and do not go back to
the CyberVision signal.
1996-10-22 16:59:56 +00:00
perry
8ca5cce5c7
sync (mostly) with Alpha version. Among other things, this fixes the
...
boot-time printf better.
1996-10-22 16:38:34 +00:00
gwr
b0e589ced7
Define the *poll functions.
1996-10-22 15:58:12 +00:00
veego
b962d9a3eb
Fix a panic from the pfil_hooks.
1996-10-22 11:27:05 +00:00
perry
ac4e0ab44e
add a missing \n in the printf in rd_attach_hook. added an XXX
...
comment to note that this printf still isn't quite right (possibly
because this is now a pseudodevice), and the autoconf printout when
mounting root on a ramdisk isn't right, either. This should both be
fixed.
1996-10-22 10:19:10 +00:00
cgd
233251d896
add missing argument to bus_space_map in ESP code
1996-10-22 00:45:25 +00:00
thorpej
b84a8f42d9
Implement eisa_mem_{alloc,free}(), a method for allocating/freeing
...
EISA bus physical address space.
This i386 implementation allocates system physical address space
after the end of RAM.
1996-10-21 23:12:56 +00:00
thorpej
546c8abcee
New bus.h implementation/interface:
...
- No more distinction between i/o-mapped and memory-mapped
devices. It's all "bus space" now, and space tags
differentiate the space with finer grain than the
bus chipset tag.
- Add memory barrier methods.
- Implement space alloc/free methods.
- Implement region read/write methods (like memcpy to/from
bus space).
This interface provides a better abstraction for dealing with
machine-independent chipset drivers.
1996-10-21 22:56:24 +00:00
thorpej
769a499800
New bus.h implementation/interface:
...
- No more distinction between i/o-mapped and memory-mapped
devices. It's all "bus space" now, and space tags
differentiate the space with finer grain than the
bus chipset tag.
- Add memory barrier methods.
- Implement space alloc/free methods.
- Implement region read/write methods (like memcpy to/from
bus space).
This interface provides a better abstraction for dealing with
machine-independent chipset drivers.
1996-10-21 22:34:38 +00:00
thorpej
16c4c5af26
New bus.h implementation/interface:
...
- No more distinction between i/o-mapped and memory-mapped
devices. It's all "bus space" now, and space tags
differentiate the space with finer grain than the
bus chipset tag.
- Add memory barrier methods.
- Implement space alloc/free methods.
- Implement region read/write methods (like memcpy to/from
bus space).
This interface provides a better abstraction for dealing with
machine-independent chipset drivers.
1996-10-21 22:24:37 +00:00
jtc
4039b6bcba
Return ESPIPE when filedes is associated with a FIFO.
1996-10-21 17:42:48 +00:00
hpeyerl
05fe4c93dc
Force some drive mappings for reasons I won't get into.
1996-10-21 16:43:05 +00:00
veego
d576aeff5e
include update for config(8)
...
increase the number of bpfilters to 16
1996-10-21 11:13:39 +00:00
veego
c8902b053c
include update for config(8)
1996-10-21 11:11:23 +00:00
veego
2745d7df21
This config files are no longer needed.
...
Copy the GENERIC config file and use that.
1996-10-21 11:04:32 +00:00
veego
0d00de6c6e
Fix console problem on fast machines. pr#2777
1996-10-21 09:31:53 +00:00
scottr
289b73be85
Fix a raft of printf format strings and some declaration problems for
...
the case where we define DEBUG. From Erik Bertelsen, closes PR 2871.
1996-10-21 05:42:23 +00:00
jtc
2fd5ec5f18
Bump _POSIX_VERSION to correspond to 1003.1-90
1996-10-21 05:14:01 +00:00
briggs
084b3f6a4c
Fix two bugs noticed by Taras Ivanenko <ivanenko@ctpa03.mit.edu>
...
via.c: don't allow spl to remain at splhigh on error.
mainbus.c: Make sure that variable is initialized.
1996-10-21 01:59:31 +00:00
perry
3189406a17
Small fix to make this compile even if no BPFs are being compiled
...
in. Unfortunately, the BPF-only code called a label that wan't also
being #if'ed, and this made the compiler bitch. Now that we compile
with -Werror, this prevented the thing from compiling at all! (sigh)
1996-10-21 01:58:23 +00:00
perry
7117cf93ec
Add #include <sys/systm.h>, so that cc -W* doesn't bitch and error out
...
when printf() gets used in this file.
1996-10-21 01:49:22 +00:00
perry
9ab047883b
Fix unused variable -Wxxx failure when MINIROOTSIZE defined.
1996-10-21 01:32:38 +00:00
scottr
a6865e3d2b
Don't try to reference nfsbootdevname if we have no ether devices.
...
Fixes PR 2860, from Paul Goyette <paul@pgoyette.bdt.com>.
1996-10-21 00:31:18 +00:00
thorpej
43ba106ec2
Remove declaration for now-gone function.
1996-10-20 23:47:40 +00:00
thorpej
af8d8d2a56
Arrange this file into sections (configure(), root device goo, console goo,
...
old-config goo). Place old-config goo at the end so that it's easy to
#ifdef our or delete (muahahah!).
Garbage collect a couple of unused functions.
1996-10-20 23:46:06 +00:00
thorpej
bbdd41a2a7
Back out last change, and add a comment about what should happen.
...
(*grumble* will teach me to do a `make clean' next time.)
1996-10-20 23:23:28 +00:00
mrg
155a0b4d1d
enable lkm on non alpha/mips platforms.
1996-10-20 23:03:07 +00:00
hpeyerl
7aa41bf1a7
#ifdef out a couple of variables dependant on USER_LDT.
1996-10-20 22:39:03 +00:00
pk
52acac0518
Regroup the definitions of NBPG, PGOFSET and PGSHIFT into the section that
...
enumerates the possible SUN? combinations.
1996-10-20 20:26:52 +00:00
pk
62c32ff2dc
Drop a duplicate `#include ppp.h'; noted by Chris Demetriou.
1996-10-20 19:32:42 +00:00
pk
4dd0b24bf9
Make sure to refer to `sc_ovtype' only when SUN4 is defined, as noted
...
by `r.evans@ic.ac.uk'.
Also, explicitly testwhether we're dealing with a pfour.
1996-10-20 19:18:00 +00:00
pk
b246894d9b
Document `-a karch' option.
...
Fix a formatting nit.
1996-10-20 16:17:04 +00:00
pk
5ced353a7a
Add `-a <arch>' switch to force the target architecture. Retain `-h' for
...
compatibility.
1996-10-20 16:00:14 +00:00
fvdl
735944405b
Enhancements from Matthias Drochner:
...
- Try V3 first for diskless booting. Fall back to V2 if V3 fails.
- optionally (option NFS_BOOT_TCP) try a TCP mount first
for diskless booting. Fall back to UDP if it fails.
- Enable switching between UDP and TCP for remounts.
1996-10-20 13:13:22 +00:00
thorpej
7133ecf2ca
Don't need to mark 0-NBPG as VM_PROT_NONE in kernel_map anymore; the
...
first entry is now properly setup in kmem_init().
1996-10-19 21:11:32 +00:00
thorpej
7958973110
Set VM_MIN_KERNEL_ADDRESS to NBPG. This is a better way of getting
...
the kernel_map to treat page 0 properly.
1996-10-19 21:07:42 +00:00
is
e10e9e8455
Clean up the attach messages a bit.
1996-10-19 16:54:14 +00:00
jonathan
3bd4c6caee
regen from pcidevs 1.20
1996-10-19 13:04:51 +00:00
jonathan
7717235f4c
Add productId for RealTek 8029 PCI ethernet board.
1996-10-19 13:01:49 +00:00
jonathan
05c95ca095
Update copyright.
1996-10-19 12:40:31 +00:00
thorpej
cf9b36ab1d
Set up a kernel_map entry for the text segment with protection of
...
VM_PROT_READ|VM_PROT_EXECUTE. The previous default (VM_PROT_ALL)
would cause the following scenario:
- someone attempts to write kernel text (my test was writing
to an offset of /dev/kmem which was known to be in the text
segment, while in single-user mode).
- enter trap() with MMU fault (because of RO pte).
- trap() calls vm_fault(), which looks up vm_map_entry for
fauling address.
- vm_fault interprets write fault and VM_PROT_WRITE (in VM_PROT_ALL)
as COW; new page allocated, data copied to new page, new page
mapped in at trunc_page(<faulting va>).
- wow, look at the fireworks!
Fixes two potential symptoms:
- kernacc() returns TRUE when checking for permission to write
an offset in kernel text, which is bogus, since the text has
been mapped RO by pmap_bootstrap().
- Handling of a stray pointer that attempted to scribble into
kernel text would not be executed properly.
1996-10-19 08:51:33 +00:00
cgd
a6d9feb7a5
clean up chrtoblktbl, adding comments naming the devices which actually do
...
have entries in both device switch tables. Add 'st' entry to chrtoblktbl.
1996-10-18 21:26:57 +00:00
cgd
44365140cf
Severely clean up netisr handling. Clean up includes for netisr handlers.
...
Fix PPP netisr handling, add NATM netisr handling.
1996-10-18 20:35:23 +00:00
chuck
41a87a7ae0
fix: add missing ntohs() for llc mode, as noted by several people including
...
Dong Lin, Zdenek Salvet, and Matthias Drochner(i think).
1996-10-18 19:26:54 +00:00
explorer
efccf77947
Add quirk entries for two more optical drives; closes pr kern/2861
1996-10-18 17:22:17 +00:00
fvdl
d1400746a5
Fix some printf formatting strings within DEBUG and DIAGNOSTIC defines.
...
From Mike Long, PR 2859
1996-10-18 09:03:42 +00:00
thorpej
6126eea479
Tell the `upper half' of the VM system that page 0 isn't mapped. If we
...
don't do this, kernacc() will bogusly return TRUE for page 0, causing a
NULL pointer dereference in uiomove() when reading /dev/kmem.
Thanks to Scott Reynolds for noticing the problem.
1996-10-18 08:57:14 +00:00
mrg
8fd70c1fe1
in coredump(), check the SUGID bit rather than testing various parts
...
of the cred structures. this prevents a previously set[gu]id process
from generating a core file.
1996-10-18 08:39:34 +00:00
thorpej
150c33e60b
Use ${INSTALL}.
1996-10-18 05:55:26 +00:00