Commit Graph

1157 Commits

Author SHA1 Message Date
jtc 8173ef3c7f Compile libkern too. 1993-09-10 23:33:02 +00:00
jtc 46994ea76a Install libkern.a in sys/arch/${MACHINE}/compile. 1993-09-10 23:32:17 +00:00
deraadt 042a6b6653 MID_PC532 -> MID_NS32532. All of these machines have 4K page sizes. 1993-09-10 21:27:35 +00:00
phil b8dd804aaf Changed MID_NS32K to the correct MID_PC532. 1993-09-10 20:02:11 +00:00
phil e401483244 Adding the src/sys/arch/pc532 tree. 1993-09-09 23:53:45 +00:00
phil de69711383 These changes are due to a mismatch with user functions prototyped as
func(short) and the fact the the kernel uses full ints.  This caused
problems on the pc532 port.  These fixes take the good 16 bits passed
by the user program and converts them into the correct form for the
kernel.
1993-09-09 22:03:59 +00:00
mycroft c87683c012 Make various macros work if outb() is being inlined. 1993-09-09 15:16:14 +00:00
davidg a5f8e1f738 added include of select.h to bpfdesc.h because it now has a reference to
struct selinfo.
1993-09-09 09:43:18 +00:00
davidg 1c880d62bf As of this revision, all known bugs have been fixed. Some of the fixes include:
1) fixed 3c503 lock-up if the thinwire cable was disconnected at boot time
2) 8013EBT boards now work (quite well!) in 16bit/16k mode
3) ED_NO_DOUBLE_BUFFERING flag now works
4) slightly higer performance (about 3%) with 16bit WD/SMC boards
5) support for WD8013WC (10BaseT) boards

   Additionally, the probe code has been reorganized to be much cleaner. This
revision of the driver is 1.25. The release notes have been updated as well.
1993-09-09 09:40:56 +00:00
mycroft 64540d3533 Patch from David Greenman to reduce CPU usage during network transmit. 1993-09-08 21:12:49 +00:00
jtc aabddf622f STDC -> __STDC__ 1993-09-08 16:55:17 +00:00
cgd 84a8fbe900 ws forgot two backslashes (so it tossed his 'cookies') 1993-09-07 20:02:19 +00:00
ws 053f138dae Changes to VFS readdir semantics
NFS changes for better cookie support
ISOFS changes for better Rockridge support and support for generation numbers
1993-09-07 15:40:14 +00:00
mycroft 6409dcaef1 Trivial stylistic change. 1993-09-07 07:35:41 +00:00
mycroft 0230178143 Clean up deleted files. 1993-09-07 02:25:20 +00:00
deraadt a6b1318c68 Adding the (non-optional) option MACHINE_NONCONTIG 1993-09-07 00:56:05 +00:00
mycroft 515949e42e Add a bunch more shit that was missing. 1993-09-07 00:36:27 +00:00
mycroft 5be4167214 Rearrange SCSI probing to actually work. 1993-09-07 00:25:50 +00:00
mycroft 0dc9a11469 Rearrange ethernet probing in the vain hope that maybe, just maybe, the ne0
probe's effect on ed0 will be reversed when the latter is reset.
1993-09-06 23:35:19 +00:00
mycroft 8c7f0d2e48 Comment out we0 and ec0, and add equivalent ed0 and ed1. 1993-09-06 23:31:33 +00:00
mycroft 5e532f3f9f Add a generous dose of comments. 1993-09-06 23:29:33 +00:00
mycroft 07e57f53a2 Put back printf() for entry point. It certainly fits. 1993-09-06 22:09:45 +00:00
mycroft 58f1a7c3cd Make nfs_timer() return void. 1993-09-06 21:25:20 +00:00
mycroft a75978c2e0 Change `NFS' to `NFSSERVER,NFSCLIENT'. 1993-09-06 21:15:56 +00:00
mycroft 229a34c6b3 Correct I/O ports for mice. 1993-09-06 18:37:56 +00:00
mycroft 0535b6089e Avoid clash of struct ns_addr with #define ns_addr. 1993-09-06 18:30:39 +00:00
mycroft 84c634662f Move the `#include "bpfilter.h"' to a more logical and easy to find place. 1993-09-06 18:27:22 +00:00
mycroft bec04754dc Update for new select(), and fix another `struct arpcom.ac_enaddr'. 1993-09-06 18:24:35 +00:00
mycroft e591f2882f Declare frame_reject(), rej_routine(), free_iframes() as static. 1993-09-06 18:09:55 +00:00
mycroft f2a8151b46 Move pk_flowcontrol() up and declare it static void. 1993-09-06 18:08:02 +00:00
mycroft 9548a87f3c p_netservice is a u_char. There is no imaginable reason to check it < 0. 1993-09-06 18:05:06 +00:00
mycroft eee6903080 Make snpac_age() and esis_config() return void to eliminate warnings. 1993-09-06 18:02:44 +00:00
mycroft 80d54c4ba8 Declare old_to_new() and new_to_old() as static, to eliminate warnings. 1993-09-06 17:43:33 +00:00
mycroft 29c396142a Update for new select() mechanism. 1993-09-06 17:41:45 +00:00
mycroft 91b8683f3e Make Ctrl-Space and Ctrl-2 send a NUL, even without XSERVER defined.
(This has annoyed me for a while, and people are complaining about it.)
1993-09-06 05:52:33 +00:00
mycroft 15567ab7a7 Add missing arg to vm_mmap() call in grfmmap(). 1993-09-06 02:24:08 +00:00
mycroft 526dbecdb2 A little more cleanup; 0 --> FALSE and 1 --> TRUE. 1993-09-06 02:06:34 +00:00
mycroft cc054a83e7 De-ANSIfy and re-KNFify. 1993-09-06 02:03:03 +00:00
mycroft 9cd4c25c2a Second wd0 should be wd1. 1993-09-05 22:34:12 +00:00
mycroft 29aea147e8 Add \n to end of error message. 1993-09-05 22:07:31 +00:00
deraadt 25ea1dc489 add possibly working sparc libkern stuff 1993-09-05 21:50:41 +00:00
deraadt 0b7eb3ad09 add possibly working sparc libkern stuff 1993-09-05 21:39:52 +00:00
mycroft 59d53ecfbf Check some boundary conditions is cursor movement and scrolling. 1993-09-05 17:56:58 +00:00
deraadt 7c8271a011 I give up. Clearly, SYMTAB_SPACE is required at the moment to build a
kernel that doesn't go foom in locore.s
1993-09-05 16:42:54 +00:00
sef b477be52eb Yet more of the ptrace() reorg; now ptrace_setregs() and ptrace_getregs()
are present, along with PT_GETREGS and PT_SETREGS ptrace commands.
1993-09-05 03:53:52 +00:00
cgd 15359c9f59 enable loadable execution handlers. need to do something better re:
how much of the file to pass in the exec package, but i think the
solution to that will be to pass e.g. a disk block's worth, or whatever;
if exec handlers really need more, they've got the damned vnode.
1993-09-05 01:36:28 +00:00
cgd 83aeee1bc0 there now exists an "exec switch". break the a.out code into another
module, and tidy up the interface so that other object formats are
more easily supportable.
1993-09-05 01:33:35 +00:00
cgd 5384291866 add kern/exec_aout.c as a standard file. 1993-09-05 01:31:59 +00:00
cgd 9840b0b7af update for new exec; a few name changes and (*gasp*) addition of comments. 1993-09-05 01:31:39 +00:00
cgd 76b9770c58 update for new exec; this (hp300 change) hasn't been checked, but is
just naming changes and addition of comments...
a couple of XXX's:
 * XXX what are the special cases for the hp300?
 * XXX why is this COMPAT_NOMID?  was something generating
 *      hp300 binaries with an a_mid of 0?  i thought that was only
 *      done on little-endian machines...  -- cgd
1993-09-05 01:31:14 +00:00
cgd a05bd46763 patch from Szabolcs Sziget <pink@bagira.fsz.bme.hu> to load lkm device
drivers properly.
1993-09-05 00:55:57 +00:00
cassidy 40c0c0a558 Add definition for reverse address resolution protocol. 1993-09-05 00:52:15 +00:00
cassidy 660c5a501a Add definitions for RARP request and reply. 1993-09-05 00:46:54 +00:00
cgd 59a008c712 change maximum stack size to 8M. 1993-09-04 22:21:28 +00:00
sef fddf2c7605 ptrace_single_step() and ptrace_set_pc() should return errors if
necessary.  (Mainly because the SPARC can't easily single step, so
it should return EINVAL, and then ptrace() should return that to the
user.)
1993-09-04 08:46:36 +00:00
cgd 3aa99f85dc better ptrace() support from Sean Eric Fagan <sef@kithrup.com> 1993-09-04 05:32:18 +00:00
cgd 37e8d5291e get rid of bogosities of the form "vm_maxsaddr + MAXSSIZ", and replace
them with USRSTACK.  the former was a hack by wfj to accomodate his screwy
execve() implementation.  the latter is a (minor) reversion to net/2.
1993-09-04 01:29:22 +00:00
cgd 2403a33987 decouple MAXDSIZ and MAXSSIZ. MAXSSIZ now is 2M; shouldn't need more,
and saves time in exec.
1993-09-04 00:38:47 +00:00
cgd 6a474f29e2 get rid of maxdmap, and seperate MAXDSIZ and MAXSSIZ in rlimit checking. 1993-09-04 00:37:54 +00:00
jtc 4475f55d8f Include systm.h to get prototypes (and possibly inlines) of *max functions. 1993-09-04 00:02:48 +00:00
jtc 9c00bc072d Include systm.h to get prototypes (and possibly inlines) of *max functions.
Change mbinit() to match prototype.
1993-09-04 00:01:43 +00:00
jtc f7b7d95850 include systm.h to get prototypes (and possibly inlines) of *max functions. 1993-09-04 00:00:19 +00:00
jtc f1fd37d722 Include systm.h to get prototypes (and possibly inlines) of *max functions. 1993-09-03 23:57:21 +00:00
jtc 845813ef01 Inline max, min, imax, and imin if using GCC. 1993-09-03 23:53:09 +00:00
jtc ca642ba3a4 Pull list of port dependant functions from ${MACHINE}/Makefile.inc.
Pull list of arch dependant functions from ${ARCH}/Makefile.inc.
1993-09-03 19:05:59 +00:00
jtc cb00e61145 Files needed for HP300 port 1993-09-03 19:04:47 +00:00
jtc e2d94bde8f Files needed for i386 port 1993-09-03 19:04:23 +00:00
jtc 1142cb8b4f Assembly routines common to all m68k ports. 1993-09-03 19:03:23 +00:00
cgd fb0dffe28a new byte-order-independent isofs patches from mw 1993-09-03 04:37:52 +00:00
cgd 90fe4cc799 make the EJUSTRETURN return in the lookup function be #ifdef __bsdi__,
because they did some strange hacks in vfs_lookup...
1993-09-03 04:36:25 +00:00
mycroft 0b3f240c49 Ditto. 1993-09-02 19:05:40 +00:00
mycroft e4f1378e00 For some reason I don't understand, a change disappeared from the CVS tree. 1993-09-02 19:04:41 +00:00
mw 3b2546cf2e new source release integrated from amiga-release. 1993-09-02 18:05:24 +00:00
mw f208f36711 Update of arch/amiga tree, includes
- realtime clock support for a2k and a3k
- scsi drivers for a2091 and gvp-II controllers in a2k
- working ethernet driver for a2065/ameristar lance-controllers
1993-09-02 16:52:31 +00:00
mw 9ecae8d2e1 Initial revision 1993-09-02 16:52:30 +00:00
mw 7dac6517f1 Update of arch/amiga tree, includes
- realtime clock support for a2k and a3k
- scsi drivers for a2091 and gvp-II controllers in a2k
- working ethernet driver for a2065/ameristar lance-controllers
1993-09-02 16:52:13 +00:00
paulus 3ecb88ccbc Fixed bug in if_ppp.c so that received IP packets are passed correctly to BPF. 1993-09-02 12:10:59 +00:00
cgd c10d5aa752 get rid of bogus #define of resettodr(); now setting time actually works! 1993-09-02 02:10:35 +00:00
jtc afa3cebb3c Add stuff for HP300 that "looks" right. 1993-09-02 01:50:22 +00:00
jtc c0b7ba2878 i386 kernel uses a different setjmp() than the C library does. 1993-09-02 01:01:47 +00:00
jtc 234dcd9a54 Use .PATH: to grab appropriate files from the C library. 1993-09-02 01:00:42 +00:00
cgd 491d6b4b9d fix problem where exec would lose on shell scripts with symlinks in
their names.  fix from "James W. Dolter" <jdolter@sawtooth.eecs.umich.edu>.
test script:

#!/bin/csh
mkdir /tmp/foodir
cat > /tmp/foodir/testscript <<EOF
#!/bin/sh
echo "Executing script \$1"
EOF
chmod 755 /tmp/foodir/testscript
(cd /tmp ; ln -s foodir foosym)
echo "Trying full path (w/o symlink) to /tmp/foodir/testscript"
/tmp/foodir/testscript "with out symlink"
echo "Trying full path (w/ symlink) to /tmp/foosym/testscript"
/tmp/foosym/testscript "with symlink"
echo "End of Test"
1993-09-01 21:43:50 +00:00
jtc 4e075d626f Start of libkern.a 1993-09-01 21:14:13 +00:00
glass 2cb87de98b fixs long broken 'dequeue' macro which would expand to 'dequeue_head' which
is never defined. added fix from my private sources:
#define dequeue_head(queue)     remqueue(queue, queue_first(queue))
no one noticed, because everyone used the 'remqueue' interface except me.
1993-09-01 15:55:26 +00:00
glass 5da38538f7 sun3 has scanc support, so it doesn't need the ufs_subr.c version
this crud will go away with the usage of libkern
1993-09-01 15:53:42 +00:00
glass 9b5c6f79ab sun3 like n-other platforms is currently using the empty cpu_disklabel struct 1993-09-01 15:51:21 +00:00
deraadt 20c3896fb4 MID_PC532 (NS32532 w/ 4K pagesize) 1993-09-01 08:56:03 +00:00
deraadt 408a659fa9 pc532 has an empty cpu_disklabel 1993-09-01 08:54:36 +00:00
deraadt ae8b49f87b #ifdef pc532 in same places as #ifdef i386 1993-09-01 08:49:45 +00:00
mycroft 73c9dd61b0 Add ed2, as per GENERICAHA. 1993-09-01 05:36:33 +00:00
mycroft 3db4b24245 Add ed2 at 0x300, irq 10, 0xcc000, which people can configure by hardware. 1993-09-01 02:31:10 +00:00
deraadt 28c37a0949 fixed a little /lib/cpp boo-boo 1993-08-31 13:46:31 +00:00
cgd d365662684 ok, initialize that errno, to make theo and gcc2 happy... 1993-08-31 01:52:34 +00:00
cgd 518f7c78d6 a program being exec'd *must* cause *some* exec commands to be invoked;
if it doesn't there's a problem in the kernel, because a program
with no exec commands run will have no address space except the stack,
and i don't think it's valid to have a "run from stack only" exec type,
so panic.  if need for that case comes up later, it can be changed...
1993-08-31 01:46:36 +00:00
paulus d71061b357 Modified if_ppp.c and if_ppp.h to add priority queueing for "interactive"
traffic (done in a similar fashion to if_sl.c), and BPF support.
1993-08-31 00:05:27 +00:00
brezak 5bce7d4176 Add prototype for pmap_bootstrap(). 1993-08-30 18:09:57 +00:00
deraadt 2700f4771d add ppp
tty_ring.c -> tty_subr.c
vfs__bio.c -> vfs_bio.c
1993-08-30 07:30:35 +00:00
deraadt a87b4a30bd pagers are now options, not pseudo-devices 1993-08-30 07:09:20 +00:00
deraadt 86d51ac6f8 pagers are not options, not pseudo-devices 1993-08-30 07:07:53 +00:00
deraadt 6fce70ed63 blast it, i forgot two ('s 1993-08-30 06:25:10 +00:00
deraadt 9aed375ba3 tty XXstart() routines return void 1993-08-29 13:46:31 +00:00
deraadt a14da75496 add MID_SPARC 1993-08-29 13:25:25 +00:00
deraadt bab3a9ce58 added two __P() macros 1993-08-29 13:16:04 +00:00
brezak aaf4f8dbc5 Changes for boot loading of symbols. 1993-08-29 12:48:10 +00:00
brezak 7f550be7fd Remove prototype for pmap_bootstrap() 1993-08-29 12:12:20 +00:00
mycroft d48a7d8497 There is no longer any good reason to allocate a small number of ptys.
Increased to 32 so people will not bitch at me next time around.
1993-08-29 01:54:22 +00:00
cgd b1eacffd69 print more DIAGNOSITC info, and startrtclock early on the mac (like i386) 1993-08-29 01:50:49 +00:00
cgd 405b084fe6 return some errors other than EIO from swstrategy() 1993-08-29 01:50:20 +00:00
glass 4ec9b1bdc3 some more comments 1993-08-28 23:21:47 +00:00
glass 9ee18a34de last few notes 1993-08-28 16:11:51 +00:00
glass be4748c4d8 last snapshot before uploading 1993-08-28 15:40:22 +00:00
glass a2133ea268 last snapshot before uploading. we still have serious clock problems 1993-08-28 15:35:16 +00:00
cgd 468c5f5158 put PROCFS in pain... 1993-08-28 11:00:35 +00:00
brezak cbb8694148 Add func protos for shm*() syscalls. 1993-08-28 02:05:42 +00:00
brezak 966d7491cc Changes: Boot omagic kernels (like Mach), pass cnvmem, extmem, and esym args, load symbol table into memory, enable kbd clock. 1993-08-28 01:18:43 +00:00
brezak 534b51feac Declare find_isadev() function. 1993-08-28 00:13:55 +00:00
brezak 62164fe535 Add find_isadev() and have sysbeep() use common defines. 1993-08-28 00:13:00 +00:00
brezak 548e9c5a3f Remove warnings. 1993-08-28 00:11:33 +00:00
brezak db43439bb0 i386 Machine dependant changes to handle non-contiguous memory. 1993-08-28 00:02:45 +00:00
brezak a54d809cd8 Need LOAD_ADDRESS for depend pass. 1993-08-27 23:58:20 +00:00
brezak 42484186e9 Load at 1M and turn-on MACHINE_NONCONTIG option. 1993-08-27 23:55:28 +00:00
brezak 4aca3365cc i386 Machine dependant changes to handle non-contiguous memory. 1993-08-27 23:52:22 +00:00
brezak 15c3400ffe Machine independant changes to VM for handling non-contiguous memory. 1993-08-27 23:45:55 +00:00
mycroft bc2088820b + #if defined(INET) && NETHER > 0
+ #endif
Around the:
/* XXX -- Temporary fix before changing 10 ethernet drivers */
so you can compile a kernel with out INET and ETHERNET support.
1993-08-27 10:26:08 +00:00
pk dd119ec84b Implement setattr: mode for process entries; mode + uid/gid for the
PROCFS root directory.
Fixed omission in pfs_root() which came to light as a result of the above:
hold on to vnode for root dir.
1993-08-26 19:01:00 +00:00
pk 0732d8a8b1 Added VPROC to vprint()'s vnode type representation array. 1993-08-26 18:57:02 +00:00
cgd 4c54aa0ce8 yup, that's right folks, we're now working on 0.9a... 1993-08-26 10:59:16 +00:00
deraadt 538e35852c ugh. 1993-08-26 09:52:16 +00:00
cgd 225917bfe6 0.9 "official" patch 001:
(1)	added support for ed1 in both generic kernels at:
	device ed1 at isa? port 0x250 net irq 9 iomem 0xd8000 vector edintr
(2)	brought if_ed.c up to DG's 1.19 rev.
1993-08-26 00:26:50 +00:00
mycroft ac815031d0 Um, last change was wrong. Instead, add 3 to the number of inodes (forget
about the root directory, too).
1993-08-25 14:41:19 +00:00
mycroft b3f22bcdcc Subtract to from the free count for `.' and `..', to maintain the fiction that
this is a real file system.
1993-08-25 14:35:20 +00:00
pk 1e37ac6db4 Fixed improperly initialized nfsnode in pfs_lookup() 1993-08-25 09:28:39 +00:00
mycroft c5e6262e4e Add ACCOUNTING and GATEWAY options. 1993-08-24 21:39:35 +00:00
glass 8a49818de4 snapshot. starts nfsmountroot but doesn't seem to emit any packets 1993-08-24 20:26:48 +00:00
mycroft 59bd26aec5 Double data size limits to make GCC happier. 1993-08-24 17:56:21 +00:00
pk 8dc35fb5d6 Fill inode fields in procfs_statfs(), in stead of block fields 1993-08-24 17:49:16 +00:00
pk 834a44f21f copyright update. 1993-08-24 16:47:23 +00:00
pk 2741511a98 Added Rcs Id. 1993-08-24 16:29:29 +00:00
pk 0cbe77737a Rcs Id added. 1993-08-24 16:25:07 +00:00
mycroft ece0d82f04 Make mfs_print() return a void to prevent a warning from GCC. 1993-08-24 14:54:14 +00:00
pk 498189f379 Initial version of a proc filesystem. 1993-08-24 12:59:09 +00:00
pk d18c6d88d0 Support added for proc filesystem. 1993-08-24 12:56:22 +00:00
pk 691f917c0d ioctl definitions for procfs. 1993-08-24 12:55:11 +00:00
pk cc64019e82 Added support for proc filesystem. 1993-08-24 12:53:50 +00:00
pk 6b29756e78 Add files for proc filesystem. 1993-08-24 12:52:29 +00:00
mycroft 22ab556e04 If ospeed is set to 0, SIGHUP the session leader (if any). 1993-08-23 16:36:42 +00:00
mycroft 742dcd5655 RLIMIT_OFILE --> RLIMIT_NOFILE 1993-08-23 16:01:56 +00:00
cgd 4543c1ebfd changes from 0.9-ALPHA2 to 0.9-BETA 1993-08-23 04:59:38 +00:00
glass 6041363205 gets past enablertclock(), now time to deal with the mountroot mess 1993-08-22 21:26:15 +00:00
glass dc22f15a6d snapshot. for uploading. gets lost in swtch after enablertclock() 1993-08-21 02:16:07 +00:00