mycroft
7f6d0eaf9b
Put #includes in the right order.
1996-01-07 02:00:31 +00:00
mycroft
3da4b2a160
The IST_* and IPL_* constants are not bus-specific; don't treat them as such.
...
Change splimp -> splnet in Ethernet, ARCnet, and FDDI drivers.
1995-12-24 02:29:35 +00:00
mycroft
25f53a986f
Add USERMODE() and KERNELMODE() macros, and use them.
1995-10-10 04:45:03 +00:00
mycroft
f2d15e5b48
Remove unneeded input operands to fnsave(), fnstcw(), and fnstsw().
1995-10-05 23:06:15 +00:00
mycroft
bc59b73733
Merge npxinit() into npxdna(), and remove duplicated code.
1995-08-06 19:48:58 +00:00
mycroft
b725d8b30b
Update the comment describing how this works.
1995-08-06 19:31:49 +00:00
mycroft
ef504e724d
Fix oversight in previous.
1995-08-06 18:05:22 +00:00
mycroft
d730fead60
Eliminate direct uses of curproc in npxdna() and npxinit().
1995-08-06 17:59:10 +00:00
mycroft
a326c49adf
Stop using cr0 to flag that the FPU has not been used.
1995-08-06 06:05:28 +00:00
mycroft
ce7cc0c18a
Move the `used fpu' flag into mdproc, so it can be referenced when a process
...
is swapped out. Implement process_{read,write}_fpregs.
1995-08-06 05:32:59 +00:00
mycroft
0175317fc3
If we decide to use IRQ 13, explicitly turn off CR0_NE to be sure.
1995-05-04 00:30:56 +00:00
mycroft
94f4346537
Update a comment to match that last change.
1995-05-04 00:20:40 +00:00
mycroft
f0a42753e4
npxinit() should not be called during autoconfig now. Watch for this
...
condition.
1995-05-04 00:16:40 +00:00
mycroft
e03a827a0a
Move some comments from before npxsave1() to before npxsave().
1995-05-04 00:00:25 +00:00
mycroft
bfef4c14c5
Slight rearrangement, to make the TS handling easier to follow.
1995-05-03 23:09:37 +00:00
mycroft
e772f7c5ef
Set PCB_USEDFPU.
1995-05-03 00:09:13 +00:00
mycroft
87b25c7f5c
Update to match include files. Eliminate _ucodesel, _udatasel, and IdlePTD.
1995-05-01 08:25:30 +00:00
mycroft
17a5f987ba
Be more aggressive about lazy saving and initialization.
1995-05-01 04:47:43 +00:00
cgd
8a640328ed
clean up several ISA device interfaces: autoconfiguration, header
...
inclusion, and interrupt configuration. more work still needs to be done,
but it's getting better...
1995-04-17 12:06:30 +00:00
mycroft
431ccddc77
Remove redundant assignments.
1995-01-26 06:35:42 +00:00
mycroft
133ff42fa2
Introduce a `npx_softc' to make this driver more normal. Some other minor
...
cleanup.
1995-01-26 06:14:14 +00:00
mycroft
b5cf1b5ddd
Add interrupt sharing types.
1995-01-03 01:30:14 +00:00
mycroft
6686f7f263
Rework detection a bit, and check for the Pentium fdiv bug.
1994-11-30 04:42:07 +00:00
mycroft
35cdd801e6
Convert port, IRQ, and DRQ numbers to ints.
1994-11-18 21:57:40 +00:00
mycroft
d254e95680
Garbage collect some variables which are no longer used.
1994-11-07 10:19:28 +00:00
mycroft
d5f99262a9
Since npxdna() and npxsave() are only ever called at spl0 now, we can get rid
...
of all the overhead of frobbing the IDT, and just use a simple flag to tell
npxintr() to ignore interrupts. This allows lots of code reduction.
Also, update some comments and add some DIAGNOSTIC code to detect is these
assumptions ever become wrong.
1994-11-07 03:39:37 +00:00
mycroft
5133a6cfd7
Only save the FPU state if somebody else needs the FPU, or when forking.
1994-11-06 23:43:17 +00:00
mycroft
1ec8f8d19c
Make IRQ_SLAVE a plain number, too, and remove IRQ{0-15}.
1994-11-04 19:13:49 +00:00
mycroft
29414c5a0a
Change all of the uses of IRQ{0-15} and bit masks to use plain numbers
...
rather than bit shifting.
1994-11-04 18:34:50 +00:00
mycroft
d0163400d1
Update to match autoconfig code.
1994-11-03 23:21:24 +00:00
cgd
022ee8f7fe
new RCS ID format.
1994-10-27 04:14:23 +00:00
mycroft
7be5732f87
Implement new system call entry method. Clean up all of the IDT frobnication
...
code.
1994-10-26 01:30:59 +00:00
deraadt
e9aa986658
nice little colons
1994-06-28 07:55:25 +00:00
cgd
a0a7429482
lots of changes: prototype migration, move lots of variables, definitions,
...
and structure elements around. kill some unnecessary type and macro
definitions. standardize clock handling. More changes than you'd want.
1994-05-05 05:35:42 +00:00
mycroft
2f66816d8b
Rename two files.
1994-04-24 01:34:05 +00:00
mycroft
3f5e4f423f
Implement dynamic IRQ configuration and IRQ sharing. Inline spl*() calls.
...
Reorganize and clean up the relevant code.
1994-04-07 06:48:19 +00:00
mycroft
10466baa67
npxexit() doesn't need its arg.
1994-04-05 17:57:02 +00:00
mycroft
936d23aa7a
Don't bother checking npxproc on exit.
1994-04-05 08:02:09 +00:00
mycroft
592ec61b17
Updates for new autoconfig.
1994-03-29 04:35:37 +00:00
mycroft
0c082bcaf8
DELAY() --> delay(). This is not a macro.
1994-03-06 17:18:43 +00:00
mycroft
9fc021a30e
Add a magic DELAY() in the reset sequence which causes the ITT 387 to not.
...
From Brian de Alwis.
1994-03-03 22:22:51 +00:00
mycroft
c0e772492e
Inline all the [lr]cr[023]() `functions' in cpufunc.h.
1994-01-03 16:21:48 +00:00
mycroft
6cbf9be7da
Use cpufunc.h only where (currently) needed.
1993-12-20 09:11:38 +00:00
mycroft
f2a0b4b335
Canonicalize all #includes, and add pio.h where appropriate.
1993-12-20 09:05:17 +00:00
mycroft
335014be84
Increment cnt.v_trap in npxintr().
1993-12-20 05:30:55 +00:00
brezak
cb098b5eb0
Changes to use a trap frame for syscalls.
1993-09-16 03:24:13 +00:00
cgd
330f5907f2
say "using exception 16" rather than "exception 16"; the latter
...
lookes like it could be an error message...
1993-06-14 07:06:49 +00:00
proven
02dc05dd99
Cleaned up a little.
1993-05-27 02:12:28 +00:00
proven
8d60a2631f
Compiles with gcc-2.3.3 now.
1993-05-26 18:58:11 +00:00
cgd
bcbeb2f225
require MATH_EMUALATE to be defined if you want to use the emulator
1993-05-20 14:35:11 +00:00