Commit Graph

1291 Commits

Author SHA1 Message Date
cgd dd818c7cd0 get rid of __main() -- it's going into libkern 1993-10-15 06:16:22 +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
cgd 8bf3fac77c comments need ... '/'s at the end of them!!! 1993-10-14 22:35:26 +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
glass e74dea9259 upgraded the critical bits to 'bootbootp' version 0.3.
added file to describe bootbootp -> netboot integration, though it does so
badly and without much detail.
1993-10-14 04:53:34 +00:00
glass 392149b053 this is the disgusting temporary hack to assist people booting over nfs via
hacked structures until netboot works.

the word "abortion" comes to mind.
1993-10-14 03:05:02 +00:00
cgd aed90a8659 make user define debug variable. get rid of the COMMON_ETHER
define; always require a machdep_common_ether routine, which
may do zip if no common enet addr
1993-10-13 21:22:27 +00:00
cgd b6a7521043 separate globals, add the bootinfo.c file to the lib 1993-10-13 16:33:55 +00:00
cgd c141ecaada fix lbl revision number, and update to latest lbl source (fix bug) 1993-10-13 13:55:38 +00:00
cgd c667517e13 punt on doing minimal work in favor of less output in 'happy' case. 1993-10-13 12:19:37 +00:00
deraadt 8ebe5e2c2c add ps_usertramp to to struct sigacts.
SunOS compatibility; libc sigtramp
1993-10-13 12:10:20 +00:00
cgd 6592c78474 slight cleanup, also, use correct directory... 1993-10-13 11:36:28 +00:00
cgd 0f46396502 define COMMON_ETHERADDR 1993-10-13 11:31:32 +00:00
cgd 78c33b3965 add mini standalone libc, to be filled in as necessary. 1993-10-13 11:16:19 +00:00
cgd ccca0093a2 add mini standalone libc, to be filled in as necessary. strip extra gunk 1993-10-13 10:58:41 +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
cgd 2fcc3cd764 add a bunch of .NOTMAINs 1993-10-13 06:17:16 +00:00
cgd 15f1203e06 slight cleanup, and ... (gasp) add comments 1993-10-13 05:55:19 +00:00
mycroft a56ad85df4 Clean up deleted files. 1993-10-13 05:42:10 +00:00
cgd 2d4295eb29 move 'boot' and 'libkern' into 'lib'. generally clean up 'kernel library'
building and dependencies.
1993-10-13 05:40:23 +00:00
deraadt 9b8b095ea1 fix typos 1993-10-13 03:27:52 +00:00
deraadt c52686ddb3 from magnum branch: nbqd() was broken 1993-10-13 03:15:57 +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
jtc 799c55f316 Moved _POSIX2_VERSION macro from <limits.h>. 1993-10-12 21:58:49 +00:00
glass 428bb7f594 netboot is now in the tree. the argument that finally resulted in it being here
will also keep netboot from compiling until fixes are made.
1993-10-12 06:02:08 +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
jtc 9770032514 Make C++ safe by wrapping in __BEGIN_DECLS, __END_DECLS. 1993-10-11 18:28:04 +00:00
phil b43476d41c Changing a bsd => bsr. 1993-10-11 18:23:17 +00:00
jtc 9064bd694b Move forward declaration of struct rusage into !_POSIX_SOURCE conditional. 1993-10-11 18:18:10 +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
cgd e98e3183fc get rid of a few ref's to buffer_map 1993-10-11 02:11:28 +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
cgd f017d3a03f deal with the libc "arch" change 1993-10-10 01:53:09 +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 3ae2c70acd sometimes we want a profiled libkern. i can't ever see wanting a
PIC one...
1993-10-07 19:40:36 +00:00
cgd 0b9f50897e make an arch directory in libc, and move all machine dirs into it 1993-10-07 00:17:24 +00:00
cgd 13a840d756 generalize kernacc() to any protections in the function "kerncheckprot()",
and prototype it.
1993-10-06 23:38:19 +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
mycroft 8cc28d314c Merge changes from trunk. 1993-10-06 12:09:35 +00:00
mycroft e9b92335b0 Add DRQUNK and IOBASEUNK. 1993-10-06 12:09:25 +00:00
andrew 81a9642670 Added entry for Cyclades Cyclom-{4/8/16}Y multiport async serial board
driver.
1993-10-06 09:31:30 +00:00
andrew e256404adc Cyclades Cyclom-{4/8/16}Y multiport async serial board driver. 1993-10-06 09:30:16 +00:00
andrew 13a48b8263 Goes with the new cy driver. 1993-10-06 09:27:27 +00:00
cgd a84055b552 use the ALIGN macro to align the stack, rather than rounding up
by a (char *).  the former is safe, even on strange machines
(read: sparc).
1993-10-06 07:27:58 +00:00
cgd 714fa4716b changed the Debugger() call, which not all kernels have, to panic(),
but only when DIAGNOSTIC is defined.
1993-10-06 07:24:21 +00:00
cgd f09334ef6c we need the buffer hack again, now that we have a real vfs_bio... 1993-10-06 02:06:49 +00:00
phil 61a498a571 Fixing the SCSI DMA EOP problem. 1993-10-05 21:37:02 +00:00
phil 46cc20d10e Fixed bug in calculation of nbuf and bufpages. 1993-10-04 16:09:28 +00:00
cgd a92b57431b make nbuf = bufpages, now that vfs_bio can do the rational thing. 1993-10-04 04:57:09 +00:00
cgd 772436479d new, improved, and rationally-implemented vfs_bio. no more serious
structural changes should happen, as it now does the right thing
w.r.t. buffer resizing and having lots of buffers vs. relatively
little buffer space.  Ports can now "do the standard thing", re:
nbuf and bufpages, which is make nbuf = bufpages by default.
1993-10-04 04:56:28 +00:00
pk 3387aa5184 Defined exec header flag for dynamically linked executables and shared objects. 1993-10-02 20:08:19 +00:00
deraadt 4588caefaa Chris Torek's sparc port. Missing lots of things. 1993-10-02 10:22:00 +00:00
mycroft 9a1fcf008b Update after fixing syscalls.master. 1993-10-02 09:55:09 +00:00
mycroft c05111e593 Put back the $'s in the RCS id that the last commit removed. 1993-10-02 09:51:40 +00:00
mycroft 614a71039d Call output routine redundantly to possible avoid some hangs due to missed
interrupts.
1993-10-02 09:28:04 +00:00
mycroft 188ab15167 Ignore carrier if not using hardware carrier detect (i.e. CLOCAL is set). 1993-10-02 08:55:16 +00:00
cgd 174c25bd21 add mmmmap (mem device mmap routine). possible problems:
(1) the 'physmem' constant has a value which i don't think is
		correct
	(2) not sure what happens if you mmap a region of kmem which is
		not in the kernel's address space...
1993-10-02 00:16:24 +00:00
cgd 95e5868ee2 allow an offset to *really* be passed in for mmap's on devices.
From Julian Elischer.
1993-10-02 00:00:21 +00:00
mycroft ee70c53e3f Display a less cryptic message when the ring buffer overflows. 1993-10-01 23:12:04 +00:00
mycroft f969ea9aa8 Fix probe routine to work for multiple controllers. 1993-10-01 23:07:27 +00:00
phil b8234df3d9 Catching up with NetBSD current. 1993-10-01 23:01:01 +00:00
mycroft 018d1230b2 Read ethernet address correctly on NE1000 boards. 1993-10-01 22:59:57 +00:00