Commit Graph

7671 Commits

Author SHA1 Message Date
cgd
4a04bbaa09 add a facility by which to register 'hooks' to be run at shutdown time. 1995-05-31 20:41:44 +00:00
mycroft
a54e2ffa20 Add IPPROTO_IP. Fix comment for IP_MULTICAST_IF. 1995-05-31 07:39:33 +00:00
mycroft
f49ddb8b04 Implement IGMP v2. Based on the Multicast 3.5 distribution. 1995-05-31 06:08:17 +00:00
jonathan
ae4eae4f63 Change reference in asm code from `__mcount'' to `___mcount'', to be
consistent with the (default) prepending of underscores to identifiers.

Because this reference is inside an ASM string it's too hairy to
conditionalize to support different toolchains that don't prepend underscores.
(Just don't do profiling with  such  toolchains.)
1995-05-31 00:25:06 +00:00
jonathan
8a93b408d6 Fix BPF bit-rot in receive side of pmax/dev/if_le.c: prepend ether header. 1995-05-31 00:15:46 +00:00
briggs
0b3271404c Make genassym depend on its C source. 1995-05-31 00:09:55 +00:00
pk
ff6265b288 Remove useless msgbufmapped definition.
Two cases of incorrect addressing while not mapped at KERNBASE.
Some more sun4m stuff.
1995-05-30 20:29:42 +00:00
mycroft
e9f4bff2cc Add prototype. 1995-05-30 18:55:28 +00:00
mycroft
2bf9d56861 Always call union_diruncache() when removing the upper object. 1995-05-30 18:52:39 +00:00
mycroft
80d1ab77b5 Release the directory cache when a directory is removed or whited out. 1995-05-30 18:11:46 +00:00
gwr
d992496652 New version that supports writing a Sun disklabel (rewritten). 1995-05-30 15:38:14 +00:00
gwr
68950abf69 Make sure curpcb is up-to-date before possibly copying it.
Let child start at spl0 (just like system call entry).
1995-05-30 15:36:58 +00:00
gwr
3b4e8765b5 Take care of curpcb->pcb_ps in vm_machdep, and use appropriate IPL.
Add missing line accidently dropped near the end of cpu_switch().
1995-05-30 15:32:37 +00:00
mycroft
ae9e49ed0d Fix thinko in previous commit. Do this as suggested by John Kohl. 1995-05-30 11:41:38 +00:00
mycroft
60c966ee4e When replacing a whiteout, set i_endoff to 0, so the directory cannot be
shrunk.
1995-05-30 10:44:49 +00:00
mycroft
0ca2e1bd7d Fix typo. 1995-05-30 10:28:15 +00:00
mycroft
7c7b203953 Make sure un_dircache is set after union_dircache(), to avoid stranding
references and the dircache buffer.
1995-05-30 09:37:02 +00:00
mycroft
6760c93567 When a file is removed from the upper layer, make sure to release the
reference to it.  From John Kohl.
1995-05-30 09:07:10 +00:00
mycroft
53eb79fc69 Preserve the ISWHITEOUT flag between cache_enter() and cache_lookup(). 1995-05-30 09:02:02 +00:00
mycroft
eb310b67a7 Fix order of lock assertions in union_lock() and union_removed_upper().
Sprinkle a few vprint()s.  From John Kohl.
1995-05-30 08:51:24 +00:00
briggs
d271dac88d Remove extraneous #if 1995-05-30 00:15:26 +00:00
pk
95fcffe527 eeprom device for Sun4 from Jason Thorpe. 1995-05-29 23:56:27 +00:00
pk
555da07c0f eeprom device (from Jason Thorpe). 1995-05-29 23:53:50 +00:00
hpeyerl
f6d7cb01ee Check curproc != NULL before PMAP_ACTIVATE.
From Chuck Cranor <chuck@maria.wustl.edu>
1995-05-29 19:36:22 +00:00
mellon
ccd1ab13a1 syscall 139 is ULTRIX_SYS_sigcleanup (from Simon Burge) 1995-05-29 17:32:35 +00:00
leo
74d95b443e Add CLKBROKEN define, so GEM version that are 2 years off on the RTC can
be identified.
1995-05-28 21:02:21 +00:00
leo
e4b2ec5091 Add emulator. 1995-05-28 19:58:18 +00:00
leo
1579fb8674 Add HZ=64, remove FPCOPROC. 1995-05-28 19:56:14 +00:00
leo
c21a70ad06 Define a config for the kernel on the boot-floppy. It should be resonably
small and boot on both TT and Falcon.
1995-05-28 19:53:48 +00:00
leo
d8cb2b8dfa According to diffs from Waldi Raven:
Make speed/clock-source selection smarter. This makes the baudrates more
 accurate and allows speeds upto 115k baud.
1995-05-28 19:50:26 +00:00
leo
27a11d1735 Remove the pointer to view_t from the grf-structure, use viewview(dev)
to obtain the pointer instead. This removes a kernel-crash that happened
when something was written to the console while the console was being
resized.
1995-05-28 19:45:36 +00:00
leo
d66ffa3fe1 Use <dev/ic/mc146818.h>. Change systemclock settings. Usable values for
HZ are now 48/64/96.  This reduces the interrupt overhead, because we
don't need the extra division by 4 in the interrupt handler.
1995-05-28 19:38:49 +00:00
leo
04246ac4f8 Add emulation traps. 1995-05-28 19:33:13 +00:00
leo
b88f1c35c4 Remove FPCOPROC use fputype instead. 1995-05-28 19:31:50 +00:00
leo
896cbdecbf - Remove FPCOPROC ifdef's. Make fpu code dependant on fputype.
- Change clock interrupt handler: remove extra division by 4.
1995-05-28 19:17:54 +00:00
leo
0a93016a82 Define T_FPEMUL? for locore.s 1995-05-28 19:14:30 +00:00
leo
25b59487ea Add FS_OTHER type partitions to 'user-partitions' 1995-05-28 19:11:51 +00:00
leo
a0f558aed0 Make ST_POOL_SIZE configurable through config. 1995-05-28 19:10:17 +00:00
ragge
ae74b4ebab Changed *_MIN to be correct. 1995-05-28 18:38:30 +00:00
mycroft
488bc82ac3 Fix multicast filter calculation. 1995-05-28 11:29:46 +00:00
leo
633db03b5b Check for a different year-base in the RTC. 1995-05-28 10:56:16 +00:00
mycroft
cc8da4254d Need netinet/tcp.h. 1995-05-28 10:20:46 +00:00
mycroft
32659780f6 Convert TCP socket options. 1995-05-28 10:16:32 +00:00
mycroft
00569bf574 Fill in `name' argument to getsockopt() correctly. 1995-05-28 09:39:45 +00:00
mycroft
116c7de730 Fix typo. 1995-05-28 08:52:07 +00:00
mycroft
e89504670f Convert IP socket options. 1995-05-28 08:50:17 +00:00
mycroft
fbc3ef234b Get rid of damned `static's. 1995-05-28 08:09:51 +00:00
mycroft
addaff473b Only use the `no pending interrupt' bit in the IIR; the other bits
are too unreliable on clone chips.
1995-05-28 03:26:37 +00:00
jtc
baea01570a Define NSIG to be equal to _NSIG if !ANSI and !POSIX. 1995-05-28 03:06:31 +00:00
jtc
b1af5c5b43 NSIG -> _NSIG 1995-05-28 02:55:09 +00:00
pk
06ffffda03 Propagate bootpaths 1995-05-27 08:12:51 +00:00
gwr
4dbca7a672 Cleanup in cpu_fork - remove use of curproc
Startup code now ensures proc0pcb is valid.
1995-05-26 17:20:30 +00:00
gwr
851d298eea Add a comment 1995-05-26 17:17:47 +00:00
gwr
17f5406aea Initialize proc0pcb.sr here (before cpu_fork copies it). 1995-05-26 17:09:37 +00:00
briggs
81712d5ba7 Make a diagnostic message DIAGNOSTIC. 1995-05-25 11:48:06 +00:00
mycroft
22aa7c18f0 Update curpcb before possibly copying it. 1995-05-25 01:11:29 +00:00
mycroft
8e18358c86 Make sure proc0's md_regs is initialized. 1995-05-25 01:09:10 +00:00
gwr
5adf2494d3 Update cpu_fork() to eliminate double mapping of kernel stacks. 1995-05-24 21:08:42 +00:00
gwr
bf7679cb99 Add child_return() 1995-05-24 21:07:46 +00:00
gwr
55cb8a7f53 Add missing conditional (thanks to Jason Thorpe)
Add pmap_collect()
1995-05-24 21:06:40 +00:00
gwr
fc49efe441 Make this more like the other m68k ports. 1995-05-24 21:04:51 +00:00
gwr
179595bf13 Add FPF_REGS and FPF_FPCR for FPU save/restore code. 1995-05-24 21:02:53 +00:00
gwr
7554244ef3 Make struct cpu_disklabel hold the Sun disk label. 1995-05-24 21:00:15 +00:00
gwr
b2b4514bbc Define struct saif 1995-05-24 20:58:05 +00:00
gwr
bbabbc2614 Sunc with sparc version (adds key repeat capability) 1995-05-24 20:57:00 +00:00
gwr
6867f7fcbd Update cpu_fork() to eliminate double mapping of kernel stacks. 1995-05-24 20:55:33 +00:00
gwr
6e6f7ede65 Improve probe (should reject "sc" board now) 1995-05-24 20:52:27 +00:00
gwr
51e2d10bd0 Sunc with sparc version (adds key repeat capability) 1995-05-24 20:51:31 +00:00
gwr
20f34f40d2 Turn off IFF_MULTICAST for now... 1995-05-24 20:49:38 +00:00
gwr
29e0f797d4 Fix missing return(0) - from Jason Thorpe - fixes PR 1049 1995-05-24 20:47:41 +00:00
gwr
a5e62834f4 Merged locore code back into locore.s 1995-05-24 20:42:13 +00:00
gwr
23718d5ee4 Merged locore code back into locore.s 1995-05-24 20:29:16 +00:00
gwr
ea63c8d798 Fix range check for kernel stack pointers. 1995-05-24 20:23:34 +00:00
gwr
31870d2eec Compute value of ssp correctly. 1995-05-24 20:23:05 +00:00
gwr
e7f3fdcd35 Avoid printing values as "end+0x...." 1995-05-24 20:21:00 +00:00
hpeyerl
caef1dfaa2 KNF police. 1995-05-24 13:12:12 +00:00
mycroft
1448ab7a19 Remove gratuitous extra indirections. 1995-05-23 06:22:45 +00:00
mycroft
ce5fcc40af Remove gratuitous extra indirections. 1995-05-23 06:11:29 +00:00
cgd
471cfd3fc5 define pcicd, pciattach() here now. 1995-05-23 03:43:58 +00:00
cgd
bad826164e split single-subdevice lookup & attachment into a subroutine
(pci_attach_subdev()).  remove pciattach() function and the pcicd cfdriver
struct, the former because thre are a lot of attachment actions which really
are machine-dependent (perhaps even "most"), and the latter because now that
both pcimatch() and pciattach() are machine-dependent it's bad style to
declare them here and it gains nothing.
1995-05-23 03:43:06 +00:00
cgd
7e68171a95 properly determine if send/rcv timeout values are out of range. 1995-05-23 00:19:30 +00:00
cgd
f66bf5fd18 don't blindly set IFF_UP; or it with old flags 1995-05-23 00:14:06 +00:00
leo
631261a801 Set A2 to PS_STRINGS. 1995-05-21 13:55:16 +00:00
leo
a1006d16dd ite_newsize(): Do not reallocate a display when the actual display mode
will be the same. Fixes a nasty bug where ite0 and ite1 share the same
bitmap.
1995-05-21 11:00:13 +00:00
leo
c8ca7ae526 Fix UL-handling 1995-05-21 10:56:54 +00:00
leo
13f71a235d Add prototype for grf_get_best_mode() 1995-05-21 10:55:57 +00:00
leo
02dd55abb3 - Add grf_get_best_mode()
- Only update 'real' colormap when actually displaying
- Fix TT-HIGH video mode
1995-05-21 10:54:44 +00:00
leo
555b2f67be Minor fixes. 1995-05-21 10:52:18 +00:00
leo
fc0c4cd1b9 Get syscall() code in sync with the rest of the world. 1995-05-21 10:50:41 +00:00
leo
de6e84e901 Fixup free_stmem(). 1995-05-21 10:48:53 +00:00
leo
d6b3669598 Remove icode, it doesn't seem to be used. 1995-05-21 10:45:59 +00:00
pk
92414dd1c7 Use a different method to discriminate a 82077 from a 82072 (from Chris Torek);
using the NE7CMD_VERSION command is too unreliable.
1995-05-20 20:03:37 +00:00
pk
c3d5b45b6e Name fd register structures more appropriately. 1995-05-20 19:59:52 +00:00
mycroft
f6ff0fba6d Use fxdr_*() and txdr_*() macros to do byte order conversions. 1995-05-20 01:52:49 +00:00
pk
b4cf60ac8a cpu_swapout() not needed after all. 1995-05-19 06:57:41 +00:00
mycroft
5ea2d5e6a6 Clean up the FPU state more thoroughly on exec. 1995-05-18 18:59:16 +00:00
mycroft
0181b81de4 Newer version from CSRG. 1995-05-17 15:50:06 +00:00
cgd
abdf873225 remove these at paulus's request. There's only one da30 in existence,
and he's planning on taking it out of service.
1995-05-17 08:30:58 +00:00
cgd
3ebc44f6e1 isa softc structs are larger than 'struct device' 1995-05-17 02:07:03 +00:00
briggs
0521ad83a0 Make comment fit reality. 1995-05-17 00:45:55 +00:00
briggs
2b47f281fe Some cleanup. 1995-05-17 00:37:33 +00:00
briggs
94ce6105d2 Add configuration for my gateway machine. 1995-05-17 00:33:59 +00:00
briggs
a43ca9e742 Nuke cpu_exec and remove extra semicolon on cpu_swapout() panic string
(preparing for more changes in a bit...)
1995-05-17 00:30:16 +00:00
briggs
fd807928aa Add a memcpy entry point as at least a temp fix for compiling with a
recent gcc2 snapshot.
1995-05-17 00:28:14 +00:00
briggs
6201783f37 Set A2 to PS_STRINGS in setregs(). 1995-05-17 00:00:42 +00:00
jtc
f90f8d10aa Removing -DKERNEL, transition to _KERNEL has been completed 1995-05-16 22:24:17 +00:00
mycroft
783186a896 Put the address of the ps_strings structure in %g1. 1995-05-16 21:16:37 +00:00
chopps
0282985f87 PS_STRINGS in A2. Add fputype, remove cpuspeed. switch to new coredump 1995-05-16 20:59:07 +00:00
pk
ed9d5444a2 Really test # of status bytes. 1995-05-16 17:02:00 +00:00
pk
85dbf66a28 Remove redundant copy of sunos_sigreturn(). 1995-05-16 16:06:48 +00:00
pk
39a8c80c65 Prototype internal function. 1995-05-16 15:28:01 +00:00
mycroft
f178e0996d Sync these. 1995-05-16 14:58:44 +00:00
mycroft
4b15d144ec Put the address of the ps_strings structure in A2. 1995-05-16 14:34:19 +00:00
mycroft
565b3ad195 Put the address of the ps_strings structure in %ebx. 1995-05-16 14:30:47 +00:00
mycroft
bfd22ffde8 Generate the new ps_strings format. 1995-05-16 14:19:03 +00:00
mycroft
59c1e76057 Change ps_{argv,env}str to char**. 1995-05-16 14:17:34 +00:00
phil
29db7c74b1 Changes from Matthias Pfaller: lpt driver changes, clock code similar
to i386, interrupts from static table to dynamic table, other small
fixes (locore.s byte operates -> double operands ...)
1995-05-16 07:30:30 +00:00
cgd
dd614d8474 parenthesize macro arg usage 1995-05-16 05:26:36 +00:00
cgd
0bfc08ac63 oops; forgot a '{' 1995-05-15 02:09:58 +00:00
cgd
05af191f3b spacing fixups and KNF. #define ether address size, so it's not
hardcoded as '6' all over.
1995-05-15 01:30:44 +00:00
cgd
cd172a4d08 KNF 1995-05-15 01:25:21 +00:00
cgd
b4cd363b69 simplify ip_output() out-of-memory condition slightly, and style nits. 1995-05-15 01:24:53 +00:00
cgd
e7164bb2fd "routine" precedence has a value of 0. 1995-05-15 01:22:44 +00:00
leo
640101f0f8 - Remove double mapping of kernel stack
- Change to new coredump format
1995-05-14 19:09:10 +00:00
leo
b78d405c36 Don't mess with SCU on the Falcon. 1995-05-14 15:55:51 +00:00
leo
8360740fdb Change of function params for Falcon SCSI. 1995-05-14 15:47:17 +00:00
leo
84c03e6058 - Remove race condition from DMA interrupt handler
- Add function to get current DMA address for Falcon SCSI.
1995-05-14 15:46:17 +00:00
leo
571c7445e0 Remove double mapping of stack. 1995-05-14 15:44:19 +00:00
leo
1029a77f13 Function proto added. 1995-05-14 15:29:18 +00:00
leo
cf6323d778 Fixup comment. 1995-05-14 15:27:51 +00:00
leo
e2b044e52f - Remove double mapping of stack
- Change to new coredump format
1995-05-14 15:26:55 +00:00
leo
72472e35b1 Remove double mapping of stack 1995-05-14 15:24:35 +00:00
leo
92d594935c - Remove double mapping of stack
- Change to new coredump format
1995-05-14 15:23:30 +00:00
leo
d3e5e6574b Fix double mapping of stack. 1995-05-14 15:20:22 +00:00
chopps
d25d16dd79 fix ITEIOC[GS]BELL and ITEIOCGREPT cases in iteioctl() 1995-05-14 14:26:00 +00:00
cgd
2c1e3c655f drop (and record) malformed IP fragments. Fixes pr 1030 (differently). 1995-05-14 08:23:00 +00:00
chopps
d2d8deb3bb make recent cpu_fork() changes more similar with hp300. 1995-05-13 05:57:25 +00:00
chopps
51731ce367 fix dumpmem 1995-05-13 05:17:56 +00:00
jonathan
4175c2819f Redo 3MAX+ (5k/240) interrupt enable code.
Instead of being a no-op, kn03_intr_enable() sets the sw copy of the
interrupt-enable mask *and* writes it into the IO asic intr-enable
register.  Boot code sets the sw copy (kn03_tc_imask) to something
sane (KN03_IM0, with tc option slots turned off).  Tested and works.
Interrupt code for other IOASIC machines should be redone so that
interrupts for devices are enabled by drivers, rather than by
cpu-specific boot code.  Functions common to all IOASIC machines
(PSWARN?) should be done by asic_init().

Checked in without the above changes so that 3MAX+, MAXINE and 3MIN
interrupt-(enable,handle) can converge.
1995-05-12 23:27:23 +00:00
cgd
fc90442d14 add lots of vnds 1995-05-12 21:08:41 +00:00
mycroft
af73578e82 Map the source page of a copy read-only. 1995-05-12 20:57:22 +00:00
mycroft
76860a15b0 Add a child_return() function to clean up the child's state correctly, and
use this in cpu_fork().  Generalize proc_trampoline() so it can also be used in
this case.
1995-05-12 18:24:46 +00:00
cgd
c821cb684a (1) conditionalize debugger usage in comeint with DDB, not COMCONSOLE;
latter would lead to undefined symbols if DDB not defined.
(2) check for break on console, and therefore debugger entry (if ddb
	in kernel) earlier, so that the device doesn't need to be open.
(3) return immediately after breaking into the debugger in comeint().
(4) only do the normal character input routine in comintr if receive
	mask yeilds _EXACLTY_ LSR_RXRDY.  if there's only a receive
	error, or there's a receive error _and_ a received character,
	do comeint().
(former two by me.  latter two from Bob Baron <rvb@cs.cmu.edu>.)
1995-05-12 17:54:41 +00:00
chopps
0cb62c1cb4 added flsc and bzsc. 1995-05-12 13:09:17 +00:00
mycroft
94cb5327ca Stylistic change. 1995-05-12 13:04:33 +00:00
mycroft
46426ac542 main() should never return. 1995-05-12 13:03:23 +00:00
chopps
21d667c8ab scsi drivers for fastlane and blizzard controllers that use the
Emulex FAS216 chip.  from Daniel Widenfalk <t94dwi@student.tdb.uu.se>
1995-05-12 12:59:05 +00:00
mycroft
9877d5d787 Eliminate the double mapping of the kernel stack. Enable swapping. 1995-05-12 12:54:44 +00:00
mycroft
7bf54feda1 Add vnd. 1995-05-12 12:49:54 +00:00
mycroft
3d833a1ab1 Conditionalize the code in process_frame() on the existance of
cpu_set_init_frame().
1995-05-12 12:47:45 +00:00
mycroft
c52debae3f Redefine the first part of struct frame to be a struct trapframe, and add a
struct switchframe.
1995-05-12 12:45:24 +00:00
cgd
eb4cd26383 from the comments at the top of the file:
INSTALL -- somewhat generic kernel with a snowball's chance of
	   fitting on an install floppy.

This kernel MUST consist (for users' sanity) of a subset of
the GENERIC configuration.  It also should support X reasonably
(though the SysV SHM extensions won't work).

To avoid a maintenance nightmare, this kernel consists of GENERIC
with missing options/devices/etc. REMOVED rather than commented
out.  That makes it easy to diff agains GENERIC, to make sure that
it really is a subset of the functionality.
1995-05-12 03:19:51 +00:00
cgd
aeb93da3d7 Split FFS,QUOTA line, comment each individually.
Add 'options INSECURE' so that the GENERIC kernel is happy with
X's linear mapping.
1995-05-12 03:18:05 +00:00
chopps
c7b33abd2d enable swapping of process 1995-05-12 00:21:54 +00:00
chopps
a15205fdbf use stdframe from m68k/include/frame.h 1995-05-12 00:18:09 +00:00
chopps
4567f74662 add stdframe (4-word frame) 1995-05-12 00:01:05 +00:00
chopps
2526492410 fix typo 1995-05-11 23:49:56 +00:00
chopps
1ba39fdfd1 conditional use of kstack, specifically there is no kstack on the amiga 1995-05-11 23:15:13 +00:00
chopps
35785d310e remove double mapping of kernel stack. created cpu_set_kpc() 1995-05-11 23:04:18 +00:00
chopps
b6e35ee17f fix len bug from Jason Thorpe <thorpej@nas.nasa.gov> 1995-05-11 22:55:12 +00:00
jtc
8aa6c376b6 KERNEL -> _KERNEL 1995-05-11 16:52:54 +00:00
cgd
64d4944e2f from Mike Karels:
allow Q_SYNC regardless of "target" uid, we allow it with -1;
fix bug that caused all ops to refer to user quotas, not group.
[finally had a chance to check this!]
1995-05-10 18:00:45 +00:00
christos
078a98c864 Fixed compat hpux files. 1995-05-10 17:02:52 +00:00
christos
fb371ccef0 tty_tb.c: need to include ioctl_compat.h in order to compile.
sysv_shm.c: make shm_find_segment_by_shmid global so it can be used by
	    COMPAT_HPUX. There should be a better way...
rest: Add #ifdef COMPAT_HPUX where needed
1995-05-10 16:52:53 +00:00
christos
dbb1f513f8 syscalls.master was changed.
Note that COMPAT_OHPUX has been renamed to COMPAT_HPUX_6X and this is a
kernel option now, that should be specified together with COMPAT_HPUX.
1995-05-10 16:47:21 +00:00
christos
dd9ece9090 Made this compile on the i386 (gasp)... Someone will need to test it. 1995-05-10 16:45:25 +00:00
pk
e01c46144d Minimalist implementation of KIOC[SG]KEY. 1995-05-10 16:04:55 +00:00
mycroft
8742c18c06 Update for slightly modified ARP handling. 1995-05-10 14:04:14 +00:00
leo
7b03e25bf5 Print proper machine type at startup. Use 'vfs_shutdown' to sync the
disks.
1995-05-10 07:07:30 +00:00
leo
9804349e4d Ignore HBL/VBL interrupts instead of reporting them as stray as they
can't be turned off on a Falcon.
1995-05-10 06:33:31 +00:00
leo
18976dc656 Added machine type detection, the presence of the 2nd MFP determines
if the machine is a Falcon or a TT030. The type is added to 'machineid'.
Interrupt  initialisation is now dependend on the machine type.
1995-05-10 05:59:27 +00:00
briggs
725cb78165 Actually probe for 881 vs. 882. Also add a case for 040, although it's
really lip-service at the moment.
1995-05-10 03:19:00 +00:00
brezak
d1ba0651cc Cleanup 1995-05-08 22:21:29 +00:00
brezak
c68110e043 Remove strings 1995-05-08 22:01:34 +00:00
phil
fae7c89fdd RCS id/header cleanup. 1995-05-08 19:37:45 +00:00
christos
8e536df8d5 Added sunos_machdep.c; from Matthew Green 1995-05-08 19:14:21 +00:00
christos
9d460c41af Added sunos_machdep.c [from Matthew Green] 1995-05-08 19:13:48 +00:00
ragge
7d8ace7679 Typo 1995-05-08 19:10:53 +00:00
pk
530cf06fbb Adapt declaration to stand.h; PR #1036 1995-05-08 18:56:06 +00:00
pk
9ca43d7c14 Remove -I/usr/include from `genassym' line. 1995-05-08 18:02:12 +00:00
mycroft
af7265051f The previous optimization only works for edge-triggered interrupts... 1995-05-08 18:00:20 +00:00
pk
c9d346c81c Refuse to map addresses in a MMU hole; the process will get a SEGV.
Changed mmu_pagein() interface.
Small nit in mmu_entry.
1995-05-08 17:56:49 +00:00
pk
51082874bf Use VA_INHOLE().
Define arguments to mmu_pagein() in terms of MI VM constants; an idea from Theo.
1995-05-08 17:53:40 +00:00
pk
2a3952abeb implement cpu_swapout() 1995-05-08 17:50:00 +00:00
pk
f250262185 #define VA_INHOLE() - to test a VA for being in an MMU hole
(and PG_VSHIFT should 29).
1995-05-08 17:47:26 +00:00
brezak
2d93a58abd Don't call hardware close in mixer_close(). From Rolf Grossmann <grossman@informatik.tu-muenchen.de> 1995-05-08 17:42:07 +00:00
pk
9ef5f62072 Start swapping. 1995-05-08 17:34:20 +00:00
brezak
05f27a97ce Fix holes in device index space. PR#1028 1995-05-08 17:28:51 +00:00
brezak
f5675abf16 Set mixer type for rec and play level set. PR#1027 1995-05-08 16:06:38 +00:00
chopps
79d6c6505e fix a few thinkos 1995-05-08 02:52:21 +00:00
chopps
6a9186c322 may now work for asdg boards.. offsets obtained months ago but untestable here 1995-05-08 02:40:51 +00:00
cgd
3ada5aac65 ignore the kernel compile dirs for which we provide config files. 1995-05-07 22:26:16 +00:00
cgd
1c04650195 protect npxproc usage with #if NNPX. From Bob Baron <rvb@cs.cmu.edu>. 1995-05-07 21:07:17 +00:00
cgd
7bd5b4bfa8 oops; vm_pageout.c should include machine/cpu.h, _not_ vm_pager.c 1995-05-07 19:27:27 +00:00
chopps
e84ef6b4af rm unused local vars 1995-05-07 16:54:51 +00:00
ragge
197ff756b0 Machine dependent core dump struct added. 1995-05-07 16:43:34 +00:00
ragge
9bdf9bed5e Changed core dump style to generic netbsd format. 1995-05-07 16:41:28 +00:00
cgd
cf08de5cf0 needs machine/cpu.h 1995-05-07 16:22:40 +00:00
chopps
2ca98c3cb6 enable pseudo-dma on ivsc, allow no ite/grfcc. 1995-05-07 15:37:02 +00:00
mycroft
dbaa7014ef Turn off a debugging printf(). 1995-05-07 03:27:37 +00:00
mycroft
8a50716192 Fix restore of %fs and %gs in linux_sigcode. 1995-05-07 03:16:16 +00:00
mycroft
4e9f66f9ca Improve Linux signal emulation, and emulate the modify_ldt() call. 1995-05-07 02:59:30 +00:00
mycroft
6e02c4b647 Add a copy of the user code and data descriptors in the GDT. 1995-05-06 20:30:14 +00:00
mycroft
5c75c8b7ad Use global definitions of i386_[gs]et_ldt_args. 1995-05-06 19:21:37 +00:00
mycroft
7a69a9c95b Define i386_[gs]et_ldt_args here. 1995-05-06 19:19:57 +00:00
briggs
56b5c26854 Get rid of a printf() that got left behind in the probe. 1995-05-06 18:44:48 +00:00
briggs
c4cb3e244c Probe this like the other devices. 1995-05-06 18:33:19 +00:00
mycroft
e97a07b5a4 Add stub for linux_modify_ldt(). 1995-05-06 18:17:15 +00:00
mycroft
2b0696ff3c Add linux_modify_ldt(), if __i386__. 1995-05-06 18:16:35 +00:00
ragge
372dd89e62 Kernel message buffer implemented. 1995-05-06 00:08:28 +00:00
brezak
8951a20fe2 Auto-select open mode when opened half-duplex. From John Kohl. PR#1006 1995-05-05 22:36:14 +00:00
mycroft
524c9c7f2a Use nvram.h. 1995-05-05 22:28:17 +00:00
mycroft
8fc6a61adc Add definitions for NVRAM equipment byte. 1995-05-05 22:08:43 +00:00
leo
8b4abb7503 Fix error in handling FPU types. 1995-05-05 16:39:14 +00:00
leo
231b64341e Fix bug on handling HD-floppy's. 1995-05-05 16:38:05 +00:00
leo
ec3a1cd9f7 Define dma_drvmode correctly 1995-05-05 16:36:57 +00:00
leo
0d58fa8604 Report "real mem" correctly and make one single module for handling
software interrupts.
1995-05-05 16:35:21 +00:00
leo
0dae8a5da7 Remove some unused defines. 1995-05-05 16:33:11 +00:00
leo
60f4c22869 Shift system clocks from TT-mfp to ST-mfp and remove some dead-code. 1995-05-05 16:31:46 +00:00
leo
d64c598f6a Shift system clocks from TT-mfp to ST-mfp for Falcon. 1995-05-05 16:30:33 +00:00
ragge
29a5673f41 BROKEN_SWAP removed, swapping verified OK.
pmap_collect(pmap) added as null define.
1995-05-05 14:13:01 +00:00
ragge
bd890814cf Removed cpu_set_init_frame() use.
Increased default limits of memory use, ridiculously small before.
1995-05-05 10:53:53 +00:00
ragge
f58eb36f82 Removed kernel stack relocation and double-mapping.
Speeded up fork() significantly.
1995-05-05 10:47:35 +00:00
mellon
214234c937 Fix MAXine interrupt mask routine 1995-05-05 06:48:14 +00:00
briggs
331e2bd82b Add some code/defines to differentiate Asante and Interlan/Gator cards
correctly with the new nubus code.
1995-05-05 05:40:13 +00:00
cgd
8703076975 define BROKEN_SWAP and/or cpu_swapout as appropriate. 1995-05-05 03:41:51 +00:00
cgd
0b2ce5d881 delete some cruft, don't swap if BROKEN_SWAP defined, call cpu_swapout rather than #ifdef 1995-05-05 03:35:39 +00:00
mellon
3ff601e7a1 Don't conditionalize utility routines based on DEBUG flag 1995-05-05 02:45:31 +00:00
jonathan
03c9dc7a48 Fix long-standing bug in NetBSD/pmax interrupt initalization on
Turbochannel machines with an IOASIC.

After an interrupt is taken, the IOASIC interrupt enable mask is
and'ed with the kernel's interrupt-mask variable.  This masks
off any interrupts that were enabled after the hardware interrupt-enable
mask was set. Due to this bug all iynterrupts must be enabled before
the first interrupt is taken. (Interrupts enabled later aren't on in the
ioasic intr-mask  register, so they aren't on in (sirm & kernelmask),
which is what used to get written back to the ioasic interrupt-mask
register.  	Fixed, and tested on  on 3MAX+ but not xine/3min.

If this patch perchance breaks on Xines or 3mins, the old code can be
re-enabled by changing the #if 0 in machdep.c to #if 1.
1995-05-04 19:48:41 +00:00
pk
4c8828e743 init `mode' field in sunaudiogetinfo(). 1995-05-04 19:46:31 +00:00
pk
7d244351cf Add `evcnt' field. 1995-05-04 19:43:27 +00:00
pk
089ab8e266 define audio `evcnt' field. 1995-05-04 19:42:36 +00:00
pk
9e61204b61 Tally interrupts. 1995-05-04 19:41:35 +00:00
cgd
2e0e8fc49d use the machine-independent definitions for the mc146818.
wrap the various uses of the chip (including the uses of the NVRAM on it)
around the new defintions, structures, and functions specified in the header.
1995-05-04 19:39:08 +00:00
cgd
7153343684 two cases to quiet the compiler. perhaps should be fixed differently. 1995-05-04 19:35:20 +00:00
cgd
5d25b2c50e machine-independent definitions for the Motorola MC146818A Real Time Clock
and compatible chips, including the  Dallas Semicontuctor DS1287A.
This chip is used in PC's, DECstations, and Alphas, at least...
1995-05-04 19:31:18 +00:00
mycroft
40b72cc7a2 Wrap NGDT and NLDT in parens. 1995-05-04 05:37:39 +00:00
mycroft
78356f06b3 Add two vprint()s, to give more informative panic messages. 1995-05-04 03:11:06 +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
99224602b4 Only dump the FPU state if the process actually used the FPU. 1995-05-03 23:05:46 +00:00
cgd
011aa68805 looks like some extra ')'s were left in here. 1995-05-03 21:38:57 +00:00
mycroft
d23aebf3bb Fix pccnpollc(). 1995-05-03 20:46:32 +00:00
ragge
a412d4803c mtpr support for 11/780 added. DELAY added. mcount() corrected.
trapframe fixed to support all registers.
1995-05-03 19:53:40 +00:00
mycroft
1d2f0bce2a Make the byte-shifting code consistent. 1995-05-03 19:38:45 +00:00
ragge
35d394d7e4 Changed conf.c to new style. Took away double saving of regs in traps.
Changed boot() to use vfs_shutdown(). Updated setregs.
1995-05-03 19:20:09 +00:00
cgd
1e0c08b206 uncomment cy driver spec; i386 conf.c needs the header file. 1995-05-03 17:09:28 +00:00