Commit Graph

1503 Commits

Author SHA1 Message Date
se
2a7081fe01 Submitted by: Wolfgang Stanglmeier <wolf@dentaro.GUN.de>
Files merged and name change: pci_device.h + pcibios.h -> pcireg.h
1994-10-12 02:25:03 +00:00
se
91a4162398 Submitted by: Wolfgang Stanglmeier <wolf@dentaro.GUN.de>
Name change: ncrstat -> ncrcontrol
1994-10-12 02:23:14 +00:00
se
c7233be7d4 Submitted by: Wolfgang Stanglmeier <wolf@dentaro.GUN.de>
Name change: ncr_reg.h -> ncrreg.h
1994-10-12 02:21:56 +00:00
wollman
ffabe2a5ad Fix a bug which caused panics when attempting to change just the flags of
a route.  (This still doesn't work, but it doesn't panic now.)  It looks
like there may be a number of incipient bugs in this code.

Also, get ready for the time when all IP gateway routes are cloning, which
is necessary to keep proper TCP statistics.
1994-10-11 23:16:38 +00:00
sos
57cd073556 Ouch, fixed bug in errno translation (ibcs2 support). 1994-10-11 22:37:14 +00:00
sos
8819dfc094 Fixed bug in ibcs2 signal translation. 1994-10-11 20:42:01 +00:00
sos
45e2713230 Removed static declaration of getvnode() (used in ibcs2) 1994-10-11 20:40:12 +00:00
ache
2126872294 Better IXANY/IXOFF processing into setflags.
Cosmetique 'tab' fix
1994-10-11 20:29:42 +00:00
ache
7d96472389 Fix old cs8->cs7 bug, bringed by rlogin.
Obtained from:  FreeBSD 1.x
1994-10-11 20:04:49 +00:00
csgr
f418b6577e - remove unnecessary #includes (I think a couple of redundant ones remain)
- excise some unused code (#if 0'd out - don't want to nuke it yet)
- fix problems with "make depend" - some macros were screwing it up
- get rid of some static local variables

There still seems to be a small reentrancy problem somewhere.
1994-10-11 11:29:17 +00:00
wollman
1ff4b94c7d Turn off OXTABS by default. Inspection of systems here finds no commercial
systems with it on by default (or the equivalent flag) and terminal control
sequences confuse it greatly.  (Try running `ls' under bash in an XTerm,
for instance.)
1994-10-11 00:16:28 +00:00
phk
03b8cd6bbb minaddr #ifdef lost in previous commit. Sorry. 1994-10-10 18:06:58 +00:00
phk
250cc1ae23 Cosmetics. Silence gcc -Wall 1994-10-10 07:57:33 +00:00
phk
84923353f8 Cosmetics. Silence gcc -Wall. 1994-10-10 07:56:07 +00:00
phk
c0f48e68d2 Cosmetics. reduce the noise from gcc -Wall. 1994-10-10 07:55:48 +00:00
sos
03a02ed175 Hmm, only translate errno when doing an actual return.
Reviewed by:	sef@freefall.cdrom.com
1994-10-10 07:33:01 +00:00
phk
b71a5d56f5 Got rid of "APM" macro. Now only NAPM is needed to activate the APM stuff. 1994-10-10 01:14:03 +00:00
phk
f6a1c45a08 Cosmetics. Silence gcc -Wall. Much more to do here :-( 1994-10-10 01:12:27 +00:00
phk
4f594ec8ba locore.s: Made the APM stuff depend on NAPM > 0 rather than a separate
"APM" macro.
machdep.c: Made the APM-descriptors unconditional.
Bruce: if these still conflict with your debugger, please put in a reservation
for your debugger.  These three desc. can be anywhere, as long as they are
contiguous, so just move them as needed.
1994-10-10 01:10:22 +00:00
phk
913add0cbb Cosmetics. Added a prototype. 1994-10-10 01:06:48 +00:00
phk
ffd776502f Cosmetics. make gcc less noisy. Still some way to go here. 1994-10-10 01:04:55 +00:00
phk
1395bb0791 Cosmetics. related to getting prototypes into view. 1994-10-10 01:00:49 +00:00
phk
1d21d570b6 Cosmetics. (sort of) Added 19 prototypes. 1994-10-10 00:58:36 +00:00
jkh
7b137d99db Make the Bt545S work a little nicer with a strategic delay.
Submitted by:	dyson
1994-10-10 00:46:09 +00:00
sos
7224e3ddd9 Added errno conversion table (initialize to zero). 1994-10-09 22:07:38 +00:00
sos
d473eef8be Updated to convert errno return in syscall if conversion tabel present. 1994-10-09 22:02:06 +00:00
sos
859f37b194 Updated to add errno conversion table (initialize to zero). 1994-10-09 22:00:17 +00:00
sos
9b84549628 Updated to add errno conversion table. (intialize to zero). 1994-10-09 21:58:47 +00:00
sos
5e2bc681b3 Changed option IBCS2 to COMPAT_IBCS2 (for lkm support) 1994-10-09 21:53:49 +00:00
sos
52b6f27db2 Added errno conversion table for ibcs2 support. 1994-10-09 21:53:05 +00:00
sos
a9807158e2 Latest ibcs2 changes, add errno conversion table.
Also add 256 byte spare space on the usr stack.
1994-10-09 21:50:57 +00:00
dg
8ec51aef1b Got rid of map.h. It's a leftover from the rmap code, and we use rlists.
Changed swapmap into swaplist.
1994-10-09 07:35:18 +00:00
phk
09c3293a0f Cosmetics: unused vars, ()'s, #include's &c &c to silence gcc.
Reviewed by:	davidg
1994-10-09 01:52:19 +00:00
dg
877f7da834 Call resetpriority, not setpriority() ...oops.
Submitted by:	John Dyson
1994-10-09 00:18:22 +00:00
phk
632c3f49e9 Cosmetics: silences gcc -Wall. 1994-10-08 22:39:58 +00:00
phk
3282d8a721 Cosmetics: to silence gcc -wall. 1994-10-08 22:38:27 +00:00
phk
ec6c0e6ca7 Cosmetics: added a #include and a static prototype to silence gcc. 1994-10-08 22:37:00 +00:00
phk
5f8e9e2c4d Cosmetics: added ()'s and fixed prinf-formats to make gcc silent. 1994-10-08 22:33:43 +00:00
phk
ce7e00f64f A couple of prototypes moved out from here. 1994-10-08 22:27:58 +00:00
phk
be4fdf00a8 Removed unused vars. Silenced gcc -Wall. Some of this stuff is virtually
type-less.  Everything is "u_int32" :-(
1994-10-08 22:26:40 +00:00
phk
5251e75557 Added prototypes here and there. Moved pfctlinput into socket.h. 1994-10-08 22:23:00 +00:00
phk
4ffcc0d5e9 Added prototypes. 1994-10-08 22:21:34 +00:00
phk
cbcc30050b db_disasm.c: Unused var zapped.
pmap.c: tons of unused vars zapped, various other warnings silenced.
trap.c: unused vars zapped.
vm_machdep.c:  A wrong argument, which by chance did the right thing, was
corrected.
1994-10-08 22:19:51 +00:00
dg
620770cf48 Completely removed trailer support. The only reason I wrote that code in
the first place was so that BPF could grok trailer packets. I've since
decided that this is a job for tcpdump to decipher (if at all). Also
fixed up checks for received packet length to better cope with ancient
starlan boards.
1994-10-08 09:24:20 +00:00
phk
06258807e1 POSSIBLE BOGUS CODE found, (related to dos-partitions) in ufs_disksubr.c,
look for CC_WALL.
Cosmetics, a couple of unused vars.
1994-10-08 06:57:29 +00:00
rgrimes
c447e587f4 Correct #ifdef for nfs_disless support is #ifdef NFS, there will be no
option DISKLESS for the 2.0 nfs diskless support.   A 2.0 diskless kernel
simple needs NFS linked in statically.
1994-10-08 06:20:52 +00:00
phk
ee22b0c649 Cosmetics for gcc -Wall. A couple of unused "int i"'s removed and a couple of
prototypes added.  And the usual () work.
1994-10-08 06:20:06 +00:00
phk
179b7ba3f8 I got my patch-file applied twice it seems. Fixed. 1994-10-08 03:31:53 +00:00
phk
34a9d3d869 Prototypes of today. Brought to you by a 28 minute transit time on BART :-)
(For the SF-unaware:  I ride the BART (The Bay-area subway) for half an hour
each way to work.  I use the time to shut up gcc -Wall on my handbook).
1994-10-08 01:45:30 +00:00
phk
0acc5560ac Cosmetics. 1994-10-08 01:41:15 +00:00
phk
f50da77aa9 Mostly Cosmetics. Some of the procedures in if_sl.c was void, but should
be int.  I made them int, and let them return 0.  Will have to find out
what the return-val is used for.
1994-10-08 01:40:23 +00:00
csgr
b2767579ff Make inflate() reentrant - no more global variables.
(The gzip image activator now needs a good code tidy up.)
1994-10-07 23:18:18 +00:00
csgr
20af18de70 First stage of getting imgact_gzip reentrant:
1) cut this up into /sys/sys/inflate.h, sys/kern/inflate.c
sys/kern/ingact_gzip.c
2) make a lot more things static
3) make a lot of globals const
4) make some args const
5) first stage of making globals into a struct (not used yet)

The vm_allocate() call which was introduced between revisions 1.4 and
1.5 of imagact_gzip.c broke things.  I have backed that out for the time
being.  (Davidg: help please)

WARNING: if you have gzip enabled in your kernel, you must now run
config again, as another source file has been added.  Otherwise your
kernel compile will fall over.

This is all still WIP.  More commits to come.

Suggestions from: phk.
1994-10-07 22:27:00 +00:00
phk
36596f7928 I forgot this bit of APM stuff last week. 1994-10-07 21:23:33 +00:00
phk
719bcaffe9 Reviewed by: phk
Submitted by:	 Thomas David Rivers <rivers%ponds@ncren.net>

WARNING: might hide some bug below!  I commit this to improve the stability
of 2.0.

Thomas wrote:
-------------
 I have been running a kernel with this change since October 4th; barring
unrelated network router troubles, the pitiful little machine has
completed several builds without any interaction from me, and continues
to chug along.

 I re-read wd.c, and added appropriate printfs() to look for references
to dk_badsect[].  My changes should have printed something when dk_badsect[]
was referenced.

 I got no output :-(

 Thus, I'm forced to concluded that something else is examining some
spurious memory... which happened to be in dk_badsect[] of the disk structure
in wd.c.  I can find no other explanation of why this unnecessary
initialization causes things to operate correctly.

 On the premise that such an initialization isn't going to hurt anything,
I'm going to suggest it go into 2.0.

 I'd like to thank everyone for there assistance, particularly David,
John and Bruce.
1994-10-07 21:17:41 +00:00
phk
ee674f1a0d Cosmetics. Added four prototypes. 1994-10-07 07:33:51 +00:00
phk
633ef15194 Cosmetics. Unused vars and other warnings. 1994-10-07 07:23:04 +00:00
dg
17204bbc08 #ifdef DISKLESS the copying of the nfs_diskless structure. Not the best
solution, but the only one I have time for at the moment.
1994-10-07 05:45:27 +00:00
ache
a9c792d591 Change first CFLAGS+= to CFLAGS= or we got really bad results
especially with -m486 from make.conf
1994-10-07 05:36:01 +00:00
dg
2add6128e2 Use tsleep() rather than sleep so that 'ps' is more informative about
the wait.
1994-10-06 21:07:04 +00:00
phk
52abae4377 Steven Wallace provided a program which broke this stuff. I guess there are
more weird kinds of a.out than anyone can argue for.  This code failed to
load the first 28K of the text-segment, in the case where the first page
of the a.out contains only the a.out-header, and the text is still at 0x0.
Thanks Steven !
1994-10-06 18:22:24 +00:00
rgrimes
04c54e6dff 1. BOOTSEG and BOOTSTACK are now set from the Makefile, the boot code has
been relocated to run in the 64k segment at 0x10000 with the stack at
    the top of this segment.  This corrects the problems machines with 512K
    base memory had booting.

2.  startprog routing rewritten to convert the BOOTSEG ss to a KERNELSEG
    ss, this eliminated the last of the >512K memory references.  Additional
    cleanup in here included a better way to copy the arguments to the
    kernel stack.

3.  Elimination of argv and esym cruft saved a few bytes.

4.  Only need to truncate the head.a_entry to a meg boundary once intead
    of every time we used it!  [Saving more bytes].

5.  Addition of version 1 bootinfo structure support.  These boot blocks
    pass the kernel name in to the kernel now.

6.  Removed historical comments about MACH argv stuff, as it is useless now.
1994-10-06 09:41:05 +00:00
rgrimes
f60f323155 1. bootinfo.h defines the structure passed in to the kernel by the
new boot code.
1994-10-06 09:25:25 +00:00
rgrimes
5ff3d9fc6c 1. Eliminate unused esym global from locore, our boot code never supported
that and when it does it will be done differently.

2.  The kernel now does a frame setup on entry so it ``looks'' like a
    real function call.  This will be needed by future boot code and
    debuggers.

3.  Clean up stack offsets to all be in decimal and use %ebp when copying
    parameters in from the boot code.

4.  Implement version 1 of the uniform boot code passing mechanism with
    support for kernelname passing and nfs_diskless structure passing.

5.  Document the 3 different ways the kernel is called depending on what code
    is calling it.
1994-10-06 09:22:47 +00:00
wollman
ef35e45f85 Define a new macro. PSEUDO_SET, to hide TEXT_SET(pseudo_set, foo)
from users.  Eventually this will be used for LKM support.
1994-10-05 21:23:38 +00:00
wollman
cd21bb7ff0 Install line discipline the new way. 1994-10-05 21:22:45 +00:00
wollman
6fa06f2910 Allow for loadable line disciplines (eventually). 1994-10-05 21:22:24 +00:00
wollman
4c7a70a838 A number of bug-fixes inspired by Mark Treacy:
- Allow PPP to run multicasts natively.
- Deal properly with lots of similarly-named interfaces.
- Don't sign-extend if_flags.

NB: the last fix (to rtsock.c) must be reversed when we expand if_flags to a
reasonable size.

Submitted by:	Mark Treacy
1994-10-05 20:11:28 +00:00
dg
52b4dc9c30 Stuff object into v_vmdata rather than pager. Not important which at
the moment, but will be in the future. Other changes mostly cosmetic,
but are made for future VMIO considerations.

Submitted by:	John Dyson
1994-10-05 09:48:45 +00:00
dg
66cba7eaa5 Fixed minor bug caused by some missing parens that can result in slightly
reduced paging performance by missing a clustering opportunity. Found
by Poul-Henning Kamp with gcc -Wall.
1994-10-05 09:02:53 +00:00
phk
533de3420b David Greenman told me to do this: (Thanks!) use vm_allocate to allocate
the uncompression buffer.  Now malloc(M_GZIP) is used for all the Huffman-
tree stuff only.  Numbers so far indicate < 15Kb Malloc use + 32 Kb for
the abovementioned buffer while uncompressing.
1994-10-05 00:58:33 +00:00
ache
9372070b25 Add code to handle CPU_DISRTCSET 1994-10-04 18:44:21 +00:00
ache
9861089c20 Add disable_rtc_set variable to block resettodr() call, needed for
adjkerntz -i, per Bruce suggestion
1994-10-04 18:39:10 +00:00
ache
0683676e4a CPU_DISRTCSET added to disable resettodr(), needed in adjkerntz -i,
per Bruce suggestion
1994-10-04 18:25:51 +00:00
ache
20bbd02fac USE_RTC_CENTURY added 1994-10-04 14:11:02 +00:00
ache
7625b88d83 RTC_CENTURY usage ifdefed out by USE_RTC_CENTURY compile option,
pointed by Bruce
1994-10-04 13:59:44 +00:00
dg
2745117c81 John Dyson's work in progress. Not currently used. 1994-10-04 07:32:08 +00:00
phk
ddf9ae4419 Added M_GZIP for the imgact_gzip code. The gzip-code is likely to be used
for other weird things in the future (hint, hint!)
1994-10-04 06:51:42 +00:00
phk
094a6feedc Moved m_copyback into uipc_mbuf.c 1994-10-04 06:50:01 +00:00
rgrimes
56f4ab7d4c In sd_get_params() the timeout for the MODE_SENSE command was too
short. I changed it from 2000 to 4000 and now my disk works fine.

Submitted by:	John Hay <jhay@mikom.csir.co.za>
1994-10-04 06:45:57 +00:00
rgrimes
22ae4f18c6 Pull in 1.1.5.1 changes to sd.c from 1.23 to 1.27 (basically the fixes for
drives that return sector counts of 0 and cause division by 0 traps during
the probe).
Reviewed by:	Dave <root@hclb.demon.co.uk>
Obtained from:	FreeBSD 1.1.5.1
1994-10-04 06:39:27 +00:00
dg
da97dc92f8 Commented out anti-paging code as it was found to be the cause of a
buffer deadlock.
1994-10-04 03:10:47 +00:00
phk
edef5d36b8 Based on the applause (in this case: not downright rejection :-) I have
cleaned up much of the cruft in this thing.

No printf's in the case where things go well.

Gzip-headers can contain filenames and comments (as long as they're
shorter than the page-size.)

I don't think we leak memory, in the "exec/aout" code.  I'm not quite sure
about the inflate code yet, but I don't think memory is lost.

Q:  Can I add a class M_GZIP to <sys/malloc.h> and bump M_LAST one up
without any thing else needing tweaking ?

Poul-Henning
1994-10-04 03:09:13 +00:00
dg
467ebd6849 Fixed bug related to proper sensing of page modification that we
inadvertantly introduced in pre-1.1.5. This could cause page modifications
to go unnoticed during certain extreme low memory/high paging rate conditions.

Submitted by:	John Dyson and David Greenman
1994-10-04 03:05:09 +00:00
phk
d92766a8ef First bug-fix. This this depends on something odd. I am looking at it,
but every now and then it will fail without an explanation :-(
1994-10-03 23:14:48 +00:00
rgrimes
8e4232db57 Put genassym: back how it was originally, the real bug was in mkdep. 1994-10-03 23:03:38 +00:00
phk
37190acca0 I added "pserudo-device gzip" as default. 1994-10-03 22:32:13 +00:00
phk
cc7748361f dependency for genassym was wrong, there is never made a genassym.o file.
made i depend on the src.
1994-10-03 18:51:35 +00:00
phk
730570e69d Changed the imgact_gzip to "optional gzip" per David Greenman's request. 1994-10-03 06:35:17 +00:00
phk
6e8d358dec ***
WARNING:  THIS MATERIAL MIGHT GO AWAY!
This material needs the core-groups approval to stay here for the 2.0 release.
If the core-group does not concent to this commit, it will be backed out.
***

It is a non-gpl'ed "unzip" which will allow execution of a.out files which
have been sent through "gzip -9".  The idea being saved disk-space.

Just now this code has quality rating:  "working prototype".

To compress a file to be used with this, do it exactly this way:

gzip -9 -v < /bin/FOO > /tmp/FOO
remember to chmod /tmp/FOO as needed.

DON'T compress all of you binaries right away !  There are several things
which you should consider first:

1. Using compressed binaries, you use >MUCH< more VM, and thus swap-space.

2. It is slow.

3. It might crash your machine.

Apart from that, I welcome comments...

NB:  There is also a change to sys/conf/files, but cvs core-dumped on me,
so it didn't get into the logs or emailed, but the commit seems to have
happended OK.
1994-10-03 05:23:01 +00:00
phk
af728dc458 ***
WARNING:  THIS MATERIAL MIGHT GO AWAY!
This material needs the core-groups approval to stay here for the 2.0 release.
If the core-group does not concent to this commit, it will be backed out.
***

It is a non-gpl'ed "unzip" which will allow execution of a.out files which
have been sent through "gzip -9".  The idea being saved disk-space.

Just now this code has quality rating:  "working prototype".

To compress a file to be used with this, do it exactly this way:

gzip -9 -v < /bin/FOO > /tmp/FOO
remember to chmod /tmp/FOO as needed.

DON'T compress all of you binaries right away !  There are several things
which you should consider first:

1. Using compressed binaries, you use >MUCH< more VM, and thus swap-space.

2. It is slow.

3. It might crash your machine.

Apart from that, I welcome comments...
1994-10-03 05:17:01 +00:00
ache
23381753dc Fix 'cursor-disappearce-after-switching-screen-from-X' bug 1994-10-03 01:22:46 +00:00
ache
58a698518c Add VMIN/VTIME support
Obtained from:  scratch :-)
1994-10-03 01:12:18 +00:00
rgrimes
ef83447cb7 genassym: depends on Makefile and genassym.o, genassym.o dependicies are
picked up from .depend.
1994-10-02 22:58:40 +00:00
phk
7dd02d2607 In case CWARNFLAGS and COPTFLAGS are already defined (from /etc/make.conf
for instance), don't nuke them.
1994-10-02 21:50:51 +00:00
paul
32fd2ea330 (There's two of these now (Am7990.h and am7990.h) and they need to
be merged at some point)

New AMD family ethernet driver. Should support BICC,NE2100, TNIC,
AT1500 and anything else that uses a Lance/PCnet type chip. Only been
tested with the BICC so far though.

Still work to do on performance and MULTICAST support needs to be added
but it's basically working and I want the revision history from this
point on
1994-10-02 21:16:01 +00:00
paul
18f95ce2b3 New AMD family ethernet driver. Should support BICC,NE2100, TNIC,
AT1500 and anything else that uses a Lance/PCnet type chip. Only been
tested with the BICC so far though.

Still work to do on performance and MULTICAST support needs to be added
but it's basically working and I want the revision history from this
point on
1994-10-02 21:14:38 +00:00
dg
2fbb807ade Add back and correct declaration of m_copyback() 1994-10-02 20:04:04 +00:00
phk
1f6d0ff1e2 Avoid ddb getting a panic if the code-segment isn't the usual one... 1994-10-02 19:36:30 +00:00
dg
a7840d2aa8 Patch from HOSOKAWA Tatsumi to fix bug in the size of apm_current_gdt_pdesc
Submitted by:	HOSOKAWA Tatsumi
1994-10-02 18:57:15 +00:00
phk
f3c1ed2327 GCC cleanup.
Reviewed by:
Submitted by:
Obtained from:
1994-10-02 17:48:58 +00:00
phk
451659421c Ripped out APM-hooks. Not ready for prime time yet. 1994-10-02 17:41:44 +00:00
phk
ebec1c5416 Ripped out a lot of stuff made to circumvent the previous bogus assy stuff.
Ripped out the "hooks".  Until we know how we want to do it, we shouldn't
start hacking anyway.  Still panics my machine though.
1994-10-02 17:40:38 +00:00
phk
c3e4945541 All of this is cosmetic. prototypes, #includes, printfs and so on. Makes
GCC a lot more silent.
1994-10-02 17:35:40 +00:00
phk
29627a3d7d apm_bios.h: removed the equiv-stuff. Not needed now that the kernel module
works correctly.

clock.h & reg.h: prototypes.
1994-10-02 17:31:29 +00:00
phk
69c48d96e9 Unused variables, except one with a omnious comment. 1994-10-02 17:29:51 +00:00
phk
42a70cf15d Prototyping and general gcc-shutting up. Gcc has one warning now which looks
bad, I will get to it eventually, unless somebody beats me to it.
1994-10-02 17:27:07 +00:00
phk
b1b8768e6a Prototypes, prototypes and even more prototypes. Not quite done yet, but
getting closer all the time.
1994-10-02 17:25:04 +00:00
ache
f9272a2145 Make fat cursor as early as possible, per Bruce suggestion 1994-10-02 14:08:57 +00:00
dg
259f1c25df Include rtprio.h for struct rtprio. 1994-10-02 08:34:47 +00:00
rgrimes
c2769e77fe If you are building a kernel without NFS statically linked in you
must #define NFS before including <sys/mount.h> to pick up some of
the definitions needed for struct diskless.  Be sure to undef it after this
so you do not effect other code.

This is kinda sick, but it does the job.  Problem found by davidg.
1994-10-02 07:19:43 +00:00
rgrimes
7a2b24a44d 1. Completely rewritten Makefile that uses bsd.prog.mk more effectively.
2.  Clean up the .S files to use /* */ style comments.

This is a totally cosmetic change, not one byte of the resulting boot
code changes.  But at least it is installed with correct owners and in
the right places, and gets recompiled correctly when things change!
1994-10-02 05:18:26 +00:00
dg
3b0f093fdc "idle priority" support. Based on code from Henrik Vestergaard Draboel,
but substantially rewritten by me.
1994-10-02 04:48:21 +00:00
phk
3788fddb13 Replaced the magic register union with inline assembler. Now it works
"mostly".  My machine still panics from time to time, and I think the
problem is a stack-problem.
1994-10-02 01:45:42 +00:00
rgrimes
2d378393a1 1. Remove all references to cyloffset, it has been unused for some time.
2.  New detection code so we know what boot code called us.

3.  Remove old DISKLESS support code and halt if we are called by that boot
    code as it will NOT work with the new nfs_diskless structure.

This is really in preperation for new boot code and new diskless support.

Reviewed by:	davidg
1994-10-02 01:32:53 +00:00
rgrimes
bb84ef83fb Add code to generate NFSDISKLESS_SIZE for use in locore for copying the
nfs_diskless structure in from the boot code.
Reviewed by:	davidg
1994-10-02 01:28:38 +00:00
wollman
9ce9e24f39 Implement full proxy ARP, gated on option ARP_PROXYALL. This allows
a FreeBSD box to do proxy ARP as easily as most commercial routers do,
without messing around with (potentially variable) Ethernet addresses.
This code is really quite simple; I'm not at all sure why it wasn't
implemented in 4.4.

It might be worth stealing an interface flag (maybe IFF_LINK1) to use for
finer-grained control over which interfaces get proxy treatment.  For the
moment, it's all or nothing.
1994-10-01 21:50:33 +00:00
rgrimes
049ffbc086 genassym: depends on the source code too. 1994-10-01 21:43:24 +00:00
phk
8fedfb1241 On my GW2K Handbook486 this code would reset when called from locore.s
I think I have narrowed this down to the stack being overflown.  I have
taken the push/pop of %fs out, it shouldn't be needed anyway, but the
real & correct solution might to save the registers on the stack in
locore.s before calling this stuff.
1994-10-01 21:29:50 +00:00
wollman
1fbb6a0bd3 Add Matt Thomas's DC21040 PCI Ethernet driver. (This is turning out
to be quite a popular chip, so expect to see a number of products
based on it.)
1994-10-01 20:16:47 +00:00
wollman
2b5b41620e Update DEPCA/DE422 et al driver to latest version, from Matt Thomas.
This file was run through unifdef -DMULTICAST in preparation.
1994-10-01 20:15:47 +00:00
wollman
ac5f40d013 Correct `de' device ID.
Add pd_npresent field for future loadable PCI drivers.
1994-10-01 19:47:33 +00:00
wollman
7eee0c2914 Define IFF_ALTPHYS to be IFF_LINK2. Gross, but effective. (There aren't any
more bits left in if_flags and I don't want to make it a long this late in
the release cycle.)
1994-10-01 19:44:38 +00:00
dg
509369c300 Added Cortex-I Frame Grabber by Paul S. LaFollette, Jr.
Submitted by:	Paul S. LaFollette, Jr.
1994-10-01 17:59:42 +00:00
phk
bc54190a50 #Driver for Advaced Power Management (also need options APM)
-device		apm0	isa?
+device		apm0	at isa?
1994-10-01 16:44:07 +00:00
ache
2896e6e4e4 Fix again PAS16D detection and MVA508 handle.
Initial importers (swallace) please be more carefully to not break
old things!
1994-10-01 12:42:17 +00:00
dg
e630d3549c Get rid of redundant declaration, and changed DDB -> SDDB to get rid
of the conflict that results otherwise.
1994-10-01 05:46:01 +00:00
dg
52c7a916b9 Added options APM and device apm0 for Advanced Power Management support. 1994-10-01 05:43:09 +00:00
dg
5eee9727f8 Added $Id$ 1994-10-01 05:13:37 +00:00
dg
602d8ee732 Woops, missed these two files; part of HOSOKAWA Tatsumi's APM support. 1994-10-01 05:05:10 +00:00
dg
3e90500374 Minor improvement to probe routine.
Submitted by:	HOSOKAWA Tatsumi
1994-10-01 03:29:28 +00:00
dg
b329c83425 Laptop Advanced Power Management support by HOSOKAWA Tatsumi.
Submitted by:	HOSOKAWA Tatsumi
1994-10-01 02:56:21 +00:00
swallace
071d84b9b9 add new sound files to kernel config file list 1994-10-01 02:36:24 +00:00
swallace
bd9a762333 Use Voxware's new 2.90 soundcard.h.
NOTE:  2.9 is backwards compatable with programs compiled with older
soundcard.h, but new programs compiled with 2.9 will not work on pre-2.9
sound drivers.
1994-10-01 02:32:23 +00:00
swallace
3b7740a11f Merged in changes to Hannu Savolainen's VoxWare sound drivers, version 2.9. 1994-10-01 02:17:17 +00:00
swallace
c2da264914 This commit was generated by cvs2svn to compensate for changes in r3252,
which included commits to RCS files with non-trunk default branches.
1994-10-01 01:33:47 +00:00
swallace
bfb60afe65 Hannu Savolainen's VoxWare original sound drivers, version 2.9. 1994-10-01 01:33:47 +00:00
swallace
fb6da4893c Hannu Savolainen's VoxWare original sound drivers, version 2.9. 1994-10-01 01:33:47 +00:00
wollman
e0985aae7e Correct DEC -> Digital Equipment Corporation. 1994-10-01 00:18:53 +00:00
swallace
0835249aca Add #ifndef ALLOW_CONFLICT_IRQ
Reviewed by:	jkh
1994-09-30 05:35:55 +00:00
ache
a83f1d347b Log SA_CORE signals
Obtained from: FreeBSD 1.x
1994-09-30 00:38:34 +00:00
sos
c438251e56 Oops, forgot one patch for the changed selwakeup, fixed. 1994-09-29 21:11:29 +00:00
ache
5d7c4c64ff Fix broken FAT_CURSOR support, don't set cursor shape on VGA 1994-09-29 15:49:09 +00:00
csgr
656c1d99a7 Do strip -x of kernel
Obtained from:1.1.5.1
1994-09-29 14:02:40 +00:00
sos
b4b2ad573d Added pcaselect call. 1994-09-29 08:59:33 +00:00
sos
cab475507f Changed header sligthly. 1994-09-29 08:31:39 +00:00
sos
8f1e1e2a1a Changed header slightly. 1994-09-29 08:29:21 +00:00
sos
d3edb28dc2 Updated pcaudio.c to latest from 1.1.5.1
Enabled timer reprogramming in clock.c (this could use more work).

Obtained from: FreeBSD-1.1.5.1
1994-09-29 08:24:45 +00:00
wollman
3418b20e52 Fixed bug in hardclock() that caused adjtime() to fail when given
a negative offset.  This would be seen in xntpd as a rash of
``Previous time adjustment didn't complete'' messages on startup.
1994-09-29 00:52:06 +00:00
wollman
f04cd875db GENERIC*: remove commented-out options; the user should have to do
/some/ research to figure out how to turn them on.

LINT: better description of TCP_COMPAT_42: ``emulate 4.2BSD TCP bugs''.
1994-09-28 22:57:24 +00:00
wollman
bb4185a6aa LKMs are no longer options, so remove the `options LKM' from LINT. 1994-09-28 22:51:54 +00:00
dg
e86c0206e9 Now that LKM is standard, PROCFS isn't needed in the GENERIC kernels
either.
1994-09-28 22:49:54 +00:00
dg
67a9ab27de The FDESC filesystem is definately not needed in the GENERIC kernels. 1994-09-28 22:46:22 +00:00
wollman
0f24b2046a LKM support is no longer optional. 1994-09-28 22:45:04 +00:00
wollman
f7f00d52e8 Disable MFS as loadable until someone figures out how to make it work. 1994-09-28 22:16:27 +00:00
se
badfdbfc1a Reviewed by: Julian Elischer / Jordan K. Hubbard
Changes are only effective, if NEW_SCSICONF is defined:

1) Added u_int16 quirks to struct scsi_link for device quirks.
2) Added void *devmodes to struct scsi_link for tape density modes.
3) Modified selectdev() to return first full match (with wildcard).

With this patch all device dependent configuration is done in one place
(scsiconf.c), while there were some specifications in st.c and some
hardware dependent drivers (ie. ncr.c) before.
1994-09-28 20:16:45 +00:00
phk
59934affab A potential panic, found by adding declarations. 1994-09-28 19:55:10 +00:00
phk
ee374e9243 Added a %p to printf & friends, same thing as 0x%08x but more with the
potiential to make a warning from gcc more useful.
1994-09-28 19:22:32 +00:00
phk
ad1c6ca62b #include ddb.h not db_output.h 1994-09-28 19:16:24 +00:00
sef
e13a0afdfd Get rid of parentheses in version stuff. Use 2.0.0-Development instead. 1994-09-28 18:26:02 +00:00
se
cd2cee44a9 Added entries for PCI and NCR device drivers. 1994-09-28 17:00:14 +00:00
dfr
57b6c0c34c Make NFS ask the filesystems for directory cookies instead of making them
itself.
1994-09-28 16:45:22 +00:00
se
c49750310f Submitted by: Wolfgang Stanglmeier <wolf@dentaro.GUN.de>
New version with improved support for WIDE SCSI using the NCR 53c825.
Test for buggy secondary cache implementations.
PCI Int to IRQ mapping now specified per slot.
1994-09-28 16:34:13 +00:00
jkh
e2a0f2a7e4 Make bt_timeout() match proper calling conventions - thank you -W! 1994-09-28 16:23:13 +00:00
jkh
86acbaa967 Re-port over all of Atsushi Murai's 32bit support and various and sundry
improvements from 1.1.5.1.  I tried to compile a kernel without BOUNCE_BUFFERS
with the previous version for my Bt946c and it puked and died.  Bringing
these enhancements back in allows the faster controllers to DTRT while
still not messing up the older ISA/broken VLB controllers, since
bounce-buffering is still the default.  In theory, anyway.  Bt445S and Bt545S
folks should start testing this ASAP!  (actually, Bt445C and Bt545C folks
even more so!).
1994-09-28 15:55:35 +00:00
bde
5d7666d68b Ensure normal selection and alignment of the text and data sections before
including files.  vector.s sometimes left the data section misaligned
(depending on the configuration) so all the time-critical globals in icu.s
were sometimes misaligned.
1994-09-28 03:37:49 +00:00
phk
5187120fbe A minor slip, ktrnamei() is void, not int. 1994-09-27 21:26:56 +00:00
dg
4f97017177 Previous commit should have read ...in vm_page_alloc_contig().
...(this commit): moved initialization of 'start' to make it more clear
that it is initialized properly (also in vm_page_alloc_contig).
Reviewed by:
Submitted by:
Obtained from:
1994-09-27 20:49:02 +00:00
dg
e513bd35af Fixed another bug, and cleaned up the code. 1994-09-27 20:45:24 +00:00
phk
77843a901a Added declarations, fixed bugs due to missing decls. At least one of them
could panic a system. (I know, it paniced mine!).
1994-09-27 20:42:59 +00:00
phk
5c792336a6 ktrace.c: added decl of ktrnamei
lkm.h:	   added decl of lkmdispatch
mount.h:   added decl of vfs_busy,vfs_unbusy
syscall:   The "created from" changed.
1994-09-27 20:39:54 +00:00
phk
f5a12741b5 Added
options                DIAGNOSTIC
 options                MSDOSFS_DEBUG
1994-09-27 20:36:26 +00:00
phk
2f56b9ec91 Added include of <machine/cons.h> so that cngetc() gets declared. 1994-09-27 20:35:55 +00:00
phk
d0ad392702 Moved the "relookup" routine into vfs_lookup.c from ufs/ufs/ufs_vnops.c.
Several FS's use this, so it doesn't belong in ufs.  (unionfs, msdosfs and ufs)
1994-09-27 20:33:41 +00:00
dg
9aaca324b5 Fixed multiple bugs in previous version of vm_page_alloc_contig. 1994-09-27 19:34:16 +00:00
dg
cefcba07fb 1) New "vm_page_alloc_contig" routine by me.
2) Created a new vm_page flag "PG_FREE" to help track free pages.
3) Use PG_FREE flag to detect inconsistencies in a few places.
1994-09-27 18:00:29 +00:00
dg
54a697ba7c First round of changes to get the sound code working in 2.0. 1994-09-27 17:58:30 +00:00
dg
0b0fbe4d94 Woops, wrong solution to the problem. Backed out previous fix to ddb.h, and
nuked the db_printf() declaration from db_output.h.
Reviewed by:
Submitted by:
Obtained from:
1994-09-27 12:15:56 +00:00
dg
ae77edd20e Nuked db_printf() prototype; it now clashes with the one in db_output.h. 1994-09-27 12:11:09 +00:00
ache
066066b3d9 Bug fixed: cursor shaping in mode swithching produce wrong results for
non-fat cursors, cursor_start goes beyond font size.
1994-09-27 11:40:02 +00:00
phk
e3b14acab7 Makes gcc silent in sys/ddb. 1994-09-27 03:34:58 +00:00
ache
9a50506be2 Refuse text mode switching when proper font not loaded 1994-09-27 01:50:07 +00:00
wollman
4f2f437be2 Lots of kernel code requires vnodE_if.h, so provide code to generate it
if requested.  LKMs which need it should use:

SRCS+=	vnode_if.h
CLEANFILES+= vnode_if.h vnode_if.c

These rules were already present for VFS LKMs; now they are enabled all
the time.  (VFS LKMs do not need the fragment above; it is still done for them.)
1994-09-26 22:34:04 +00:00
dg
8369f70aad Process accounting implementation by Chris Demetriou, with minor local
changes.

Obtained from:	NetBSD
1994-09-26 21:09:15 +00:00
pst
40864c38bc Make Cyrix CPU flush internal cache any time it goes into hold state.
(Meant to commit this a long time ago... oh well).
1994-09-26 16:56:22 +00:00
jkh
b5324bb13a Jim Babb's port of the AIC6360 driver.
Submitted by:	babb
Obtained from:  NetBSD
1994-09-26 16:15:45 +00:00
jkh
998114bc72 Jim Babb's port of the AIC6360 code.
Submitted by:	babb
Obtained from:  NetBSD
1994-09-26 16:15:06 +00:00
phk
ddacaf4e0d init_sysent.c was missing the final newline. 1994-09-26 03:27:22 +00:00
gpalmer
bbe71d3b98 Alterations to silence gcc -Wall. Some unused variables deleted.
Reviewed by:	davidg
1994-09-26 00:32:59 +00:00
phk
ac191c91ff An ifdef almost hit where it was supposed to go. Joerg owes me a good
German beer I think...
1994-09-25 23:37:38 +00:00
dg
3da89b9a18 Removed unimplemented subr_rmap.c and unused references to it. 1994-09-25 22:31:11 +00:00
dg
2bffa61402 Inlined ins/outs functions.
Obtained from:	NetBSD
1994-09-25 21:31:55 +00:00
dg
f13b791bdb Undo last change: the ins/outs functions DO NOT return a pointer! 1994-09-25 20:03:41 +00:00
phk
f73f358983 While in the real world, I had a bad case of being swapped out for a lot of
cycles.  While waiting there I added a lot of the extra ()'s I have, (I have
never used LISP to any extent).  So I compiled the kernel with -Wall and
shut up a lot of "suggest you add ()'s", removed a bunch of unused var's
and added a couple of declarations here and there.  Having a lap-top is
highly recommended.  My kernel still runs, yell at me if you kernel breaks.
1994-09-25 19:34:02 +00:00
joerg
4e6658ed0d Copied over the transfer speed definitions from sys/i386/isa/fdreg.h.
This is needed for having the fdformat program no longer searching
non-public include paths.
Protect the definitions in fdreg.h against double inclusion.
1994-09-25 18:42:23 +00:00
joerg
6af51c66ed Copied over the transfer speed definitions from sys/i386/isa/fdreg.h.
This is needed for having the fdformat program no longer searching
non-public include paths.
1994-09-25 18:41:21 +00:00
dg
58356f67d6 Extended minor number to include bits 16-31. It was done this way rather
than making it 16bit and extending the major to 16bit because doing that
would have caused problems with existing filesystems /dev entries. This
change should have no apparant side effects.
This change is needed for the DOS partition re-work and other things.

Submitted by:	Bruce Evans
1994-09-25 15:56:25 +00:00
sos
9762a2e3ae LKM for ibcs2 support 1994-09-25 08:52:14 +00:00
sos
64d698fbe9 Added support for EXEC type modules. 1994-09-25 08:51:07 +00:00
phk
194f2d78ca Made the kernel 256 bytes smaller by removing a unused
u_char  bt_scratch_buf[256];
doesn't affect the file-size though :-(
1994-09-25 07:11:37 +00:00