Commit Graph

909 Commits

Author SHA1 Message Date
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
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
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
mycroft 3bb5fc8b74 Enable is0. 1993-11-03 21:32:45 +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
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
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
mycroft a74a4778b9 Enable fdc1 and assign it drq 3. 1993-10-29 20:38:46 +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
brezak c1f78e111c Apply fix for PIT_MODE from Keith White <kwhite@csi.UOttawa.CA> 1993-10-28 14:00:54 +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
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 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
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
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 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
cgd 80a3179079 vanquish the tree of the last traces of /dev/acct 1993-10-21 00:29:03 +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
deraadt 9b363afc2d Define the {QUAD,UQUAD}_{MIN,MAX} things here. 1993-10-19 09:03:41 +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
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
mycroft 7e8063835d Use `swap generic'. 1993-10-16 07:48:04 +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 4bcf529b86 oops; forgot to move these definitions over, before... 1993-10-15 13:47:22 +00:00
cgd fba9bbc5d9 add back the bufpages limit 1993-10-15 11:55:39 +00:00
deraadt 6ecda95b8a rebuilt from syscall.master: {get,set}domainname change 1993-10-15 11:29:13 +00:00
deraadt ef0d3bd5cb fix sun_getdents()
fix sun_mmap()
Note: delete the "struct dirent" in here when sys/dirent.h is created.
1993-10-15 11:28:29 +00:00
deraadt fc55b2487e use the standard {get,set}domainname stuff 1993-10-15 10:58:42 +00:00
deraadt ab2ddd1c05 we now handle SunOS NMAGIC executables 1993-10-15 06:13:17 +00:00
deraadt cefac63158 actually put something in a previously empty file.
__LDPGSZ should now be defined here!
1993-10-15 06:01:06 +00:00
deraadt c6003607ba arch/sparc/sparc/sys_machdep.c is non optional; there is more in
there than just TRACE
1993-10-15 05:59:28 +00:00
deraadt 091c24de94 No need to allocate clists. 1993-10-15 03:37:33 +00:00
deraadt f51bf630eb default is to have nbuf = 0 and bufpages = 0 1993-10-15 03:00:56 +00:00
deraadt 56cc97cb80 update from rick, tarfile of Oct 11 10:46 1993-10-15 02:56:33 +00:00
mycroft 4f94812b29 New file with DMA code from isa.c, modified to check for some errors. 1993-10-14 05:22:57 +00:00
mycroft 5448e175cf Only include isa/dma.c if a driver which needs it is configured. 1993-10-14 05:17:24 +00:00
deraadt 2c5972e86b de-POSIX'ify sendsig() and sigreturn().
Eventually when we get POSIX signals, we will want to back out of this
change.
1993-10-13 10:05:03 +00:00
cgd 6f2e9c9325 fix one warning, and add (very bogus) ptrace_* functions until
i (hopefully) get real ones from somewhere
1993-10-13 09:36:43 +00:00
deraadt d03d6e0acd move sysarch() to sys_machdep.c 1993-10-13 09:01:07 +00:00
cgd 5387d8cb1b deal with libkern 1993-10-13 08:29:45 +00:00
cgd 0eabc3bc13 sysarch() belongs in sys_machdep.c 1993-10-13 08:25:57 +00:00
cgd 1957319559 add "sysarch()", as a fn returning ENOSYS, here, where it belongs 1993-10-13 08:19:03 +00:00
cgd ca99ee2862 md signal context. 1993-10-13 07:58:39 +00:00
cgd 944e753f33 get rid of #ifndef KERNEL around inclusion of cdefs.h 1993-10-13 07:51:09 +00:00
cgd a1c3bf517a use the new location for libkern, auto-depend on it, and include
the right one, for profiling or non-profiling.
1993-10-13 06:43:17 +00:00
deraadt 9b8b095ea1 fix typos 1993-10-13 03:27:52 +00:00
deraadt ecb833f678 initialize d_ttys and d_stop properly 1993-10-13 02:38:16 +00:00
deraadt 2ab4b5e978 fixups for dynamic tty allocation:
cdevsw[]->d_ttys must be initialized
XXstop() functions must be callable from cdevsw[]->d_stop
the console tty is used before vm system is up, and must
allocate it's own clists..
1993-10-13 02:36:39 +00:00
deraadt 4a2a17c2f1 rebuild files from syscalls.master 1993-10-13 02:32:36 +00:00
deraadt bb5626a7c8 Add a stub auditsys() system call that does nothing.
SunOS /sbin/fsck calls it..
1993-10-13 02:31:47 +00:00
glass b9e5a43208 sun3 port updated. netboot integrated. 1993-10-12 05:27:46 +00:00
glass 8585a64107 sun3 port updated. netboot integrated. 1993-10-12 05:17:41 +00:00
deraadt 63a052d489 fixed two icky rcs-log's. 1993-10-12 03:48:52 +00:00
deraadt fe806afec2 pmax code from <ralphc@pyramid.com> & <rick@snowhite.cis.uoguelph.ca> 1993-10-12 03:22:19 +00:00
phil b43476d41c Changing a bsd => bsr. 1993-10-11 18:23:17 +00:00
deraadt 13c7bc2156 machdep.c: setregs() adjusts the stack correct and warns about problems
cpu_exec_aout_makecmds() that understands sunos ZMAGIC.
trap.c: just Theo's debugging stuff, delete later.
1993-10-11 10:53:26 +00:00
deraadt 2521f66843 setregs():
%sp needs to be offset +sizeof(struct rwindow)
	warn if %sp isn't double-word aligned, it MUST be.
1993-10-11 04:26:33 +00:00
deraadt c147fc9845 various: timeout parms typecast properly
net-posted patches from torek
	sys-fbio.h -> machine/fbio.h
1993-10-11 02:49:44 +00:00
deraadt a851f1b5f1 bwtwo.c, cgthree.c: sys-fbio.h -> machine/fbio.h
if_le.c: #ifdef MULTICAST some things, and do arp the old way
1993-10-11 02:45:49 +00:00
deraadt b3147a8677 various changes, suffice to say that 4.4 syscalls do not look like ours 1993-10-11 02:44:06 +00:00
deraadt 2e78184935 cons.c, zs.c: tty->t_stop doesn't exist here. I think it goes through d_stop
automatically now, but have not checked.
	l_ioctl() has no last parameter 'p'
fb.c: move sys/fbio.h to machine/fbio.h
various: typecast parms for timeout() properly
zs.c: extra level of indir in cdevsw[]->d_ttys
1993-10-11 02:36:38 +00:00
deraadt d5b0b3dffa New location for libkern, fixes for many paths.
+ lots of temp changes to be backed out later!
DEBUG=-g always, use gcc, link with libgcc.a, include dirs in
a weird place for my development environment.
1993-10-11 02:33:25 +00:00
deraadt 7ee2311b78 stdarg.h, varargs.h, psl.h, autoconf.h: posted patches from torek
cpu.h: cpu_adjstack() won't work well in the NetBSD execve - need a
	different model, stub enablertclock() for now..
exec.h: a netbsd-type exec.h file (ie. empty)
param.h: add MID_MACHINE
pmap.h: delete kernel_pmap hack - it doesn't work for us, + two proto's
vmparam.h: VM_MIN_ADDRESS = 0!
1993-10-11 02:28:23 +00:00
deraadt ed575390ee pmap.c, machdep.c, autoconf.c, cpu.c, intr.c, : net-posted patches from Torek
autoconf.c: mountroot kludges that need fixing later
clock.c: two volatile decls
conf.c: stategy()'s return void, *tty[] not tty[], __P()'d xxdump() calls,
	add mem_no, *constty[] not &cons.
genassym.c, machdep.c: sys/vmmeter.h needed
intr.c: make kernel writable temporarily in intr_fasttrap()
intr.c: do not use NETISR_ARP
locore.s: icode maps at 0 so do not relocate, don't define __main here.
machdep.c: don't have sysctl.h (yet), use vm_page_free_count for freemem,
	setregs() sets pc/npc/stack, note: signal delivery code needs
	fixing, add various other NetBSD function stubs.
pmap.c: do kernel_pmap/kernel_pmap_store the old way, delete
	vm_page_startup_initialized weirdness.
swapgeneric.c: everything about mountroot needs fixing, help.
trap.c: sunsys -> sun_sysent, etc.
vm_machdep.c: don't use cpu_coredump() for now.
1993-10-11 02:16:12 +00:00
deraadt d9ead6b6f5 TDR: config file i'm testing with
files.sparc.newconf: a files file that works
files.sparc: old name for above file, might as well delete
1993-10-10 11:19:26 +00:00
deraadt 5dbfa8c726 need these 1993-10-10 11:18:03 +00:00
rgrimes d466119aa4 Convert space to tabs on the trapframe and sigframe lines 1993-10-10 07:23:34 +00:00
rgrimes 4119b752e0 Add symbols KERNSIZE and PDRSHIFT so that they can be used along with
KERNBASE to caclulate several constants in locore.s used for setting
up the vm system.
1993-10-10 07:07:52 +00:00
mycroft 4cbf1951c1 Put back assembler versions of setrq() and remrq(). GCC 2 is just too lame. 1993-10-09 22:49:29 +00:00
mycroft c8431a9508 Add locore2.c as standard. 1993-10-09 22:17:36 +00:00
mycroft 99e736549a Remove `device-driver' flags. 1993-10-09 08:55:24 +00:00
cgd 7b64280a28 patch from rod grimes:
Fix definitions to be in terms of a minimum number of constants by
using the SHIFT value as the basis for the other values, for example
instead of:
#define         NBPG            4096
#define         PGSHIFT         12
use:
#define         PGSHIFT         12
#define         NBPG            (1 << PGSHIFT)
1993-10-09 01:35:50 +00:00
cgd f51618137b genassym needs a dependency... 1993-10-09 00:31:21 +00:00
cgd fa29c74cd0 fix the mmap of kmem somewhat, but it's still not perfect...
(or, at least, it crashes the machines in some situations where
i don't think it should...)
1993-10-06 23:37:09 +00:00
cgd d4435d2bd4 get rid of excess target line for machdep.o 1993-10-06 21:19:11 +00:00
mycroft 004534e441 Add FASTLINKS. 1993-10-06 12:15:33 +00:00
mycroft 501c1b99ad Add cy. 1993-10-06 12:14:31 +00:00