Bruce Evans
2c703b3e86
Only disable sio3 by default.
1996-05-01 03:26:58 +00:00
Stefan Eßer
e20df7fc31
Make pcibus_check() ignore Device/Vendor IDs of all 0.
1996-04-30 21:37:21 +00:00
Poul-Henning Kamp
68c1eb1215
pte.h: Add the VADDR(pdi,pti) macro to construct virtual address from
...
page dir+table index.
pmap.h: remove NUPDE, it was wrong and not used. Sanitize KSTKPTEOFF.
vmparam.h: Calculate virtual addr from PDI+PTI from pmap.h rather than
using magic math. Remove UPDT, not used.
1996-04-30 12:02:12 +00:00
Poul-Henning Kamp
d783aa7bc3
Remove a spurious mapping that was introduced earlier.
1996-04-30 11:58:56 +00:00
Jordan K. Hubbard
9773398d95
Add ATAPI_STATIC so that the ATAPI cdroms work correctly again
...
under -current.
Submitted-By: Serge Vakulenko <vak@cronyx.ru>
1996-04-29 20:03:41 +00:00
Poul-Henning Kamp
3e86a2edb8
Fix some bugs I introduced and some old ones as well.
...
Add BDE_DEBUGGER back.
Improve quality of comments.
Thanks Bruce!
Reviewed by: phk
Submitted by: bde
1996-04-28 07:14:05 +00:00
Bruce Evans
f4c626074b
Fixed a bug introoduced in the previous change. ISA device memory was
...
mapped to semi-random place(s) depending on the content(s) of physical
address 0xA0000. This was fatal at least on my system with a some
memory-mapped devices. Console syscons somehow wasn't affected. It
bogusly hardcodes the address. Sigh.
1996-04-26 22:26:45 +00:00
Poul-Henning Kamp
1a0e8e31c6
A significant debogofication of locore.s. I havn't found any actualy
...
bugs, but it is a lot easier to navigate this twisted code now.
1996-04-26 13:47:39 +00:00
Poul-Henning Kamp
68832d3037
Fix cpu_fork for real.
...
Suggested by: bde
1996-04-25 06:20:19 +00:00
Nate Williams
e597b4972e
- add apm to the GENERIC kernel (disabled by default), and add some comments
...
regarding apm to LINT
- Disabled the statistics clock on machines which have an APM BIOS and
have the options "APM_BROKEN_STATCLOCK" enabled (which is default
in GENERIC now)
- move around some of the code in clock.c dealing with the rtc to make
it more obvios the effects of disabling the statistics clock
Reviewed by: bde
1996-04-22 19:40:28 +00:00
John Dyson
7847cec1b7
This fixes a troubling oversight in some of the pmap code enhancements.
...
One of the manifiestations of the problem includes the -4 RSS problem
in ps.
Reviewed by: dyson
Submitted by: Stephen McKay <syssgm@devetir.qld.gov.au>
1996-04-22 05:23:08 +00:00
Justin T. Gibbs
1d7ded8adf
Change the devconf description from "ISA or EISA bus" to "ISA bus" now
...
that we have eisaconf.
1996-04-20 21:22:32 +00:00
Poul-Henning Kamp
6f1e6c97de
savectx returns through cpu_switch in case of the child, so it must
...
return void just like cpu_switch. Fix prototype and usage from machdep.c
1996-04-19 07:28:04 +00:00
Poul-Henning Kamp
7d2392141d
Fix a bogon. cpu_fork & savectx ecpected cpu_switch to restore %eax,
...
they shouldn't.
1996-04-18 21:34:53 +00:00
Nate Williams
6bb76283e0
Added a disabled psm0 (PS/2) mouse device, using the new 'disable'
...
keyword.
1996-04-18 04:02:30 +00:00
Bruce Evans
0513ce7f75
Use PCB_SAVEFPU_SIZE instead of a too-small size in savectx(). This
...
bug only affected FPU emulators. It might have caused bogus FPU states
in core dumps and in the child pcb after a fork. Emulated FPU states
in core dumps don't work for other reasons, and the child FPU state
is reinitialized by exec, so the problem might not have caused any
noticeable affects.
Cleaned up #includes.
1996-04-13 11:24:13 +00:00
Bruce Evans
5b5220556d
Generate #define of PCB_SAVEFPU_SIZE for use in savectx().
1996-04-13 11:22:57 +00:00
Poul-Henning Kamp
22a31706dc
Make alltraps a .globl so that DDB doesn't make people belive they have
...
an ALIGNFLT on their hands all the time.
1996-04-12 12:22:14 +00:00
Bruce Evans
3745f80a48
Moved AUTO_EOI_[12] and most sio and pcvt options out of the makefile.
1996-04-11 21:18:49 +00:00
Jordan K. Hubbard
7506b46e07
Disable sio3 in GENERIC - it messes with ATI cards.
1996-04-10 23:03:36 +00:00
Nate Williams
9368fc2012
hp300 -> i386
1996-04-10 05:27:11 +00:00
Jordan K. Hubbard
dbb315cb8e
Gag! Somebody removed the bus mouse from GENERIC for reasons unknown.
...
That certainly explains why I noticed it suddenly missing from the
2.2 SNAPSHOT! :-)
1996-04-09 09:00:41 +00:00
Sujal Patel
1dce4e5d60
Add a lock for DMA Channels to prevent two devices from using the same DMA
...
channel at the same time. The functions isa_dma_acquire() and
isa_dma_release() should be used in all ISA drivers which call isa_dmastart().
This can be used more generally to register the usage of DMA channels in
any driver, but it is required for drivers using isa_dmastart() and friends.
Clean up sanity checks, error messages, etc.
Remove isa_dmadone_nobounce(), it is no longer needed
Reviewed by: bde
1996-04-08 19:38:57 +00:00
Garrett Wollman
dadd5f3a95
Added a $Id$ keyword. Bruce still needs to put a copyright notice
...
on this file.
1996-04-08 16:41:06 +00:00
Bruce Evans
3fd674e22b
Use breakpoint() function instead of inline assembler.
1996-04-07 18:34:59 +00:00
Bruce Evans
5dbd168e2e
Changed bdb() to breakpoint() and always enable it.
...
Made the style more consistent, especially for the new Pentium functions.
1996-04-07 18:30:56 +00:00
Bruce Evans
6ffde942bf
Removed never-used #includes of <machine/cpu.h>. Many were apparently
...
copied from bad examples.
1996-04-07 17:39:28 +00:00
Bruce Evans
3157adc8af
Removed now-unused #includes of <machine/cpu.h>. They were for bootverbose
...
being declared in the wrong place.
1996-04-07 17:32:42 +00:00
Bruce Evans
73dc05d67c
Moved declaration of bootverbose to a better place. It isn't
...
machine-dependent.
Moved declaration of cpu_fork() to a better place. Only its
implementation is machine-dependent.
1996-04-07 16:44:28 +00:00
Bruce Evans
5e0f6c4338
Fixed the ownership and permissions of /dev/io. Rev.1.32 broke rev.1.29.
1996-04-07 14:59:26 +00:00
John Dyson
07b1059113
Major cleanups for the pmap code.
1996-04-07 02:23:05 +00:00
David Greenman
baddaf9480
Switch 586/686 back to generic_bzero and #if 0'd the "optimized" code. It
...
turns out that it actually reduces performance in real-world cases.
Noticed by: bde
1996-04-06 01:06:06 +00:00
Andrey A. Chernov
2cb9219c5d
Fix adjkerntz expression priority
1996-04-05 18:56:10 +00:00
Andrey A. Chernov
fe0d5f43c5
Add wall_cmos_clock sysctl variable, needed to manage adjkerntz even for
...
UTC cmos clocks (needed for Local Timezone FSes)
1996-04-05 03:36:31 +00:00
John Dyson
030ad08012
Fixed a problem that the UPAGES of a process were being run down
...
in a suboptimal manner. I had also noticed some panics that appeared
to be at least superficially caused by this problem. Also, included
are some minor mods to support more general handling of page table page
faulting. More details in a future commit.
1996-04-03 05:23:44 +00:00
Marc G. Fournier
f28213ad1d
Convert from using devfs_add_devsw() to devfs_add_devswf()
...
Fixed Permissions/Ownership in DEVFS to reflect /dev
1996-04-01 21:02:14 +00:00
David Greenman
909e5e0e77
Change if/goto into a while loop.
1996-03-31 23:00:32 +00:00
Bruce Evans
048cd610ad
Finished removing NOP macros.
1996-03-31 04:17:25 +00:00
Bruce Evans
ef9805a3c8
Moved rtcin() to clock.c.
...
Always delay using one inb(0x84) after each i/o in rtcin() - don't
do this conditional on the bogus option DUMMY_NOPS not being defined.
If you want an optionally slightly faster rtcin() again, then inline
it and use a better named option or sysctl variable. It only needs
to be fast in rtcintr().
1996-03-31 04:05:36 +00:00
Bruce Evans
5d170d7eb8
Killed religous FASTER_NOP again.
1996-03-31 03:31:29 +00:00
Bruce Evans
a680ab7537
Count PCI irqs in up to 4 ISAish counters named `pci irqnn' instead of
...
in the clk0 counter.
Reviewed by: s
1996-03-29 15:01:51 +00:00
Bruce Evans
78966e20d9
Parenthesized macros.
...
Fixed munged tabs.
1996-03-29 14:14:07 +00:00
Garrett Wollman
28dc3d2757
>Blush<. Use the correct opcode for the WRMSR instruction.
1996-03-28 20:39:45 +00:00
Garrett Wollman
f7ff248201
Teach the disassembler about the 0f,3x family of instructions
...
(RDMSR, RDTSC, WRMSR, and RDPMC).
1996-03-28 20:35:03 +00:00
John Dyson
4e489ec421
Remove a now unnecessary prototype from pmap.c. Also remove now
...
unnecessary vm_fault's of page table pages in trap.c.
1996-03-28 05:40:58 +00:00
John Dyson
208bfdc98b
Significant code cleanup, and some performance improvement. Also,
...
mlock will now work properly without killing the system.
1996-03-28 04:59:34 +00:00
Bruce Evans
3dffe3c5f6
Fixed permissions of /devfs/*random.
...
Fixed group and permissions of /devfs/perfmon.
1996-03-27 19:04:55 +00:00
Bruce Evans
ba00d77a82
Print stack pointer and frame pointer in trap messages.
...
Fixed "trace/trap" message.
Reviewed by: davidg
1996-03-27 17:33:39 +00:00
Bruce Evans
8102fcda9b
Eliminated dependency on opt_sysvipc.h.
1996-03-27 17:21:57 +00:00
Bruce Evans
6d72aad8a7
Removed vestiges of dummy frame at top of tmpstk.
...
Use alignment macros where appropriate.
Cleaned up #includes.
1996-03-27 17:16:29 +00:00