Commit Graph

2268 Commits

Author SHA1 Message Date
mycroft 4c3aafc732 Fix typo in previous changes. 1995-04-26 00:00:23 +00:00
cgd fab3d7b117 kill a bogus NOTREACHED, fix spacing 1995-04-24 06:24:19 +00:00
christos c5f01c2a4c Fixed comparison in SYS__syscall to be against sysent instead of
p->p_emul->e_sysent [Thanks Charles for pointing this out].
I think that this code needs to be fixed anyway for emulations where
SYS_syscall is not the same number as the NetBSD one (0)... (Only the
alpha port so far?)
1995-04-22 20:49:06 +00:00
christos de42a28a1b - added sunos_machdep.c for sun3, atari, amiga and mac68k.
- changed machdep.c and trap.c to use struct emul.
- remove ep_setup references.
- added struct emul to all emulations.
1995-04-22 20:24:40 +00:00
mycroft 20cf41aa94 Clean this up a bit:
* Abstract the conditional for immediate port numbers, and make it always
false if not optimizing.
* Add some whitespace to the string functions to make them more readable.
1995-04-22 03:59:59 +00:00
mycroft ca88acc618 Fix an oversight. 1995-04-22 01:25:41 +00:00
mycroft fb82503a03 Fix some outdated comments. 1995-04-22 00:58:19 +00:00
mycroft c78d8f5e0b Replace btl with testl. 1995-04-22 00:54:21 +00:00
mycroft 4cd20dfe0a Move some comments to more appropriate places. 1995-04-22 00:30:47 +00:00
mycroft 9dbd0e8627 Use vfs_shutdown(). 1995-04-21 21:56:59 +00:00
mycroft b4813fa24a Alias delay() to DELAY() for mi code. 1995-04-21 21:56:01 +00:00
mycroft b5eab728c1 Make this compile again. 1995-04-21 19:44:52 +00:00
mycroft 305ed29ba1 Remove profiling constants that are no longer needed. 1995-04-21 09:17:23 +00:00
mycroft 99a3edf2ea Move cpu_reset() from vm_machdep.c to machdep.c, and make it more robust. 1995-04-21 09:15:23 +00:00
mycroft 30e61f6c45 Make RB_KBD work again. 1995-04-21 07:56:40 +00:00
mycroft 7d349f24fb Clean up init386() a bit. 1995-04-21 07:53:52 +00:00
mycroft e530f4d515 Remove 486-specific CR0 changes into identifycpu(). 1995-04-21 06:43:18 +00:00
mycroft e4ab9f94f9 Remove the (unused) extra mapping of the first 1MB. Undo the double-mapping
of the first 4MB earlier.
1995-04-21 06:23:51 +00:00
mycroft 8190c2e3e7 Clean up hole conversion functions a little. 1995-04-21 05:21:37 +00:00
mycroft d3672cc33f We need isa_machdep.h for now. 1995-04-21 05:10:02 +00:00
mycroft d3971b501d Remove relocation of Crtat from locore. 1995-04-21 04:51:30 +00:00
mycroft 0ded4e4007 pttty -> ptytty 1995-04-19 22:35:40 +00:00
mycroft 943618dbe5 Fix thinko in previous commit. 1995-04-19 22:08:08 +00:00
mycroft 8854e7193d Remove d_reset, and change the uses of d_ttys as appropriate. 1995-04-19 19:22:15 +00:00
mycroft 53d73c77a5 Garbage collect #includes. 1995-04-19 19:10:35 +00:00
mycroft 5e398279f4 Using cloning specs for rtfps subdevices. 1995-04-19 19:08:52 +00:00
mycroft 1f599fe30b Using cloning specs for ast subdevices. 1995-04-19 19:07:33 +00:00
mycroft 4c28b7cb87 Change `needs-count' to `needs-flag'. 1995-04-19 19:02:54 +00:00
mycroft aed68a1067 Implement pctty(). 1995-04-19 18:33:27 +00:00
mycroft b665ddf808 Implement pctty(). 1995-04-19 18:10:47 +00:00
cgd eb1375b9c2 fix my IPL level off-by-one. also, rename intr_disestablish to
isa_intr_disestablish like i meant to before.
1995-04-19 06:14:13 +00:00
cgd 19c27da954 comment out the scd major declaration 1995-04-19 02:54:12 +00:00
mycroft 6bb01cf7de Remove deprecated md prober/probew/kernacc/useracc. 1995-04-19 01:17:11 +00:00
mycroft 82120d943b Finish updating for new interrupt registration mechanism. 1995-04-18 02:25:18 +00:00
mycroft 8874fd61ca Update to match generic ISA changes. 1995-04-18 00:59:53 +00:00
brezak 1b8667f0aa Add config for PSS 1995-04-17 22:44:38 +00:00
cgd 15552a0e17 if_le conflicts with the Alpha; move description back to i386 1995-04-17 20:23:32 +00:00
cgd 6495969b94 use included files wherever possible. 1995-04-17 16:58:14 +00:00
cgd 8fe775c0de useless, as of the new sound drivers. 1995-04-17 15:29:06 +00:00
cgd dfeb819b45 move sound drivers to their proper homes. 1995-04-17 15:28:30 +00:00
cgd cf1c3ea213 these belong in dev/isa; they're being moved there now. 1995-04-17 15:22:27 +00:00
cgd c0caf19aac oops; forgot to delete this with my ISA autoconfig changes earlier 1995-04-17 15:17:24 +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
cgd 236ef3f326 include PCI machine-independent files list 1995-04-17 07:45:29 +00:00
cgd 14d777dff7 allow most program names to be overridden. kill a bogus } in a comment, and
an unnecessary blank line.
1995-04-17 07:30:54 +00:00
cgd 5f2be04d8e use CC="cc -Werror" for cc; kill bogus COMUNIT option 1995-04-17 07:23:50 +00:00
cgd 1b917f3802 use CC="cc -Werror" for cc 1995-04-17 07:23:34 +00:00
mycroft 865e910590 Remove extra EMUL_IBCS2 case. 1995-04-14 23:30:54 +00:00
mycroft 72adfee7f7 EMUL_IBCS2_ELF -> EMUL_SVR4; EMUL_IBCS2_{COFF,XOUT} -> EMUL_IBCS2 1995-04-13 20:48:14 +00:00
mycroft 451b445e1e Fix compiler warnings. 1995-04-13 19:36:00 +00:00
mycroft ed647f250b This hasn't been used for a long time. 1995-04-12 22:14:06 +00:00
mycroft 7e37bbe000 UPAGES --> USPACE 1995-04-12 15:38:09 +00:00
mellon df78dbb096 Reference cninit.c as well as cons.c 1995-04-11 09:52:11 +00:00
mycroft 3e37e7dece Remove `dma from mcd, and add scd (though its not ready yet. 1995-04-10 18:50:55 +00:00
mycroft 1ae952ad0f Remove bogus return values from void functions. 1995-04-10 18:08:45 +00:00
mycroft e25c1817cf kernel_pmap --> pmap_kernel() 1995-04-10 13:08:28 +00:00
mycroft 22cefc03bc Bring back pmap_kernel(), for now always inlined as a pointer to
kernel_pmap_store.
1995-04-10 12:41:29 +00:00
mycroft 127e0761c9 Add mmopen(), mmclose(), and mmmmap() where appropriate. Lock vmmap when
needed.  Make types consistent.
1995-04-10 11:54:47 +00:00
mycroft d751b03236 Minor consistency nits. 1995-04-10 10:01:40 +00:00
mycroft f8f99c94a1 Fdclose --> fdclose; no longer conflicts. 1995-04-10 04:18:14 +00:00
mycroft 1b3587f158 Minor changes to match hp300 version. 1995-04-10 04:17:12 +00:00
mycroft 3f22df0746 Declare all return types. 1995-04-10 01:56:41 +00:00
mycroft 0b734c8881 Minor stylistic changes. 1995-04-10 01:26:43 +00:00
mycroft 9c41e0f2f2 Most of the console functions return void. 1995-04-10 01:07:16 +00:00
mycroft 374185caff Most of the console functions return void. 1995-04-10 01:01:40 +00:00
mycroft 84de5b1135 Update to make con[fs].h. 1995-04-10 00:50:50 +00:00
mycroft e957423a98 Move fp_except and fp_rnd definitions to machine/include. 1995-04-09 21:31:58 +00:00
fvdl fb00b736fd Arch dependant defs for Linux. Just signal stackframe definition for now. 1995-04-07 22:31:19 +00:00
fvdl 46de9a804f Changes because of proper Linux signal stackframe building, and
seperate signal trampoline code. Ugly hack in trap.c no longer
needed.
1995-04-07 22:29:34 +00:00
fvdl a3ff5bc0aa Add arch/i386/i386/linux_machdep.c 1995-04-07 22:25:41 +00:00
jtc ec2bda0f0b Changed FLT_ROUNDS from constant to a call to __flt_rounds(), so that the
current rounding mode is accurately reported.
1995-04-07 15:00:54 +00:00
christos 0fd8f81d69 Reorganization of the signal frame and ucontext to make it shareable with
the sparc code. Added trap defines.
1995-03-31 02:51:37 +00:00
christos d736bba447 Changes to make svr4 emulation signal() to work, and minor cleanup in trap.c 1995-03-31 02:49:25 +00:00
jtc 8ba211cde0 Added #define _KERNEL 1995-03-28 18:37:27 +00:00
jtc 71ab4ed9dc KERNEL -> _KERNEL 1995-03-28 18:13:48 +00:00
mycroft 445c619523 Make this lighter. 1995-03-26 16:36:12 +00:00
cgd fa2133533d invoke ktrsyscall with (vp, code, argsize, args) as args. 1995-03-26 08:03:29 +00:00
mycroft c7cee0e9b6 . 1995-03-25 00:46:42 +00:00
mycroft ff6c206c3f Use void* rather than caddr_t in many places. 1995-03-25 00:00:53 +00:00
mycroft 10512e87fa All of the audio drivers need DMA. 1995-03-24 22:47:39 +00:00
jtc f86410093b Changed name of __weak_reference() to __indr_reference(). They really
are indirect references, and I want to add a real __weak_reference()
macro to <machine/cdefs.h> soon.
1995-03-23 19:58:48 +00:00
jtc d57fb977bb Added -D_KERNEL to CFLAGS alongside each -DKERNEL. 1995-03-23 19:46:18 +00:00
mycroft 86feec27e6 In T_PAGEFLT, check for null proc pointer before dereferencing it. 1995-03-22 23:25:13 +00:00
mycroft 5abce26266 Add a missing dependency. 1995-03-22 15:10:04 +00:00
brezak 331f0252c6 Fix probing of slave devices and remove unneeded ffs()'s 1995-03-21 14:05:28 +00:00
cgd b8403d582b don't be so quick to cast macro arguments to unsigned; if the
arguments are really off_t's (e.g. to btodb), then you can lose
information.  This was the "> 4G file systems don't work" bug; physio
uses btodb, which was broken.
1995-03-18 07:22:43 +00:00
glass 15642dad87 update 1995-03-16 16:37:41 +00:00
brezak 8193ffc379 Add support for PAS 16 basic 1995-03-15 18:45:58 +00:00
glass af46d07f24 fix compilation error. don't bother checking for IRQ2 1995-03-15 16:43:09 +00:00
brezak 36fa07bde5 Fixes defect port-i386/860 from John Woods (jfw@jfwhome.funhouse.com) with
supplied patch. Kernel will not link with only ProAudio Spectrum driver
specified.
1995-03-14 18:43:19 +00:00
brezak f3226ad49e Fixes defect port-i386/864 from John Woods (jfw@jfwhome.funhouse.com) with
supplied patch. pas.c doesn't recognize ProAudio Spectrum 16 Basic card.
1995-03-14 18:41:36 +00:00
scottb fc0e015f22 added code to remap BSD errno to iBCS2 errno 1995-03-14 14:43:59 +00:00
scottb 02083108db added entries for new ibcs2 files 1995-03-14 14:42:09 +00:00
brezak 7ce1465911 Fix SB8 playback. From David Gluss <david@pure.com> 1995-03-13 14:37:12 +00:00
brezak 1c9582b63e Add IRQ 9 as a valid IRQ 1995-03-13 14:29:11 +00:00
mycroft b83b02cc20 Remove unneeded variable. 1995-03-12 12:09:18 +00:00
mycroft b9cb1cdd51 Update version number. 1995-03-12 00:13:47 +00:00
mycroft 40a71a0a2c Various minor cleanup. 1995-03-12 00:10:53 +00:00
ws 999d50b578 Initialize emulation in systems without NPX 1995-03-11 18:42:42 +00:00
glass fc2c13bcb4 add COMPAT_LINUX 1995-03-11 10:12:25 +00:00
mycroft 936d442143 Fix another oversight. 1995-03-10 12:20:37 +00:00
mycroft b9e30291a4 Fix oversight in previous change. 1995-03-10 10:56:16 +00:00
mycroft d004d5d34c Remove something I don't use. 1995-03-09 11:32:33 +00:00
mycroft dc3d752c6c Fix last arg to scdebug_ret(). 1995-03-09 08:59:45 +00:00
brezak 83fffa3985 Cleanup for SB16 (From Jan Sparud) 1995-03-08 18:27:35 +00:00
mycroft 80d817b8de Fix some types:
* code, args, and rval should use register_t.
* argsize should be a size_t.
Small optimization to the Linux compat code, and don't blindly fail on if
the argument list size is invalid.
1995-03-08 07:12:28 +00:00
mycroft d227b8e43c Update to reflect the state of the world. 1995-03-05 22:32:54 +00:00
mycroft 8868f2b126 Turn off writing to the message buffer before outputting dump information. 1995-03-05 22:20:37 +00:00
mycroft a6275a4782 Fix oversight in previous change. 1995-03-03 06:09:01 +00:00
glass 1351103cc2 vn->vnd 1995-03-02 09:11:33 +00:00
mycroft 4c34be6b52 Clean up deleted files. 1995-03-01 00:00:00 +00:00
cgd 8bb0b6790c translate signal numbers for linux compat bins. 1995-02-28 23:21:45 +00:00
cgd 727c7f6f71 linux syscall arg gathering, handling, and return. 1995-02-28 23:18:03 +00:00
cgd 0e305fb3f7 add linux compat files, included on COMPAT_LINUX 1995-02-28 23:10:28 +00:00
brezak 63d3904bce Use irq directly not as a mask 1995-02-28 21:47:42 +00:00
brezak 190e2004e6 New audio drivers 1995-02-21 21:49:10 +00:00
mycroft 906d699af5 Make the twiddler like libsa. 1995-02-21 06:34:58 +00:00
brezak 559df5705c PSS driver; needs testing with config.new 1995-02-21 04:15:03 +00:00
brezak 39b8de8e12 Driver for Windows sound system; not extensively tested 1995-02-21 02:28:42 +00:00
brezak 32eec53a2d SoundBlaster driver for SB, SB16 and SBPRO 1995-02-21 02:28:06 +00:00
brezak a70ae7273c PAS driver; uses SB emulation for now 1995-02-21 02:27:18 +00:00
brezak 977594d1a9 Driver for ad1848 codec 1995-02-21 02:26:39 +00:00
brezak 1f5bdc75a9 New audio subsystem 1995-02-21 01:35:58 +00:00
glass d162458aeb oops 1995-02-19 04:26:16 +00:00
glass b6c0555406 add my test machine...with math emulation turned on 1995-02-19 03:44:21 +00:00
mycroft 040fdadc3b Fix some old typos. 1995-02-11 21:57:39 +00:00
mycroft 57096ff707 Fix handling of out of range addresses in fu/su functions. 1995-02-11 21:51:12 +00:00
mycroft 50310df340 Reinstate cdev_pc_init(). 1995-02-09 19:04:13 +00:00
mycroft df9c1209cf Remove [fs]ui{byte,word}(). 1995-02-08 14:54:12 +00:00
mycroft a2b696a920 Remove a quite outdated comment. 1995-02-05 15:46:58 +00:00
mycroft 831f8a121e Yet another optimization... 1995-02-05 14:54:18 +00:00
mycroft 336db78312 Fix disassembly of `cmpxchg' instructions. 1995-02-05 13:59:38 +00:00
mycroft a493139d39 Get rid of the silly `.byte's. 1995-02-05 13:13:42 +00:00
mycroft 229a077003 Add `cpuid' instruction. 1995-02-05 13:07:54 +00:00
mycroft 194305265e Remove an old comment concerning %gs. 1995-02-05 01:41:33 +00:00
mycroft a00897da65 Another optimization... 1995-02-05 01:06:50 +00:00
mycroft 52f420ddc6 Clean up suswintr(). 1995-02-04 15:02:28 +00:00
mycroft 3d41c85ecc A few more nits... 1995-02-04 14:54:57 +00:00
mycroft 546c427b3e Remove some dead code. 1995-02-04 14:24:05 +00:00
mycroft 27675561a8 Optimize copyout*() more, and avoid using %gs. 1995-02-04 14:23:00 +00:00
mycroft 2bc213f176 Make pmap_next_page() a bit safer. 1995-02-03 10:16:35 +00:00
mycroft 8b843bd96c Round biosbasemem and biosextmem down to a whole page. 1995-02-02 19:42:18 +00:00
christos bbcbf6ccbf Added defines for svr4_sysarch() 1995-02-01 01:40:25 +00:00
christos 73861db7bb Added svr4_sysarch() [experimental]
Fixed so that the setcontext call restores the signal stack completely.
1995-02-01 01:39:43 +00:00
mycroft 37a654295e Clean up deleted files. 1995-01-29 07:37:56 +00:00
cgd cf83d9e090 lip service to making ISA support machine-independent. This is the first
round: moving the drivers into a machine-independent directory.
Some drivers (e.g. fd.c) not moved because they use other pc features (e.g.
CMOS settings), and none of the non-driver files moved, because they're
still pretty much PC specific.
1995-01-29 07:37:37 +00:00
mycroft 1e719386a7 Clean up deleted files. 1995-01-29 02:58:32 +00:00
cgd f11e7e33fe use chip headers in /dev/ic 1995-01-29 02:58:20 +00:00
jtc 830a53e394 ANSI says that <stdarg.h>'s va_end macro must expand to a void expression.
For consistancy, I'm changing <varargs.h> too.
1995-01-28 01:51:46 +00:00
mycroft dcfbdf711d Clean up deleted files. 1995-01-27 06:06:02 +00:00
cgd b9af116931 move eisa stuff to /sys/dev 1995-01-27 06:06:00 +00:00
cgd a4f53186e8 move mi pci files to /sys/dev 1995-01-27 05:46:41 +00:00
mycroft 38c309142a Clean up deleted files. 1995-01-27 05:46:40 +00:00
cgd 249527c4f1 move mi pci files to /sys/dev 1995-01-27 05:46:39 +00:00
mycroft 7b87637bb3 Rearrange struct reg to match what the rest of the world expects. 1995-01-26 18:12:03 +00:00
mycroft c5d5ca8150 Don't check the control port at all; too unreliable. 1995-01-26 07:35:49 +00:00
mycroft 431ccddc77 Remove redundant assignments. 1995-01-26 06:35:42 +00:00
mycroft 087a52f4f5 Various cleanup. 1995-01-26 06:23:02 +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 c0e2bd26f1 Initialize the new xmit state correctly. From Rafal Boni. 1995-01-26 04:13:23 +00:00
cgd 015dc20943 assign disk number for vnd. oops; thought i did this yesterday(?) 1995-01-25 23:41:04 +00:00
cgd b56a5f27d4 add 'maxpartitions' keyword as first 'intesting' thing in the file, to
facilitate the solution of config.new's hardcoded partition number
problems.
1995-01-25 20:45:33 +00:00
cgd 2a06f1bc2d vn -> vnd renaming, for consistency. 1995-01-25 04:58:12 +00:00
cgd 2ef4ca1f3d vn -> vnd renaming, for consistency 1995-01-25 04:48:07 +00:00
christos cf1d6b55f3 Modify the floating point part of our context to reflect reality. 1995-01-25 04:18:52 +00:00
cgd f2b2aeb217 serial console 1995-01-25 00:10:35 +00:00
mycroft 57f2c598c7 Various changes from Rafal Boni to improve performance and reliability. Also,
clean up the formatting a little more.
1995-01-23 04:50:08 +00:00
mycroft 01ce8db055 Fix the problem with identifying cards on warm boot. Partly from Greg Hudson. 1995-01-22 07:37:28 +00:00
mycroft 3dddacd1ce Rearrange tests so `offline' has higher priority than `out of paper'. 1995-01-22 00:12:39 +00:00
jtc 9540190d45 This file, which will be included by <sys/cdefs.h>, will contain macros
such as __warn_references() and __weak_reference() which are actually
machine dependant.  This will make it easier for ports that are being
bootstraped with ELF and ECOFF based toolchains.

This change also introduces a new macro, _C_LABEL(x).  _C_LABEL expands
its argument, an identifier, to a character string of the identifier
name as it is represented in an object file.

For most ports, _C_LABEL(x) will expand to "_x", for ELF based ports
_C_LABEL(x) will expand to "x".
1995-01-19 01:38:36 +00:00
mycroft c18d708d01 Note changes. 1995-01-18 18:10:39 +00:00
mycroft 02354ddc3c Keep the sti/cli pairs completely inside {real,prot}_to_{prot,real}. 1995-01-18 17:50:50 +00:00
mycroft 4fabcbda57 Remove two useless instructions. 1995-01-18 17:34:18 +00:00
mycroft 799aaa55c3 Various cleanup:
Use the global version of asm.h.
Move `boot2' into the first sector.
Replace `ouraddr' with `ourseg'.
1995-01-18 17:28:13 +00:00
mycroft 7377f34093 Clean up deleted files. 1995-01-18 17:28:12 +00:00
mycroft 373ace5180 Various cleanup:
Use the global version of asm.h.
Move `boot2' into the first sector.
Replace `ouraddr' with `ourseg'.
1995-01-18 17:28:07 +00:00
mycroft bb563c9eec Do I/O through iobuf rather than address 0, where applicable. Avoid an extra
copy in devread().
1995-01-18 16:22:35 +00:00
mycroft 46adfb5ac4 Eliminate extra arguments to some functions. 1995-01-18 15:46:34 +00:00
mycroft 37a27b27ac Minor change. 1995-01-18 15:42:30 +00:00
mycroft 2cc5da69ef Minor rearrangement. 1995-01-18 15:09:55 +00:00
mycroft 68c1a35cd9 Initialize host_stat and target_stat properly. 1995-01-18 04:20:16 +00:00
mycroft ef7e46cf77 24 more bytes... 1995-01-18 03:13:37 +00:00
mycroft d5eea96416 Save another 80 bytes, and clean up the code a little. 1995-01-18 02:54:23 +00:00
mycroft 61f1304243 44 bytes smaller. 1995-01-18 01:54:25 +00:00
mycroft 48ab9c0f4b Make the twiddler 32 bytes smaller, but still have it twirl. 1995-01-17 04:49:27 +00:00
mycroft 52f079131b Incorporate recent changes from Wolfgang. Recognize the 815. 1995-01-16 21:48:35 +00:00
mycroft 9d591ad660 More updates to EISA stuff. 1995-01-16 12:23:47 +00:00
mycroft 4d9bd0fedf Update EISA stuff. 1995-01-16 12:00:47 +00:00
mycroft 58828fe20e For now, continue to treat EISA devices as ISA. Also, add boca. 1995-01-16 11:51:40 +00:00
mycroft fcdbd2bd7b Remove outdated comment. 1995-01-16 10:36:26 +00:00
mycroft 87b741e26f Some general cleanup, and add support for serial terminals, `#ifdef SERIAL'. 1995-01-16 02:50:32 +00:00
mycroft beb97d8b0a Use getc(), not getchar(). 1995-01-16 02:21:15 +00:00
mycroft 7e500c7455 Recode the input routine a bit. Handle DEL like backspace. 1995-01-16 02:19:09 +00:00
mycroft 746b390617 Faster version, by me. 1995-01-15 23:20:33 +00:00
cgd 8eb9e3f4db trim it a bit to match reality. get completely rid of things not likely
to ever be wanted in this machine's kernel.
1995-01-15 10:04:21 +00:00
mycroft 1044df1576 Add some commentary to the previous. 1995-01-15 03:33:25 +00:00
mycroft b08d9a004d Fix slight oversight in previous. 1995-01-15 03:29:05 +00:00
mycroft 178fb5f48c Oops. Correct asm() spec. 1995-01-15 02:19:12 +00:00
mycroft 1aace6baa6 Duplicate sigreturn() changes. 1995-01-15 02:12:14 +00:00
mycroft 70e588a0f1 Remove prototype of check_selectors(). 1995-01-15 02:11:23 +00:00
mycroft 98fc96ea40 Add some commentary on the previous. 1995-01-15 01:15:04 +00:00
mycroft ecef8fddfa Remove PSL_USERCLR, and add a PSL_USERSTATIC. Change the bit descriptions to
more closely match the 386 manual.  (Probably the mnemonics should be changed,
too.)
1995-01-15 00:57:50 +00:00
mycroft c7c817b91a sigreturn() and ptrace() security violations will now trap. Deal with those
traps by looking at the instruction stream and the stack to see if it looks
like we're returning to user mode, and if so pop to the hooks in locore.s.
This will fail in the case where a pop %ds or pop %es faults when returning
from a fast interrupt, but this should not be possible.
1995-01-15 00:55:25 +00:00
mycroft 3e8850eab2 Enable CR0_AM on 486s. (We already handled the fault.) This would be more
useful if it applied to the kernel.
Avoid btrl when checking AST flag.
Add hooks to recover from errors during any INTRFASTEXIT and simulate a user-
level protection fault.
1995-01-15 00:52:21 +00:00
mycroft c26ad3af41 Cosmetic changes, and use db_printf() rather than printf(). 1995-01-15 00:46:38 +00:00
mycroft 8476bee7b5 Do the eflags security check in a cheaper way. Just check that the privilege
level of the return cs is correct; don't check the other selectors.  (Will
fault later if they are invalid.)
1995-01-15 00:44:19 +00:00
mycroft da79b43eae Move the existing frame pointer calculation into a separate helper function.
Eventually this should cause the child to be swapped in if necessary.
Do the eflags security check in cheaper way.
1995-01-15 00:42:01 +00:00
mycroft a2dafd0821 Avoid using btrl, and check astpending before the return cs, because it's
faster and usually false.
1995-01-15 00:36:37 +00:00
mycroft 87d587e640 Simplify some sanity checks. 1995-01-13 14:46:44 +00:00
mycroft 4740006541 Oops. 1995-01-13 14:05:17 +00:00
mycroft 705f6e0337 *** empty log message *** 1995-01-13 13:19:34 +00:00
mycroft 1e5cd9212d (Almost) allow sector sizes other than 512 bytes. Reduce some expensive operations. 1995-01-13 12:30:59 +00:00
mycroft 7bb384b66c Avoid some repeated multiplications. 1995-01-13 11:14:27 +00:00
mycroft 7650bd97fc Always boundary check I/O. 1995-01-13 10:46:32 +00:00
mycroft c541b630fc Add a sc_bcount, similar to wd.c. 1995-01-13 10:35:58 +00:00
mycroft a0303980c2 Calculate b_cylin correctly for different block sizes. 1995-01-13 10:30:08 +00:00
mycroft 0033c975c6 Fix another bug in the DMA code. 1995-01-13 10:22:58 +00:00
mycroft fda9731199 Further cleanup. Back out part of the previous; it's the device's
responsibility to check for partial blocks.
1995-01-13 09:57:39 +00:00
mycroft 4abdb375bc Minor rearrangement. 1995-01-13 09:40:21 +00:00
mycroft c2bc310a37 Change the way sc_skip is used. Fix a bug in the (incomplete) DMA code. Add a
new sc_blkno (which will be useful later).
1995-01-13 08:58:16 +00:00
mycroft da7d74e3dc Fix typos. 1995-01-13 08:37:25 +00:00
mycroft 1f758ca55c Fix typo. 1995-01-13 08:31:46 +00:00
mycroft ca84c10497 Only allow opening one density at a time. 1995-01-13 08:29:25 +00:00
mycroft 04a1fc8816 Change the way b_cylin and sc_track (now sc_cylin) are used slightly.
If transfer goes past end of disk, truncate it.
1995-01-13 07:57:01 +00:00
mycroft dc63598a7f Clean up bounds_check_with_label(). Round request to sector size in label,
and return EINVAL if bcount is less than the sector size or negative.
1995-01-13 06:51:38 +00:00
mycroft 8ba4c5fca1 Add boca, makeoptions. 1995-01-11 20:59:50 +00:00
pk 0a22930d97 Explicitly test the RXRDY status bit on incoming characters. 1995-01-11 09:56:40 +00:00
jtc d7a8b2964f Only define sig_atomic_t when _ANSI_SOURCE is defined. 1995-01-10 19:01:00 +00:00
ws 3e0b9f0694 Implement symbolic links (plus a minor fix for %x printing) 1995-01-09 22:13:10 +00:00
mycroft 7af86b7eb7 Copy physlock code from SPARC port, and some minor cleaning. 1995-01-09 09:13:09 +00:00
christos b006bf7e68 Added missing forward declaration 1995-01-09 01:05:24 +00:00
christos e1c97cde06 New file for signal handling and {g,s}etcontext(). 1995-01-08 21:23:31 +00:00
christos 7c056bd334 New svr4_machdep.c for svr4 signal handling.
Made check_selectors global, to be used by the
svr4 code.
Removed unused variable.
Modified sendsig() to call the svr4_sendsig().
1995-01-08 21:22:16 +00:00
christos 66cc79dbc4 New svr4_machdep.c 1995-01-08 21:18:48 +00:00
mycroft e06bc8c13e Don't issue a controller self-test... 1995-01-07 22:48:29 +00:00
mycroft 06b0414491 Actually, do the ID reset in elink_reset(). 1995-01-07 21:37:54 +00:00
mycroft 37e16c5747 Don't print line numbers in most of the diagnostics. 1995-01-07 06:49:35 +00:00
mycroft d4f91d51a9 Fix a race condition between normal I/O and wd_get_parms(). 1995-01-07 03:07:22 +00:00
mycroft 7f61bec5cd Cosmetic changes, to look more like the new esp.c will. 1995-01-07 01:51:07 +00:00
mycroft ba288b4ae1 Do the reset in the individual drivers, not in elink_idseq(). 1995-01-06 21:41:26 +00:00
mycroft 290ed068ab Remove many of the `static's, to facilitate debugging. 1995-01-04 09:02:32 +00:00
mycroft 6125e1b551 Fix oversight in previous. 1995-01-04 00:47:53 +00:00
mycroft 9e499d41b3 \
These files have been 99% rewritten from the original ast driver.  Add an
appropriate copyright notice.
1995-01-03 22:38:54 +00:00
mycroft 0349c5b9e0 Add a multiplexer for BOCA serial boards. 1995-01-03 22:26:36 +00:00
hpeyerl 09834a5bd3 This is correct according to the docs on both cards.
Doesn't seem to make any difference to the known problems though.
1995-01-03 05:04:04 +00:00
mycroft a987158712 Add interrupt sharing types. 1995-01-03 03:56:09 +00:00
mycroft b6c8a9a4e9 Update intr_establish() prototype. 1995-01-03 03:14:35 +00:00
mycroft 93a0c4a258 Add interrupt sharing types. 1995-01-03 01:42:11 +00:00
mycroft b5cf1b5ddd Add interrupt sharing types. 1995-01-03 01:30:14 +00:00
mycroft d16dcced99 Add interrupt sharing types. 1995-01-03 01:19:19 +00:00
mycroft 326830c1ba Use direct config for subdevices. 1995-01-02 22:27:46 +00:00
mycroft e148dc7a64 Move setting of sc_maddr so soft config works. 1995-01-02 22:01:05 +00:00
mycroft a774fa6fe5 Use soft configuration when possible. 1995-01-02 21:57:04 +00:00
mycroft 3a967fcbb6 More cleanup. 1995-01-02 21:27:27 +00:00
mycroft 72dec3b548 Various cleanup. 1995-01-02 20:54:01 +00:00
mycroft 3a74796b3e Need isareg.h. 1995-01-02 20:39:35 +00:00
mycroft 894bb9145f Use soft configuration where possible. 1995-01-02 20:32:55 +00:00
mycroft 2d5b04744a Don't assume ia_maddr is in the hole. 1995-01-02 20:06:29 +00:00
mycroft 76b0b02cc3 Fix non-serious typo. 1994-12-31 05:34:00 +00:00
cgd 7b8535b554 do the right thing with strange-sized varargs objects. 1994-12-28 22:45:42 +00:00
mycroft ff315ba9a4 Don't turn on the SCE bit in the enable register. 1994-12-28 19:45:41 +00:00
mycroft 8fd135209c Numerous changes. Many bugs fixed, better autoconfig, a few new features. 1994-12-28 19:42:47 +00:00
hpeyerl 262b425866 temporary warning until I get new docs. 1994-12-28 16:47:50 +00:00
cgd e5049f4d59 make the definition of _JBLEN mach. dep. header-dependent. 1994-12-20 10:36:27 +00:00
mycroft ce06e718ad Fix flags to isa_dmastart(). 1994-12-17 18:45:11 +00:00
mycroft ab77439747 Clean up constab stuff a little. 1994-12-16 04:19:13 +00:00
mycroft 52d8d259fd Add a bt. 1994-12-15 16:14:50 +00:00
mycroft a7393f95f3 Remove fp arg to d_open. 1994-12-14 18:52:32 +00:00
mycroft ca65f2ce5d Remove dkbad.h. 1994-12-14 15:17:22 +00:00
mycroft aeda11fc40 Remove the d_subtype frobnication. It was clearly broken, and not very
useful.
1994-12-13 15:31:54 +00:00
mycroft 05e78f1424 Add empty pcstop(). 1994-12-13 13:42:53 +00:00
mycroft e694663b46 Make the diagnostics less cryptic. 1994-12-12 04:43:51 +00:00
mycroft 3e4a358e28 Patch from Thomas Eberhardt to make PCnet-32 chips work. 1994-12-12 04:39:52 +00:00
mycroft 995e676d90 Add `flags 1' to ast subdevices, as pointed out by John Kohl. 1994-12-11 16:20:48 +00:00
christos 303841c92e 3c509 fixes to avoid adapter getting stuck in high traffic conditions.
I don't particularly like the fixes, but at least now the 3c509 never
gets stuck. On the other hand, performance still sucks in some cases.
1994-12-10 14:52:02 +00:00
mycroft 793e542f89 Fix format of attach message. 1994-12-10 05:55:26 +00:00
mycroft 1acd9ddb90 Speed up FPU task switching some more. 1994-12-10 00:28:18 +00:00
mycroft 957694159f Correct a couple of things... 1994-12-08 20:55:05 +00:00
glass 2227b302cf update 1994-12-06 06:59:01 +00:00
mycroft 8d87220928 Don't ignore the exit status of ld(1). 1994-12-06 06:07:39 +00:00
mycroft 6d6a24357a Compile with -g. 1994-12-06 05:02:26 +00:00
mycroft 1e0e6d72c9 Conditionalize the audio driver on NAUDIO, not NSB, now that the former
exists.
1994-12-05 05:45:38 +00:00
mycroft e92233c07c Deal correctly with esym being 0. 1994-12-04 07:37:27 +00:00
mycroft c3b944cb15 Use correct select routine for audio. 1994-12-04 06:32:39 +00:00
mycroft 8e6f464987 fdclose -> Fdclose 1994-12-03 15:17:06 +00:00
mycroft 5c3d80060d Reset the entire PSL, not just part of it. 1994-12-03 14:55:51 +00:00
mycroft 73afee1973 We don't need the extra space to preserve the BIOS variables any more. 1994-12-02 03:02:49 +00:00
mycroft 8fd1f92ae7 Don't futz with the cursor shape unless we really, really need to. 1994-12-01 11:12:04 +00:00
mycroft 211b002017 Ignore ERR during diagnostics. 1994-12-01 10:45:26 +00:00
mycroft 434d451672 Adjust dump calculation to avoid sign problems. 1994-12-01 09:53:38 +00:00
mycroft 6686f7f263 Rework detection a bit, and check for the Pentium fdiv bug. 1994-11-30 04:42:07 +00:00
mycroft c72f58d401 Don't need to turn on emulation when npx not present; we leave it off always. 1994-11-30 04:26:06 +00:00
mycroft 867ebf1d84 Clear the controller active flag after a timeout. 1994-11-30 02:32:03 +00:00
mycroft 5584ff927f Don't stall the queue on CHECK SENSE if we get a reselect while selecting. 1994-11-30 02:08:01 +00:00
mycroft 639a64de08 Fix a null pointer reference. 1994-11-29 21:35:13 +00:00
mycroft 51bed8d804 Add an assertion mechanism to check for more abnormal conditions. 1994-11-29 21:29:56 +00:00
mycroft 58cb5339d6 For consistency... 1994-11-29 20:57:28 +00:00
mycroft 41b26a6dfd Handle BUS FREE phase a little differently, to get better error detection. Other
cleanup.
1994-11-29 20:08:27 +00:00
mycroft bb90feebac Disable debugging breakpoints by default. 1994-11-29 17:56:49 +00:00
mycroft 5ac2484d95 * Redo most of the message and phase state machines. Multiple pending
message outs should now work correctly (including retransmissions).
Multiple messages ins should be more efficient.  Missing REQ after
reselection phase should now (correctly) cause a wait with ENREQINIT
set.

* Abstract out the reselection out sequence, and use it directly to
get sense info.  (This is somewhat faster than the generic done/sched
sequence.)

* If there are no ACBs available, wait interruptibly for one.

* Leave the interrupt registers alone during message in/out; just
watch for phase change.  Don't (incorrectly) reenable interrupts
during data in/out; defer that to aicintr().

* Handle command pointer per SCSI 2 spec.

* Other minor coding improvements.
1994-11-29 17:50:39 +00:00