Commit Graph

7648 Commits

Author SHA1 Message Date
cgd e58dfa2a1a make match/attach routines and cfdriver struct mi 1995-06-07 07:06:16 +00:00
cgd da5b5dfa63 make match/attach routines and cfdriver struct mi 1995-06-07 06:46:04 +00:00
cgd 5a29222f9c prototype isascan, spacing 1995-06-07 06:45:44 +00:00
cgd 2994e22402 add m_split proto, as suggested by Ignatios Souvatzis in pr 1076 1995-06-07 00:21:28 +00:00
cgd d4f62dcb69 update from Ignatios Souvatzis 1995-06-07 00:13:52 +00:00
cgd 3349ad1b56 update from matt thomas 1995-06-06 23:31:24 +00:00
mycroft 4a975bbe6f If necessary, wake up the child during attach so we always get a SIGCHLD. 1995-06-05 20:57:54 +00:00
pk 3131b5c6e5 Prototypes (PR#1097) 1995-06-05 19:39:35 +00:00
pk a47021162b Prototype sysarch(2) (Thorsten Lockert, PR#1096) 1995-06-05 19:36:23 +00:00
mycroft 4bfd7749ad Various:
* Check for CTS in the correct register.
* Only do a selwakeup() if we output something.
* Don't make assumptions about what TTYDISC does.
1995-06-05 19:08:09 +00:00
ragge 215feb7abb New file pcb.h. USRTEXT changed to 0x400. 1995-06-05 17:17:57 +00:00
ragge 3c6303e76b Enabled auto reboot. Fixed bug in conf.c. Started use of rpb.
Detecting kernel stack overflow. Removed local mapping of
sigtramp code. Frob kernel stack pages in cpu_swapin().
Cleaned up some code and changed to KNF.
1995-06-05 16:26:23 +00:00
pk 1e52ad70a9 We need some compat_10 routines if COMPAT_SUNOS is on (PR #1008). 1995-06-05 12:56:54 +00:00
pk bf834e228d Add UNION option. 1995-06-05 12:46:31 +00:00
mycroft ee9e2e35fa Increase the delay after pulsing the keyboard reset line. 1995-06-05 03:47:51 +00:00
mycroft 1922f9e648 Use the memory mapping set up by the BIOS. 1995-06-05 03:07:34 +00:00
cgd dede989b85 enable the de driver 1995-06-05 01:03:45 +00:00
cgd d0d9fe6333 set a shutdown hook 1995-06-05 01:03:30 +00:00
cgd 89c30bb2e3 do the right thing with fixed-size types. 1995-06-05 00:49:45 +00:00
cgd 96caf354eb kill old Id, add NetBSD Id 1995-06-05 00:47:42 +00:00
cgd c71cccacde kill old Id and Log. add NetBSD Id 1995-06-05 00:46:30 +00:00
cgd 551bcffab9 dc21040 driver, from Matt Thomas 1995-06-05 00:38:18 +00:00
mycroft 5b37a8fded Handle BREAK correctly when not entering DDB. 1995-06-04 20:50:14 +00:00
mycroft 38847d04c0 Add an input FIFO, and fix several flow control problems. Based on code from
Felix A. Croes.
1995-06-04 20:39:22 +00:00
mycroft 4ea6427a03 Increase size of imask[]. Sigh. 1995-06-04 20:22:50 +00:00
brezak cea924779e call hw->setfd with param not ptr to it 1995-06-04 15:33:50 +00:00
mycroft 3e6f699a75 Only do software flow control if IXOFF is set. Also fix hardware flow control
case in ttyblock().
1995-06-04 14:01:37 +00:00
mycroft 3cd36c72ef Use ISSET() and CLR() in two cases. 1995-06-04 12:57:52 +00:00
mycroft bd99191320 IPL_IMP includes IPL_NET, IPL_BIO, and possibly IPL_TTY. 1995-06-04 08:32:24 +00:00
mycroft 8bb190daa3 Add a separate IPL_IMP, used by splimp(). 1995-06-04 08:29:41 +00:00
mycroft 4906fd756f Simplify ipip_input() a bit. Don't blow away the vif cache if someone sends
us a bogus packet.
1995-06-04 07:38:19 +00:00
mycroft e30d6fd798 Simply tbf_control() a bit. 1995-06-04 07:20:47 +00:00
mycroft b8c4ea6580 Eliminate compiler warnings. 1995-06-04 06:55:30 +00:00
mycroft e201372b7d For consistency, set sin_len for SIOC{ADD,DEL}MULTI. 1995-06-04 06:46:05 +00:00
mycroft 51a0da73db Remove one more bogus cast. 1995-06-04 06:03:53 +00:00
mycroft 41703012d6 Don't cast things unnecessarily. 1995-06-04 05:58:20 +00:00
mycroft 0a99592372 Clean up many more casts. 1995-06-04 05:06:49 +00:00
mycroft 06a9ea20e8 Clean up a lot of ugly casts. 1995-06-04 04:35:29 +00:00
mycroft 3eeacbcb2d #include <sys/vnode.h>, for prototypes. 1995-06-03 05:53:28 +00:00
pk 7d18c2534d Add `Maxtor LXT-213S', this time without a Sun OEM addition. 1995-06-02 21:44:11 +00:00
mycroft 41a1b362f8 Fix more off by one errors. 1995-06-02 19:50:11 +00:00
mycroft 8dc3fb5a63 Use vaccess(). 1995-06-02 19:04:22 +00:00
mycroft f1365566f1 Fix another off by one error. 1995-06-02 18:49:31 +00:00
mycroft b1b27effa0 Imported group list now starts at offset 0, not 1. 1995-06-02 18:38:57 +00:00
mycroft f5f32d8328 Exported group list now starts at offset 0, not 1. 1995-06-02 18:35:50 +00:00
mycroft d4e9fde6e5 Handle most of the address fixups during bootstrap with a macro. 1995-06-02 18:14:04 +00:00
pk c86cba88fe Update SCSI decls. 1995-06-02 17:53:51 +00:00
mycroft 3126edd708 Arrest the KNF policeman. 1995-06-02 17:51:21 +00:00
gwr 788562b9ed Use the exec header left by the boot program to validate the
symbol table size, and then preserve symbols for ddb.
1995-06-02 16:46:18 +00:00
gwr 3fda1f293a Keep the exec header so the kernel can find it. 1995-06-02 16:44:20 +00:00
mycroft 6b8a5d7b8e Update a comment in deupdat() to reflect current reality. 1995-06-02 16:19:55 +00:00
pk c0c45bba22 Try to recover from multi-byte messages sent by a target for which we
get an "Illegal command" (why is this?) when we try to pull it in.
On detection of this condition, we reset the SCSI bus and simply stop asking
this target for an identify messages, for now.
1995-06-02 15:46:47 +00:00
mycroft 7aeec96289 Various changes:
* Update the `archive' bit any time the file's time stamp is updated.
* Don't set the `archive' bit automatically for directories, and don't
update the time stamp of directories automatically.  (There are the DOS
semantics.)
* Use DE_TIMES() to change the time stamp in deupdat().  Remove the extra
time stamp argument, as it's superfluous, and we may want to make changes
without touching the time stamp.
* Allow denode updates iff DE_MODIFIED is set after DE_TIMES() is called.
This allows us to make changes that are totally independent of the time
stamp, and to avoid rewriting the entry if the time stamp was ignored (e.g.
for directories).
* Make time stamp changes in setattr() asynchronous.
1995-06-02 15:33:22 +00:00
mycroft 320cd8e632 Fix typo. 1995-06-02 14:54:53 +00:00
mycroft dc4b7aaed2 Set the `archive' bit on created files. Copy some code from UFS to do better
permission checking in setattr().
1995-06-02 14:52:34 +00:00
mycroft 03f102b969 Remove a bunch of stuff which is outdated and/or doesn't belong here. 1995-06-02 14:04:36 +00:00
pk 4770e5e7c5 Try to recover from multi-byte messages sent by a target for which we
get an "Illegal command" (why is this?) when we try to pull it in.
On detection of this condition, we reset the SCSI bus and simply stop asking
this target for an identify messages, for now.
1995-06-02 13:43:30 +00:00
mycroft 489f42a2d8 Dynamically allocate the deencapsulation interfaces. Abstract the code to
reset a vif into a separate function.
1995-06-02 04:23:05 +00:00
brezak cfe5401c83 Integrate patch from Lon Willett that is part of release 3.20 1995-06-02 02:48:41 +00:00
mycroft e729deedb2 Fix a condition where union_updatevp() would reinsert the node onto the
wrong hash chain, by not swapping the hash values.  Noted by John Kohl, but
fixed differently.
1995-06-02 02:39:20 +00:00
gwr 73a128e326 Add a man page. 1995-06-02 00:22:47 +00:00
jtc 95ded74f58 Moved egid credential from cr_groups[0] to new field cr_gid. POSIX.1
requires that sgid executables and the setuid() syscall *not* change
the supplemental group list.
1995-06-01 22:43:30 +00:00
mycroft 4516e8c845 Don't use INADDR_* constants in case labels. 1995-06-01 21:46:27 +00:00
mycroft eb216fd6c2 Avoid byte-swapping IP addresses at run time. 1995-06-01 21:35:34 +00:00
jtc d045544ebd Changed ns82450 to ns8250 and dropped ns82550 from probe console messages. 1995-06-01 21:26:51 +00:00
gwr f38968b1dd boot --> ufsboot 1995-06-01 21:15:20 +00:00
gwr 7f6fe50cb7 clean up import conflicts 1995-06-01 21:03:07 +00:00
gwr a48381d6df Make this build in libsa 1995-06-01 20:44:40 +00:00
gwr 506236d9e5 Booting from ufs works now. 1995-06-01 20:37:44 +00:00
gwr 81c8755972 Moved to ufsboot 1995-06-01 20:26:32 +00:00
gwr 9b910268e1 Better reset code, and reset the chip when it goes comatose. 1995-06-01 20:22:17 +00:00
mycroft d69f7885b7 Allow [nh]to[hn][ls]() to do constant folding. 1995-06-01 17:19:18 +00:00
mellon b23214bbd9 Clear up name conflict between Ultrix syscall 103 and 139. 1995-06-01 16:38:15 +00:00
mycroft 2eaf92b3e5 Add missing ntohl() in multicast test. 1995-06-01 15:59:04 +00:00
pk 8066369f08 Deal with v.3 proms (sigh). 1995-06-01 14:36:17 +00:00
mycroft ba9883ec57 Integrate multicast 3.5 distribution, with several bugs fixed and general
cleanup.  This is a (working) snapshot of work in progress.
1995-05-31 21:50:34 +00:00
cgd b86de4fbbd invoke shutdown hooks 1995-05-31 20:45:14 +00:00
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