Commit Graph

4446 Commits

Author SHA1 Message Date
dg
e2558c0879 Implemented a (sorely needed for years) double fault handler to catch stack
overflows.
It sure would be nice if there was an unmapped page between the PCB and
the stack (and that the size of the stack was configurable!). With the
way things are now, the PCB will get clobbered before the double fault
handler gets control, making somewhat of a mess of things. Despite this,
it is still fairly easy to poke around in the overflowed stack to figure
out the cause.
1995-12-19 14:30:50 +00:00
phk
1753aa6d77 Cleanup and staticize. 1995-12-18 09:42:44 +00:00
dg
9ac954bed2 Added prototype for fxp_scb_wait() and fixed a bug where the wrong pointer
was passed in one case.
1995-12-18 02:47:43 +00:00
dyson
01802ea14d Fix paging from ext2fs (and other fs w/block size < PAGE_SIZE). This
should fix kern/900.
1995-12-17 23:29:56 +00:00
phk
826d00f42d Staticize.
Unstaticize a function in scsi/scsi_base that was used, with an undocumented
option.
My last count on the LINT kernel shows:
Total symbols:  3647
unref symbols:   463
undef symbols:     4
1 ref symbols:  1751
2 ref symbols:   485
Approaching the pain threshold now.
1995-12-17 21:23:44 +00:00
phk
8c2b2403cd Staticize and remove $Log$. 1995-12-17 21:17:48 +00:00
phk
86529468a1 Staticize. 1995-12-17 21:14:36 +00:00
phk
ff950705d4 Add an obscure feature, needed for debugging. 1995-12-17 21:11:22 +00:00
bde
5b9f7049f3 Cleaned up prototypes in pmap headers: removed ones for nonexistent
functions; moved misplaced ones; restored most of KNFish formatting
from 4.4lite version; removed bogus __BEGIN/END_DECLS.
1995-12-17 07:39:05 +00:00
bde
ede109313c Fixed 1TB filesize changes. Some pindexes had bogus names and types
but worked because vm_pindex_t is indistinuishable from vm_offset_t.
1995-12-17 07:19:58 +00:00
bde
c39524ebed Updated to match 1TB filesize changes. Some pindexes were still offsets
and weren't converted.  ptrace() was broken.
1995-12-17 06:59:36 +00:00
bde
a6be7b9dfa Really finished (?) cleaning up sysinit stuff. 1995-12-16 21:50:15 +00:00
bde
d484c656e8 Oops, the last commit missed one change from 200 to OBUFSIZ + 100. 1995-12-16 21:45:02 +00:00
bde
d8bc1b4669 Removed dead debugging code. 1995-12-16 21:43:47 +00:00
bde
fa609910ba Return the i/o size, not a truth value, in the probe. 1995-12-16 21:37:58 +00:00
bde
b30d0a7b05 One less magic number. 1995-12-16 21:32:19 +00:00
bde
0058fd8da8 Reformatted the list of broken modules and added ip_mroute_mod to it. 1995-12-16 21:19:18 +00:00
bde
d50c0d244c Fixed comment about IPFIREWALL_VERBOSE.
Added undocumented option SCSI_2_DEF.
1995-12-16 21:00:14 +00:00
peter
7ab65c2fa7 Catch a couple more null devsw dereferences... 1995-12-16 18:52:08 +00:00
peter
1087e523fe Another shot at getting working si DEVFS entries.. Apparently, it didn't
understand %02d in it's format string...
1995-12-16 14:03:02 +00:00
bde
ac84307414 Oops, forgot to update this to match pr_ctlinput.
Added comment about bogus LOMTU.
1995-12-16 03:43:49 +00:00
bde
3f27b9ec39 Added undocumented option LINUX so that it gets tested. 1995-12-16 02:19:17 +00:00
bde
1fe040229a Uniformized pr_ctlinput protosw functions. The third arg is now `void
*' instead of caddr_t and it isn't optional (it never was).  Most of the
netipx (and netns) pr_ctlinput functions abuse the second arg instead of
using the third arg but fixing this is beyond the scope of this round
of changes.
1995-12-16 02:14:44 +00:00
bde
0bdcf0e1aa Added `-Wstrict-prototypes -Wmissing-prototypes' to CWARNFLAGS so that
prototypes don't go missing again.  Also added -Winline so that some
doubtful (non-)inlines get fixed.

bsd.kmod.mk:
Also added `-Wreturn-type -Wimplicit -Wnested-externs' to catch up
with the kernel.
1995-12-16 01:57:25 +00:00
bde
49a83b1440 Completed function declarations and/or added prototypes and/or added
#includes to get prototypes.

pci now uses a different interrupt handler type for interrupts that it
dispatches and the isa interrupt handler type for the interrupts that
it handles.
1995-12-16 00:27:59 +00:00
bde
1a2e0933dd Completed function declarations and/or added prototypes and/or added
#includes to get prototypes.
1995-12-16 00:11:11 +00:00
bde
bc05b0f970 Added a prototype. 1995-12-16 00:05:40 +00:00
bde
184628ff6e Removed unused function lkmenodev(). 1995-12-16 00:01:40 +00:00
bde
a90efa2f43 Completed function declarations and added prototypes. Sorted prototypes. 1995-12-15 23:49:42 +00:00
bde
719b6a88c1 Completed a function declaration.
Restored order to prototype list.

Restored tabs to #defines.
1995-12-15 22:49:36 +00:00
se
49a2d456af Fix the off-by-one error in the calculation of the valid port range.
Reduce default value of pcicb_membase to 0x2000000 (from 0x4000000)
since this seems to be the lower bound used by many systems.

Submitted by:	Mihoko Tanaka <m_tanaka@pa.yokogawa.co.jp>
1995-12-15 13:40:20 +00:00
dg
9399fd5a79 Changed arg type for pio functions.
Cast a few things appropriately to shut up the compiler.
1995-12-15 07:31:40 +00:00
peter
636d20f6c7 Update linux_ipc.c to use the now generated prototypes for the shm* calls
it makes while emulating the linux equivalents.
1995-12-15 05:07:20 +00:00
peter
0c52e3131d Update sysv_*.c to get their argument definitions from sysproto.h 1995-12-15 05:00:31 +00:00
peter
c381ba6f3f Regenerated from syscalls.master... 1995-12-15 04:46:32 +00:00
peter
08dbf8bf0e Add the direct sysv shm/sem/msg system calls, in the same way as NetBSD.
This costs very little, we gain prototypes for the calls from the linux
emulator, and this is one less thing in the way of NetBSD binary support.
1995-12-15 04:36:01 +00:00
peter
d50bcb6f79 move typedef for key_t from sys/ipc.h to sys/types.h, as suggested in the
comment in ipc.h.  This is so that prototypes for the sysv ipc functions
can be processed without having to #include <sys/ipc.h> in everything..
1995-12-15 04:22:42 +00:00
peter
af871c6851 Silence a harmless warning... 1995-12-15 03:36:25 +00:00
peter
9d6192fef3 Initial attempt at getting Linux QMAGIC shared lib support. I have
successfully run linux netscape 2.0b3 with a QMAGIC ld.so and libc/libm
that I found on some linux machine that I _think_ is running slackware 3.0.

There are still problems..  ld.so claims the libraries are the wrong
format, but it still runs anyway.. :-/  The QMAGIC ld.so also screams
about needing ld.so.cache, and running a linux ldconfig is quite
educational.  You soon learn to run "chroot /compat/linux /bin/ldconfig"
where ldconfig is living in /compat/linux/bin. :-]

(Lets just say that it puts loads of symlinks in /usr/lib otherwise :-)
1995-12-15 03:28:38 +00:00
peter
8050b72571 Clean up some warnings by using the generated structures in <sys/sysproto.h>
for passing to the bsd system calls, rather than inveninting our own
equivalent structures.
1995-12-15 03:06:57 +00:00
peter
224077960e Oops. I forgot the change to this file for supporting static configuration
of the linux emulator.
1995-12-15 02:57:40 +00:00
bde
91166d8cf2 Changed the maximum output queue count from (TTMAXHIWAT + 200) to
(TTMAXHIWAT + OBUFSIZ + 100) in case someone changes OBUFSIZ.  200
was to allow 100 above high water for ordinary writes and another
100 for kernel printfs.

Increased the reserved output queue count from 512 to the maximum
output queue count.  This prevents exhaustion of clists and increases
the output throughput for 8 cy lines by almost a factor of 2 (on
a system where there aren't many other open ttys so clists become
exhausted after about 4 active lines (or earlier if TTMAXHIWAT is
increased :-]).

ttwrite() behaves very badly when clists are exhausted:
(1) it sleeps on lbolt instead of on TSA_OLOWAT(tp).
    This could be fixed adequately by sleeping on TSA_OLOWAT(tp).
    The nonzero reserved count guaratees that space will become
    available independent of other ttys, and a reserved count
    of 512 is barely enough for efficiency.
(2) it drops output if space runs out in the middle of special
    output processing.  This is too hard to fix without hardening
    the reserved count.  The watermark processing guarantees that
    space doesn't run out only if the advertised space is guaranteed.

Increasing the reserved output queue count defeats the point of
dynamic allocation of clists.  Previously, about 2K of memory per
tty was reserved (the raw queue was already reserved).  Now, about
3.5K is reserved.  Reserving everything would take a whole 0.5K
more.
1995-12-15 02:18:06 +00:00
bde
dc86db9afc Disabled the sleep in ttyflush(). It can't work in general because
ttyflush() might be called from an interrupt handler.  This fixes
panics in IXOFF mode at the cost of more failures to send the START
character to exit from IXOFF mode.
1995-12-15 01:01:00 +00:00
bde
9d9332ea47 Completed function declarations and/or added prototypes and/or added
#includes to get prototypes.
1995-12-15 00:54:32 +00:00
bde
7a861ac077 Removed unused #includes. 1995-12-15 00:40:38 +00:00
bde
466436fc55 Removed duplicated #includes of <sys/conf.h> 1995-12-15 00:29:31 +00:00
bde
5efea6ee6a Completed function declarations and added prototypes. Sorted prototypes. 1995-12-15 00:11:27 +00:00
bde
ca97a3e99c Added a prototype. Merged prototype lists. 1995-12-14 23:59:04 +00:00
bde
2ea7fe5b03 Added a prototype. 1995-12-14 23:50:54 +00:00
bde
104fb3494b Moved some more prototypes outside of ifdefs and grouped them together. 1995-12-14 23:35:17 +00:00