Commit Graph

1498 Commits

Author SHA1 Message Date
deraadt 60b0bb39a9 blast it.. 1993-11-10 10:17:52 +00:00
deraadt 294c3d8704 support both sun3 & sparc concepts of minor/major #'s for /dev/zero 1993-11-10 10:14:19 +00:00
deraadt 8d10efb291 sun_disklabel.c moved 1993-11-10 09:48:21 +00:00
mycroft 84e594b797 Clean up deleted files. 1993-11-10 09:40:01 +00:00
mycroft 69db85708e Clean up deleted files. 1993-11-10 09:12:36 +00:00
cgd 56adbe979f make absent absent 1993-11-10 08:22:05 +00:00
cgd d580099dde fix those last changes, and quiet a compiler warning. 1993-11-10 08:11:47 +00:00
cgd 189ecc0a66 include sys/time.h; we'll need it eventually. 1993-11-10 07:59:40 +00:00
deraadt 7679710d7c some cleanup, better than sending adam reminder notes 1993-11-10 07:42:12 +00:00
deraadt ac0ecd9194 Duh. 1993-11-10 06:22:15 +00:00
deraadt 6839d97c8c use p_emul flag to indicate OS emulation
handle syscalls at standard sun place, ie. trap#80 not #89
add SunOS OMAGIC support
1993-11-10 03:13:19 +00:00
deraadt b9f8cbdca7 update from new syscalls.master 1993-11-10 01:01:59 +00:00
deraadt ffb469a020 chmod 444 on the output files is a bad idea 1993-11-10 01:01:25 +00:00
deraadt 2e0bfb759c update to 4.4 way of doing syscall#0 1993-11-10 00:59:10 +00:00
glass af72539915 T_LINEP member of struct tty becomes t_sc. This replaces the
#define t_sc T_LINEP
that appear in tty_tb.c, if_sl.c, and if_ppp.h
1993-11-09 06:22:08 +00:00
mycroft 2f5635f70b A slightly unfinished i82586 driver, based on Garrett Wollman's. 1993-11-08 20:15:31 +00:00
mycroft 5aa77a4ddc Enable ie0. 1993-11-08 20:10:32 +00:00
deraadt 96faaf5809 sign extension bug fix from <rick@snowhite.cis.uoguelph.ca> 1993-11-08 03:39:21 +00:00
cgd 34178aa2ef don't use splclock()/splnone(), use splclock()/splx().
pointed out by david greenman.
1993-11-05 23:18:51 +00:00
cgd ab12bacae0 note that use of splnone() is prolly bogus; splnone() itself is bogus,
so it's use is.  8-)
1993-11-05 23:18:04 +00:00
cgd ec3f94cfcd fix from david greenman, davidg@freefall.cdrom.com:
fixed bug where large amounts of unidirectional UDP traffic would fill
the interface output queue and further udp packets would be fragmented
and only partially sent - keeping the output queue full and jamming the
network, but not actually getting any real work done (because you can't
send just 'part' of a udp packet - if you fragment it, you must send
the whole thing). The fix involves adding a check to make sure that the
output queue has sufficient space for all of the fragments.
1993-11-05 23:06:26 +00:00
cgd 8068dd9add fix from david greenman, davidg@freefall.cdrom.com:
sosend was attempting to reserve space in an mbuf cluster for a datagram
header and because of bugs in the sosend's mbuf allocation algorithm,
sosend was calling uiomove twice as many times as was necessary. It turns
out that PREPEND does the right thing when a cluster is associated with
an mbuf header, so the datagram header allocation can be defered. This
also ends up additionally consuming one less mbuf for the TCP protocol
because TCP always allocates another header mbuf regardless if space is
available to prepend the protocol header. The net result of this fix is
that unix domain and pipe throughput is increased by a measured 10%.
1993-11-05 23:00:27 +00:00
cgd e685fd393f added files copied in from libc. version numbers are screwed,
but are screwed for the rest of libkern's files, anyway.
1993-11-05 22:40:48 +00:00
deraadt b7e4012f31 now that esp.c is fixed, go back to using the enhanced cache code. 1993-11-05 12:43:02 +00:00
deraadt 80a1356c75 DELAY(1) after a DMA_DRAIN, to let the esp chip have a chance to
recover from the DMA.. seems to let my ss1+ work with the cache enabled.
+ also esp reset code from Torek.
1993-11-05 12:41:54 +00:00
deraadt 6548614b2e if_init goes away. 1993-11-05 10:51:50 +00:00
cgd 6ca8998c91 GENERIC: add mcd0
TEST: add mcd0, commented out
files.i386.newconf: add support for mcd driver
1993-11-04 09:28:26 +00:00
cgd 08c263706c add mcd: Mitsumi CD driver by Holger Veit and Brian Moore 1993-11-04 09:12:30 +00:00
phil 4e1f2bee45 Fixed documentation. 1993-11-04 07:58:55 +00:00
phil f3b1236dc8 State update, still not working. 1993-11-04 07:58:29 +00:00
paulus 5fda6c1974 Removed test (CCOUNT(&sc->sc_ttyp->t_outq) == 0) for whether
to call pppstart or not: now we call pppstart for every packet,
which should aid recovery from lost transmitter interrupts.
Also a fix for 386BSD/FreeBSD which doesn't affect NetBSD.
1993-11-04 03:45:23 +00:00
mycroft 3bb5fc8b74 Enable is0. 1993-11-03 21:32:45 +00:00
cgd 554c91f74a change some flags back to bitfields, so it compiles. 1993-11-03 14:49:22 +00:00
cgd 64c1e3b2f5 new device pager from mike hibler, hibler@lamp. this is in its 'virgin' state 1993-11-03 14:48:42 +00:00
mycroft fa3ccaa273 Change comment about pms. 1993-11-03 13:29:37 +00:00
mycroft e163596ee8 Fix some comments and enable tb. 1993-11-03 12:48:31 +00:00
cgd 8900ab37e3 clean up, move some XXX's around, and note that one or two things should be
replaced with timeval{add,sub}, and generally be made more sane.
1993-11-03 09:08:42 +00:00
mycroft dd896d55b8 A theoretically working version. The probe routine needs work. 1993-11-02 23:59:34 +00:00
phil 1859a602ad Adding extra relocation information for the pc532. 1993-11-02 21:14:10 +00:00
mycroft 6c77f913e9 I have pms. ;-) 1993-11-02 20:40:57 +00:00
glass 3e21ea2e33 tablet line discipline compiles and probably works now. 1993-11-02 06:19:24 +00:00
mycroft 3103af7e6b Take advantage of special mask mode by leaving interrupts masked in ISR until
they are serviced.  No need to frob IMR.
1993-11-01 08:36:50 +00:00
mycroft 1a2c258aa6 Enable chaining IRQ only if we're using an IRQ on the slave. Other minor
cleanup.
1993-11-01 00:06:04 +00:00
mw b917a0d04f Change gfx-drivers to used g_data for their private data, and use regaddr
for what it's meant, that's to point to the register area. Now, both
gfx drivers should be fairly controllable from user-level applications.
1993-10-31 23:06:36 +00:00
mycroft 44c93f17b5 Grumble. Just set the blasted ICU mode before every read. Also, send the EOIs
to the right port in isa_flushintrs().
1993-10-31 20:21:11 +00:00
mycroft b1c739de48 Need to change to reading ISR in isa_discoverintr(). 1993-10-31 20:11:31 +00:00
mycroft 58dd8e7222 Read ISR by default. If DIAGNOSTIC, display ISR and IRR status for stray
interrupts.
1993-10-31 20:05:43 +00:00
glass bee2279a89 removed unnecessary #ifdef. config does the right thing. 1993-10-31 19:36:33 +00:00
glass 7a7e6dbd95 removed slip and ppp specific prototypes from tty.h where they didn't belong.
moved them to tty_conf.c within #if Nwhatever > 0 where they do belong.
made sure that if_sl.c, and if_ppp.c still compile quietly.
1993-10-31 19:27:45 +00:00
mycroft a4cf218142 Rearrange IDT initialization so it's easier to change ICU_OFFSET. 1993-10-31 18:36:21 +00:00
mw 3fb09cab4b Back out of a stack-adjust (in COMPAT_SUNOS mode) after syscalls that
returned ERESTART.
1993-10-31 01:53:36 +00:00
mw f6ea0d0d1c Define new flag MDP_STACKADJ to back out of a stack adjustment in
syscall() in case of ERESTART.
1993-10-31 01:52:12 +00:00
mycroft 196fd95009 Clean up deleted files. 1993-10-30 23:44:40 +00:00
mw 10e446bf72 new tree for amiga, replacing the bogous previous one.
SunOS support works for a lot of executables now (static and dynamic).
1993-10-30 23:41:47 +00:00
mycroft 7b1556d1c1 Clean up deleted files. 1993-10-30 23:41:45 +00:00
mw 4e382ac007 new tree for amiga, replacing the bogous previous one.
SunOS support works for a lot of executables now (static and dynamic).
1993-10-30 23:40:53 +00:00
mycroft 7029745061 Clean up deleted files. 1993-10-30 23:40:43 +00:00
mw 2be7316095 new tree for amiga, replacing the bogous previous one.
SunOS support works for a lot of executables now (static and dynamic).
1993-10-30 23:40:05 +00:00
glass 5e6a2e33c0 fix chris typo. 1993-10-30 16:11:07 +00:00
mycroft a74a4778b9 Enable fdc1 and assign it drq 3. 1993-10-29 20:38:46 +00:00
cgd b73e5e6647 kill the process 'space' accounting collection for the following reasons:
(1) text calculation incorrect (would 'overbill')
	(2) data calculation incorrect (would 'overbill')
	(3) the maxrss calculation uses stuff which isn't present
		on the sparc.
if 3/4 tests are questionable and/or broken, well...
1993-10-29 19:49:25 +00:00
cgd 06c4106aec limit block sizes requested 1993-10-29 19:25:18 +00:00
mycroft a30194515d Clean up deleted files. 1993-10-29 11:30:15 +00:00
andrew 0f926f7b02 ttyfree() bugfix edition, plus various minor tweaks. 1993-10-29 08:58:34 +00:00
mycroft 8bef6d7b03 Enable ed. 1993-10-29 04:33:34 +00:00
cgd 7c3008b8d7 kill physstrat 1993-10-29 02:15:30 +00:00
ws e9cc0abb40 Better handling of empty files (fix the symlink bug).
Let filenames alone, if mounted with -gen.
Change filename on associated files to start with `=' and not end in `@'.
1993-10-28 17:38:42 +00:00
brezak c1f78e111c Apply fix for PIT_MODE from Keith White <kwhite@csi.UOttawa.CA> 1993-10-28 14:00:54 +00:00
jtc 9c896370ee Did a ``make copy-to-libkern'' from libc to copy libc files to libkern.
Checking them in to make people happy.
1993-10-27 22:00:42 +00:00
deraadt e8c24a667b sys/dev/scsi -> sys/arch/sparc/scsi. 1993-10-27 18:14:16 +00:00
deraadt 90982eef07 back out of Torek's cache enable code since it makes 1/1+-style
esp chips blow chunks.
1993-10-27 18:12:47 +00:00
deraadt 776e071fd0 sys/dev/scsi -> sys/arch/sparc/scsi. 1993-10-27 18:09:38 +00:00
deraadt a397cbe66a more hacks to my private config file 1993-10-27 18:07:44 +00:00
deraadt 3098ee5fbe baseline scsi from torek.. mailed to me N>4 months ago. 1993-10-27 17:48:31 +00:00
mycroft 757af3406e isa_discoverintr(): Also check ipending, in case the interrupt is being shared.
Use delay() for timeout rather than timer channel 2.
1993-10-27 17:45:40 +00:00
deraadt 4d451a6072 slightly better syscall diagnostics. 1993-10-27 17:29:31 +00:00
mycroft ebe64b7361 Reenable interrupts in ipending before resetting it. 1993-10-27 08:00:40 +00:00
mycroft 651d86ab91 Arrange that IF is on but we are at splhigh() during autoconfig. Clear
ipending in isa_flushintrs().
1993-10-27 06:48:39 +00:00
phil 2801e221f5 Final changes for RD_SIZE -> RAMD_SIZE. 1993-10-27 06:31:06 +00:00
cgd 436e431478 BSDI official patch #15:
SUMMARY:
    "panic: vrele: null vp", the problem seems to be that two renames are
    moving the same source, and the second one can't do it.
ALSO:
    in sync, check that rootfs is non-null before using it.
1993-10-27 02:33:40 +00:00
cgd 299ff91b14 BSDI official patch #14:
SUMMARY:
    Here is a patch for a kernel hang that can be provoked with a write
    or send of a negative amount.  The talk program is capable of exercising
    this bug.  This patch also includes a fix for a bug that caused data
    to be delivered to TCP in smaller chunks than desired, and which caused
    TCP to send a short packet when starting up.  Finally, there is a bug
    fix for MSG_PEEK with an oobmark pending.
1993-10-26 22:36:25 +00:00
cgd 889b512ea4 if you try to allocate a buffer larger than MAXBSIZE, panic. 1993-10-26 19:38:55 +00:00
brezak b92626678c Cleanup LDT/GDT defines 1993-10-26 15:53:54 +00:00
brezak 5be77b1847 Fix for new ZMAGIC. Define start address. 1993-10-26 15:52:55 +00:00
mycroft 32ee2e4e3f Stylistic change to IDT initialization. 1993-10-26 15:45:18 +00:00
mycroft 79682dc7fe Replace a %s with %x. 1993-10-26 14:22:41 +00:00
mycroft 118cdf4851 Clean up deleted files. 1993-10-26 13:15:17 +00:00
mycroft 787c131944 Remove bogus port for pccons. Remove ACCOUNTING. 1993-10-26 12:19:38 +00:00
mycroft 4d9cffef5e Hard-wire the timer IRQ. 1993-10-26 12:18:28 +00:00
mycroft 08f5f6a6fa Add MADDRUNK. 1993-10-26 12:16:35 +00:00
mycroft 3883efe0da Fix IDT initialization bug. Don't allow IRQ 0 to be autoconfigured. 1993-10-26 12:10:01 +00:00
phil a7a10ca319 Dealing with the "broken" _VA_LIST_ stuff. 1993-10-26 07:15:56 +00:00
cgd 13ca4d98c7 it's correct to return EACCES if FS is mounted MNT_NOEXEC. 1993-10-26 01:42:56 +00:00
cgd c7582cbd4f use copyinstr rather than strcpy to copy in the saved shell-script
name from userland.  From Markus Wild, mw@lamp
1993-10-26 00:32:29 +00:00
phil a47d7aceed Adding the proper stuff that I forgot. (POSIX/ANSI) 1993-10-25 06:18:47 +00:00
phil 493236e982 making the "#ifndef _MACHINE_FILE_H_" more complete and consistent. 1993-10-25 06:11:58 +00:00
paul 899963d591 Latest version of isolan driver.
Replaced all static arrays with malloc'ed memory.
Added code so that debug ioctl actually does something.
1993-10-25 03:30:54 +00:00
davidg 16a520e7ed * Revision 2.11 1993/10/23 04:21:03 davidg
* Novell probe changed to be invasive because of too many complaints
 * about some clone boards not being reset properly and thus not
 * found on a warmboot. Yuck.
 *
 * Revision 2.10  1993/10/23  04:07:12  davidg
 * increment output errors if the device times out (done via watchdog)
 *
 * Revision 2.9  1993/10/23  04:01:45  davidg
 * increment input error counter if a packet with a bad length is
 * detected.
 *
 * Revision 2.8  1993/10/15  10:59:56  davidg
 * increase maximum time to wait for transmit DMA to complete to 120us.
 * call ed_reset() if the time limit is reached instead of trying
 * to abort the remote DMA.
 *
 * Revision 2.7  1993/10/15  10:49:10  davidg
 * minor change to way the mbuf pointer temp variable is assigned in
 * ed_start (slightly improves code readability)
 *
 * Revision 2.6  93/10/02  01:12:20  davidg
 * use ETHER_ADDR_LEN in NE probe rather than '6'.
1993-10-23 04:59:41 +00:00
cgd 9f8465b49c use obj.${MACHINE} dirs to compile into 1993-10-23 02:33:12 +00:00
mycroft 3810963ed5 Add at_setup_dmachan(). Minor cleanup. 1993-10-22 20:24:14 +00:00
mycroft 4b7f8b8a62 It does not make sense to mask a fastintr. 1993-10-22 19:33:13 +00:00
mycroft 0c9ce6ed1f New file with interrupt-handling code. Add intr_fasttrap(). 1993-10-22 19:27:40 +00:00
mycroft f1dda6c852 Add intr.c. 1993-10-22 19:17:32 +00:00
cgd ce7108c729 slightly clean up ws's original patch to this file for the sense
of wait vs. nowait.  this patch from torek.
1993-10-22 02:48:35 +00:00
cgd 1b8b52c8c5 mapping the mem or kmem devices is *very* dangerous with the current
vm system.  Don't allow it.
1993-10-21 23:55:02 +00:00
jtc 79591d04bc So many files in arch/i386 have been changed I might as well run my
remove unecessary trailing whitespace script.
1993-10-21 01:48:14 +00:00
jtc 823c36577c Change instances of LIBC_RCS back to LIBC_SCCS. If we are going to change
th LIBC_RCS, the entire source tree should be updated at once.
Remove && !defined(lint) from conditionals around rcs id's.  No one is
ever going to pass a *.s file through lint.
1993-10-21 01:39:55 +00:00
cgd 80a3179079 vanquish the tree of the last traces of /dev/acct 1993-10-21 00:29:03 +00:00
cgd a65ca356db oops 1993-10-21 00:15:47 +00:00
cgd e75ed9019d no more subr_acct.c 1993-10-21 00:14:34 +00:00
phil d5540a64d1 Added support for making libkern.a. 1993-10-20 23:53:26 +00:00
cgd 430d001c1a get rid of ACCOUNTING option. it's mandatory, and there's no define any more. 1993-10-20 23:04:52 +00:00
cgd f784b878c2 ACCOUNTING define doesn't exist any more... 1993-10-20 23:04:33 +00:00
jtc 97ad548bc0 Replaced instructions with immediate operands with compatible alternatives
saving a few bytes while the cycle count remains the same --- could
actually be faster, depending on the cache, prefetch queue, etc.
1993-10-20 18:50:15 +00:00
cgd 9ceb615f82 add some timeout_t typedefs 1993-10-20 00:53:34 +00:00
cgd 982b84038f revert to net/2 1993-10-20 00:52:58 +00:00
cgd fc8ee7437c knf'ify, clean up some, move sysacct() args out of function declaration. 1993-10-20 00:45:34 +00:00
cgd 287eb9a50e delete my '/dev/acct'-style accounting in favor of the version written by
Mark Tinguely (tinguely@plains.NoDak.edu).  It's the 'standard' way
of doing accounting, rather than a wacky one.
1993-10-20 00:16:40 +00:00
cgd 2ff9ed5060 fix my last change; for some reason i thought that 'p' was defined
in these functions.  use curproc instead.
1993-10-19 23:41:44 +00:00
cgd ddd610e422 from Mark Tinguely, with mods by davidg and then fially fixed by cgd.
do the space-used integration, over time, for processes.
1993-10-19 23:37:50 +00:00
deraadt 9b363afc2d Define the {QUAD,UQUAD}_{MIN,MAX} things here. 1993-10-19 09:03:41 +00:00
cgd 215649adeb from Mark Tinguely (tinguely@plains.NoDak.edu): record when processes are
swapped...
1993-10-19 02:54:09 +00:00
cgd dfaa02a09b pay for block i/o. slightly different than how done by Mark Tinguely. 1993-10-19 02:47:56 +00:00
cgd 27bc255b86 kill accounting. 1993-10-18 23:22:56 +00:00
cgd d7498e64da fix the 'size allocated vs. MAXBSIZE' check for buffers. Instead
of making vfs_bio *and* machdep.c deal with it, just deal with it
here, where we actually allocate the physical memory for pages.
1993-10-18 23:14:13 +00:00
cgd 1411cfbd47 byte-order fixes, and bunch of debug printfs... 1993-10-18 23:01:13 +00:00
cgd 238d7de281 byte-order fixes 1993-10-18 22:59:56 +00:00
cgd 20d926b4e9 change ni_rdir to ni_rootdir in #ifdef PARANOID. from rgrimes 1993-10-18 22:42:14 +00:00
mycroft 9eafd05204 Add I486_CPU. 1993-10-18 16:25:42 +00:00
pk f0c6138247 Made "start" the entry point (for consistency with other "ld" lines). 1993-10-18 14:41:31 +00:00
pk f8b564f223 Fixed typo. 1993-10-18 14:35:45 +00:00
pk 14ba800a2f Provided entry point (_boot1) to ld.
Use DESTDIR when installing.
1993-10-18 13:34:26 +00:00
deraadt 0e9ecd46ec fix a typo 1993-10-18 13:28:19 +00:00
deraadt 3af6e429f4 decl of ttrstrt isn't here anymore. 1993-10-18 11:49:16 +00:00
pk 14e6ea89aa Put definition of __LDPGSZ and `struct relocation_info' where they belong:
in <machine/exec.h>.
1993-10-18 09:46:56 +00:00
pk 593a6c40ef Explicit entry point specified in kernel link command.
(so far, we've been lucky only because vers.o doesn't contain text)
1993-10-17 20:56:09 +00:00
mycroft 107d011b19 Add KBR_EXTENDED. 1993-10-17 14:04:15 +00:00
mycroft 7620c96e5d Make atdevbase an int. 1993-10-17 14:03:54 +00:00
mycroft 6067dc9ea8 Minor cleanup. 1993-10-17 05:34:23 +00:00
deraadt 0f39e223a2 use RCONSOLE; whee 1993-10-17 04:41:34 +00:00
deraadt 64a71293dc fbio.h, mailed from Torek. This file is from Sprite, and clearly an
extensively modified SunOS file. *sigh*.
(ie. Feel free to rewrite it from scratch...)
1993-10-16 11:14:51 +00:00
cgd bf4b776381 total overhaul. still needs a lot of cleanup though... 1993-10-16 07:57:36 +00:00
mycroft 7e8063835d Use `swap generic'. 1993-10-16 07:48:04 +00:00
cgd 29988603d4 add a header file with some protos... 1993-10-16 07:32:22 +00:00
deraadt 53402794da mountroot is defined in vfs_conf.c 1993-10-16 07:23:10 +00:00
mycroft 2ce6de16d5 Add isa_establish(), for all it's worth (which is to say, nothing). 1993-10-16 05:25:21 +00:00
mycroft c73d85d341 Panic if DMA with odd length attempted on a 16-bit channel. 1993-10-16 03:55:59 +00:00
phil 5df59aabeb Changes for ram disk specification. 1993-10-15 22:46:46 +00:00
cgd d3731177f7 rename nfsboot.c, and add boot_tftp.c, which isn't done yet. 1993-10-15 13:52:26 +00:00
cgd 4bcf529b86 oops; forgot to move these definitions over, before... 1993-10-15 13:47:22 +00:00