Commit Graph

218 Commits

Author SHA1 Message Date
deraadt
3dbda08a31 add torek's new cgthree driver.
the brooktree DAC code has been split out from the cgthree driver,
and is now shared with the cgsix.
1993-11-14 15:00:50 +00:00
deraadt
61f6f87a4c update to latest syscalls.master 1993-11-14 14:56:35 +00:00
deraadt
ee8ffb2911 update to kern/syscalls.master, for SYSVSEM & SYSVMSG 1993-11-14 14:56:05 +00:00
deraadt
db97aa737f disassembly shows the %f2 register being accessed, and of course the
kernel panics.
why wasit using %f2? some expressions were too complicated and gcc2 (with
the optimizer off, mind you) ran out of integer registers and thus used
started using a float register for a temporary.
1993-11-14 14:46:54 +00:00
deraadt
fdcd4f2a13 different place than where Torek put it 1993-11-14 10:47:54 +00:00
deraadt
db4ffd69bb baseline code from Torek 1993-11-14 10:47:08 +00:00
deraadt
25800bfb5b specdev.h moves 1993-11-12 03:23:51 +00:00
deraadt
beab56ab90 new from torek:
add torek's comments to my DMA_DRAIN fix
1993-11-12 00:50:48 +00:00
deraadt
4c30adca67 new from torek:
add cgsix
1993-11-11 23:17:47 +00:00
deraadt
c9f2e616f8 from torek:
new brooktree dac code
hacked cgthree code
new cgsix (ala GX) code
1993-11-11 03:36:48 +00:00
deraadt
d9debd8a1b s/cntty/cn_tty/ 1993-11-10 15:06:41 +00:00
deraadt
ea61d92021 replacement set of sun ioctl functions. markus wild added a
whole slew of new ioctl's that are much more close to reality.

the comat-sunos tree is now almost good enough to be used in
both m68k and sparc kernels.
1993-11-10 15:03:33 +00:00
deraadt
3092f9ab32 we do not have sysctl 1993-11-10 14:36:07 +00:00
deraadt
a256e8b38a silly typo 1993-11-10 11:46:38 +00:00
deraadt
3593ac2407 sunos compat execve() helper routines.
these routines are not useful/used on the sparc, but are needed
by the sun3.
1993-11-10 10:31:35 +00:00
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
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
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
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
deraadt
4d451a6072 slightly better syscall diagnostics. 1993-10-27 17:29:31 +00:00
deraadt
9b363afc2d Define the {QUAD,UQUAD}_{MIN,MAX} things here. 1993-10-19 09:03:41 +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
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
deraadt
53402794da mountroot is defined in vfs_conf.c 1993-10-16 07:23:10 +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
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
deraadt
d03d6e0acd move sysarch() to sys_machdep.c 1993-10-13 09:01:07 +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
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
deraadt
4588caefaa Chris Torek's sparc port. Missing lots of things. 1993-10-02 10:22:00 +00:00
cgd
f6eaf9096e compile needs to be kept in the distribution 1993-04-19 23:30:06 +00:00