Commit Graph

4526 Commits

Author SHA1 Message Date
markm
79b9c69957 1) ifdef out some unused functions (for now)
2) improve 586 support
3) add 686 support
4) clean up comments etc
Submitted by:	bde
1995-12-29 08:04:32 +00:00
jkh
254869b3f4 Make a couple of options that hurt when they're removed more
carefully noted.
1995-12-29 02:04:20 +00:00
dg
5f2491a2da Remove some bogus externs. 1995-12-29 01:12:02 +00:00
peter
62f633a631 Add the attempted DMA address to the 'DMA beyond end of ISA' message so that
we can see if it's a small distance beyond the end, or way out. This may
give some clues as to whether it is being caused by something coalescing
the transfers in spite of the bounce buffers, or simply because of buffer
corruption.  (The BT driver seems to occasionally get hit by from this too,
except that it does not trap the transfer, and the system panics later
with vm_bounce_page_free.)  This "event" usually happens to me during a
savecore (on the rare occasion that a kernel coredump is actually taken
after a crash - the lack of kernel core dumps is another problem...).
1995-12-29 00:30:06 +00:00
dg
f1d6b97db7 Made bzero a function vector and added a 586/686 optimized version of
bzero.
Deprecated blkclr (removed it).
Removed some old cruft from cpufunc.h.

The optimized bzero was submitted by Torbjorn Granlund <tege@matematik.su.se>
The kernel adaption and other changes by me.
1995-12-28 23:34:30 +00:00
dg
102fe26c6a Made bzero a function vector and added a 586/686 optimized version of
bzero.
Deprecated blkclr (removed it).
Removed some old cruft from cpufunc.h.

The optimized bzero was submitted by Torbjorn Granlund <tege@matematik.su.se>
The kernel adaption and other changes by me.
1995-12-28 23:14:40 +00:00
phk
2991bbce58 Don't print swap server as root server.
Submitted by:	Mattias.Gronlund@sa.erisoft.se (Mattias Gronlund)
1995-12-28 21:56:49 +00:00
dg
482333e68f Fix one more label that I overlooked with the P6 support. Sigh. 1995-12-28 21:01:54 +00:00
markm
759619ec43 1) Add #include <machine/cpu.h> to catch some 586 #defines
2) swap the 2 arguments to outb (kato)
Pointed out by: Kato Takenori <kato@eclogite.eps.nagoya-u.ac.jp>
1995-12-28 17:09:14 +00:00
se
81784b0603 Preserve SIGP bit when clearing INTF condition.
Submitted by:	Gerard Roudier <groudier@htlm.fr>
1995-12-28 13:04:03 +00:00
ache
7a62d3bb4d Add more disc_optim calls to track line disc changes 1995-12-28 11:58:35 +00:00
jkh
d046612fef Gack - if you're going to call semexit() from elsewhere, it shouldn't
be static.. :-)
1995-12-28 01:31:38 +00:00
asami
bcd430b53f Added $Id$. 1995-12-28 00:22:45 +00:00
asami
94b25826a3 Added parity flag. 1995-12-28 00:18:35 +00:00
dg
6b2ff3fdc9 Update bcopyb & bcopy to reflect changes I made in the libc version of
bcopy:

Be smarter about handling overlapped copies and only go backwards if it
is really necessary. Going backwards on a P6 is much slower than forwards
and it's a little slower on a P5. Also moved the count mask and 'std'
down a few lines - it's a couple percent faster this way on a P5.
1995-12-27 18:54:51 +00:00
pst
e9380ac251 Add NEC CDR 210 to list of devices with broken LUN support 1995-12-27 17:07:12 +00:00
bde
5865dfdfe7 Finished removing MACH_KERNEL stuff. 1995-12-27 16:16:02 +00:00
joerg
93a2bf7703 Call semexit() from exit(), in order to process `undo vectors'.
This function has actually never been called.
1995-12-27 15:25:30 +00:00
markm
c5d5c6d237 random_machdep.c: New version, also includes revectored interrupts, rather
than hooking permanently.
vector.s:       : Remove the interrupt hook. This is done dynamically, now.
1995-12-27 11:22:05 +00:00
markm
74527dd128 Clean up and make more universal. Next version of random device. 1995-12-27 11:19:41 +00:00
markm
4686e7539f Modify the ioctl to handle revectored interrupts for the entropy gatherers. 1995-12-27 11:18:29 +00:00
asami
4090118092 This commit was generated by cvs2svn to compensate for changes in r13053,
which included commits to RCS files with non-trunk default branches.
1995-12-27 11:01:45 +00:00
asami
5af76fbf19 ccdvar.h from NetBSD-1.1. 1995-12-27 11:01:45 +00:00
asami
dbb28d7d47 Changes to make it work on FreeBSD-2.1. 1995-12-27 10:53:21 +00:00
asami
d34ddb975e ccd.c and ccd.4 from NetBSD-current circa 12/25/95. 1995-12-27 10:49:19 +00:00
asami
af033b7bbc This commit was generated by cvs2svn to compensate for changes in r13041,
which included commits to RCS files with non-trunk default branches.
1995-12-27 10:49:19 +00:00
asami
afa3f75484 ccd.c and ccd.4 from NetBSD-current circa 12/25/95. 1995-12-27 10:49:19 +00:00
peter
e8640f37cd Add an entry for the NEC CDROM:55 drive to stop it answering all 7 LUNS. 1995-12-26 21:08:39 +00:00
joerg
02325f659c I report a problem about shmget(). (I'm using FreeBSD-2.1.0R)
int shmget(key_t key, int size, int shmflg);

If the 'key' has already existed in the system and set 'shmflg'
as '(IPC_CREAT|IPC_EXC)', then shmget() must return the error 'EEXIST'.

Submitted by:	m_tanaka@pa.yokogawa.co.jp (Mihoko Tanaka)
1995-12-26 16:03:32 +00:00
bde
c7d8218f03 Removed nonexistent option AUTO_EOI_1. 1995-12-26 14:01:16 +00:00
bde
49ed6a09d1 Removed almost all traces of libkern.a. The objects that were in
libkern.a are now specified by listing their source files in
files.${MACHINE}.  The list is machine-dependent to save space.
All the necessary object for each machine must be linked into the
kernel in case an lkm wants one.
1995-12-26 13:58:31 +00:00
bde
6a0ace8bd0 Added prototypes. 1995-12-26 13:25:13 +00:00
bde
30090aa281 Renamed isa/random.c to isa/random_machdep.c to avoid a conflict with
libkern/random.c.
1995-12-26 12:50:24 +00:00
bde
b5a75e1d63 Unstaticized addupc_task(). It is supposed to be called from trap().
See the comments for addupc_intr() and the NetBSD implementation.
We use dummy versions of fuswintr() and susiwintr(), so addupc_intr()
always pushes the work to trap() (this is inefficient), and trap()
calls the special i386 function addupc() instead of addupc_task().
addupc() is more efficient than addupc_intr(), so some of the lost
efficiency is recovered.  However, addupc() may be broken on plain
i386's since it doesn't check for write permission like copyout().
1995-12-26 01:21:39 +00:00
bde
31a03a6e78 Finished staticizing of timevalfix(). 1995-12-26 01:07:42 +00:00
dg
24418113db Fix a lable goofup I made in the previous P6 support changes. 1995-12-25 14:40:49 +00:00
bde
01f94ecaac Fixed staticizing. Some functions aren't static but depend on
the undocumented previously unLINTed option `APM_SLOWSTART'.
1995-12-25 07:38:47 +00:00
bde
7c875c02aa Removed redundant (incompletely staticized) declararations. 1995-12-25 07:24:13 +00:00
dg
310ee49bfe Fix typo in CPUCLASS. 1995-12-25 01:02:32 +00:00
dg
ccd7a804c8 Added device fxp0 (device driver for Intel EtherExpress Pro/100). 1995-12-24 08:13:23 +00:00
dg
2f09ba0ba3 Added I686_CPU. 1995-12-24 08:11:46 +00:00
dg
86c06a33bb Add Pentium Pro CPU detection and special handling. For now, all the
optimizations we have for 586s also apply to 686s...this will be fine-
tuned in the future as appropriate.
1995-12-24 08:10:52 +00:00
dg
3236ea0039 Made "AUTO_EOI_1" standard. auto-EOI on the master ICU is a documented
feature of the ICU. auto-EOI on the slave is not safe, however, so it
remains an option. Killed religious FASTER_NOP when writing the ICU.

Reviewed by:	bde
1995-12-23 16:53:57 +00:00
dg
9fc588db48 Use FASTER_NOP rather than NOP in rtcin() - only one inb delay was ever
needed.
Reviewed by:	bde
1995-12-23 16:46:31 +00:00
bde
0894c06144 Added undocumented option DEBUG so that debugging code gets maintained
or deleted.

Motivated by:	`int doclusteread = 1;' in ext2_vnops.c redefined
doclusterread if DEBUG is defined, so it could not have worked.
This was fixed by staticizing things before it caused problems.
I didn't find any more cases like this.
1995-12-22 18:44:07 +00:00
bde
0b2bdcf0e2 Staticized code that was hidden by `#ifdef DEBUG'. 1995-12-22 18:21:26 +00:00
bde
d9c3bcb21b Increased the double fault stack size from 512 to PAGE_SIZE. This is
wasteful, but better than clobbering the variables below the stack.
About 300 bytes of variables were clobbered when I examined double
faults using ddb.  Perhaps a page that is known not to be accessed by
the double fault handler could be used.  Such pages are not easy to
find, since the double fault handler calls panic() which calls sync()
and possibly dumpsys().
1995-12-22 18:17:34 +00:00
bde
b58d77177b Fixed prototyping and staticizing for -DDEBUG case. 1995-12-22 17:56:37 +00:00
bde
bcb4171cfa Fixed syntax errors caused by EXCEPTION() when DEBUG is defined.
Added includes to get the prototype for printf() when DEBUG is defined.
1995-12-22 16:53:48 +00:00
bde
09649d7d2b Changed the definition of DEBUG to agree with -DDEBUG to avoid warnings
when DEBUG is an option.
1995-12-22 16:08:15 +00:00