Commit Graph

2414 Commits

Author SHA1 Message Date
brezak 4f26b34d35 Includes filesystem types from 4.4 1994-01-18 01:32:06 +00:00
jtc c4b7945dca My previous checkin didn't really change the FPU Exception Mask -- it was
trapped inside an #ifdef -- this commit changes it as I had originally
intended.
1994-01-17 18:10:01 +00:00
mycroft 0df1b00481 Clean up deleted files. 1994-01-17 01:04:42 +00:00
briggs b05de50fc1 We aren't a VAX. 1994-01-17 01:04:08 +00:00
cgd 8c996398fc clean up, break script handling out of check_exec(), and comment a bit. 1994-01-16 03:09:59 +00:00
cgd e11a5f7688 casting for exec_package field changes 1994-01-16 03:08:18 +00:00
cgd 92cb33abed add function for FD handling 1994-01-16 03:07:33 +00:00
cgd 9230977177 update for new exec 1994-01-16 03:04:59 +00:00
cgd 4bceaf8efd bump ARG_MAX up to 256k; should be 1M, but not now 1994-01-16 03:04:05 +00:00
cgd 1e0d9f8ad1 add files for updated execve() 1994-01-16 03:03:38 +00:00
cgd a939028310 include <machine/cpu.h> not <machine/mtpr.h> 1994-01-16 02:22:51 +00:00
mycroft 900084ce24 Clean up deleted files. 1994-01-16 02:00:01 +00:00
cgd b8b27d46f2 pull in <machine/cpu.h>, rather than <machine/mtpr.h> for soft intr stuff 1994-01-16 01:58:59 +00:00
cgd d8f4f2b929 add nearly every option known to man, and clean up 1994-01-16 01:38:07 +00:00
cgd 82a0744073 turn on SYSVSHM and note the default value of SHMMAXPGS 1994-01-16 01:36:15 +00:00
cgd ea52295d11 SHMMAXPGS now pegged at 1024, where it belongs 1994-01-16 01:36:07 +00:00
deraadt b2c0b0a0c8 add a pmap_kernel() function 1994-01-16 00:58:07 +00:00
deraadt 6db422de7f cpu_exit returns void 1994-01-16 00:53:44 +00:00
deraadt 7c98e17fdb add sysarch() stub 1994-01-16 00:52:47 +00:00
deraadt 405bf3d48d use SYS_syscall instead of SYS_indir
and turn off the 64 bit syscall interface
1994-01-16 00:49:47 +00:00
deraadt 376a5f4108 pullin vm_statistics.h 1994-01-16 00:42:16 +00:00
deraadt 18b8ee0b5c prototyped callvec (ripped from stand/libsa/callvec.c)
#ifdef RB_MINIROOT support
our setregs() takes a stack pointer argument
netbsd-ify sendsig/sigreturn code, ie. alternate stacks
add dummy stubs for ptrace
1994-01-16 00:41:17 +00:00
deraadt e04b358332 cleanup 1994-01-16 00:34:10 +00:00
deraadt bdad42bda1 delete duplicate proto for slattach 1994-01-15 20:23:30 +00:00
deraadt 47ef1f0c2e multiple inclusion protection 1994-01-15 20:13:11 +00:00
pk ccbb67e8c3 Find source in the right places. 1994-01-15 19:48:56 +00:00
deraadt aa7ced4bd5 intrframe -> clockframe 1994-01-15 18:46:00 +00:00
mycroft ee47a9e354 Just #ifdef BDB the appropriate code; it's too flaky to live right now. 1994-01-15 05:33:23 +00:00
briggs 7ea239d333 Put lun in CDB. Is there be a way to determine when this is really
necessary?  (It is for some drives).
1994-01-15 03:26:20 +00:00
briggs 2e6a049555 undefined variable defined. 1994-01-15 03:24:23 +00:00
cgd e69c297456 do not clean fictitious pages. from WS (sent a long time ago...) 1994-01-15 02:39:58 +00:00
mycroft 3fab097f5f Clean up deleted files. 1994-01-15 02:15:38 +00:00
deraadt 7b7ccf8500 new; pretty much straight from net/2 1994-01-15 02:04:56 +00:00
deraadt b2834eb029 sync with magnum 1994-01-15 01:18:14 +00:00
deraadt 135ef10a6d prevent an explicit splimp->splnet lowering. (which blows up on
machines with a levelled-spl system that check for lowering)
de-ansify two function definitions.
1994-01-14 22:20:25 +00:00
deraadt ecefae0672 don't pull in arch/pmax/stand/libsa/callvec.c -- it's a silly idea. 1994-01-14 21:19:27 +00:00
deraadt 0cbd1c6d6e netbsd-ify 1994-01-14 19:50:45 +00:00
phil 951bc35247 added the missing semicolon. 1994-01-14 09:03:59 +00:00
phil 0e490a71f1 New file for ptrace support. Will be corrected for the pc532 soon. 1994-01-14 08:12:29 +00:00
phil 3a66f5a68b New file for ptrace support. Will have something in it someday. 1994-01-14 08:12:05 +00:00
phil 22b6f1e7f1 Changes to catch up with current. 1994-01-14 08:09:42 +00:00
phil 06a5cd70ad Changes for quad library and new ptrace stuff. 1994-01-14 08:09:15 +00:00
phil eb5b7eb72c Adding line for file proc_machdep.c (will become process_machdep.c when
NetBSD/532 is self hosting.)
1994-01-14 08:08:36 +00:00
deraadt 6b8ee3c10f various small netbsd-ifications 1994-01-14 05:05:17 +00:00
deraadt d22f586c29 everything is now in sys/arch/pmax; and delete 4.4isms we don't do 1994-01-14 05:00:07 +00:00
deraadt 44663395d2 s/vmunix/netbsd/ 1994-01-14 04:57:44 +00:00
mycroft f8100bd977 Clean up deleted files. 1994-01-14 04:53:43 +00:00
deraadt 9fd56d82c3 some pmax updating (Terry Friedrichsen is helping on this now). 1994-01-14 04:53:37 +00:00
deraadt af01174969 `extern int cpu' isn't used at all. 1994-01-14 03:41:49 +00:00
mycroft 2ff1cb8f3b Totally trivial anality, not worth mailing about. 1994-01-14 02:58:37 +00:00
cgd bc53d82fa7 fix utimes() to deal with NULL timeval ptr 1994-01-13 23:51:43 +00:00
mycroft d72e7068e5 Add a variable (currently unused in this port) to make DDB happy. 1994-01-13 23:49:13 +00:00
mycroft bff20215e7 Make a printf #ifdef PORTAL_DIAGNOSTIC. 1994-01-13 18:29:03 +00:00
cgd 3c39708b08 oops; get rid of a mis-inclusion in the last change 1994-01-13 18:20:36 +00:00
mycroft 33a067f307 Junk comselect(); it's the same at ttselect(). 1994-01-13 14:58:12 +00:00
mycroft 5358c47ee5 Allocate exec_map. 1994-01-13 13:56:20 +00:00
briggs 363cc5e5be Basic cleanup. Get rid of my_frame for frame. 1994-01-13 12:59:30 +00:00
briggs 626f129c93 Allocate exec_map. 1994-01-13 12:56:16 +00:00
glass faa4194a8f fixed a typo in a comment 1994-01-13 07:36:21 +00:00
glass b7fcaa5202 exec_map is now used 1994-01-13 07:19:28 +00:00
cgd 8ca18c3fa8 use exec_map 1994-01-13 06:23:57 +00:00
cgd af15bd1683 crank MAXBSIZE to 16384, for now; should be MAXPHYS, but this will do (for now) 1994-01-13 04:33:02 +00:00
cgd aebed65bf3 add SYSV* 1994-01-13 04:30:10 +00:00
cgd 81d655b943 uncomment defn of exec_map 1994-01-13 04:25:01 +00:00
mycroft 9a58b58c31 Change the bufpages calculation back to .10min(physmem,2mb)+.05max(0,physmem-2mb). 1994-01-13 04:00:09 +00:00
cgd 5cc251df11 kill iffy optimization 1994-01-13 02:43:09 +00:00
cgd 7422e2a40c trim debugging code, for now, and kill dead code (unused options) 1994-01-13 02:33:57 +00:00
cgd f023b7235d trim extra debugging code, for now 1994-01-13 02:33:28 +00:00
cgd 6c7058a8ea EXEC_DEBUG -> DEBUG, and trim extra debugging code, for now 1994-01-13 02:29:32 +00:00
cgd 0001258a09 EXEC_DEBUG -> DEBUG 1994-01-13 02:27:28 +00:00
cgd 662ddfaad5 fix from: line 1994-01-12 23:20:15 +00:00
deraadt 4f72798214 reserve pmax mid 1994-01-12 20:15:11 +00:00
cgd 6570678929 fix botch in last 1994-01-12 20:01:39 +00:00
cgd dc254a5c58 update to portal credentials handling, from jsp 1994-01-12 19:50:22 +00:00
mycroft 7e32102eda We are simply not ready to use pkthdr.len yet. 1994-01-12 04:12:10 +00:00
cgd 0e116508d4 check cross-device renames 1994-01-12 03:33:33 +00:00
mycroft 47f759bc3c Use pkthdr.len field. 1994-01-12 02:58:26 +00:00
mycroft b8cc9a5cd2 Get the pkthdr.len calculation right. 1994-01-12 02:45:11 +00:00
mycroft cfdaa9d2ea Use the pkthdr.len field rather than traversing the mbuf chain. Also put some
sanity checking code in, #ifdef DEBUG, just in case.
1994-01-12 02:38:17 +00:00
deraadt d553c09639 writing out of bpf; use a hdr mbuf and set the pkthdr.len as well.
(rarpd now works with if_ep.c!)
1994-01-12 00:38:50 +00:00
mycroft 497cad8b12 Remove the evil #ifndef; we no longer need it. 1994-01-11 23:19:00 +00:00
mycroft 81c6dcf43d Remove some unnecessary casting. 1994-01-11 22:39:40 +00:00
mycroft 82420de143 Fix typos. 1994-01-11 22:35:55 +00:00
mycroft c21cb48980 Fix the segment validation in sigreturn(). 1994-01-11 21:46:49 +00:00
brezak 65f742625b Check the users selectors in sigreturn() 1994-01-11 19:19:01 +00:00
mycroft 960908a885 Deal with fusubail. 1994-01-11 19:12:07 +00:00
mycroft 9a96e9531b Add V_TRAP; remove TF_ERR. 1994-01-11 18:59:02 +00:00
mycroft 8e447f8afd Minor changes to match magnum branch; nothing of importance. 1994-01-11 18:57:24 +00:00
ws 5f7ef81c6f Fix ugliness left over from my last mod 1994-01-11 18:02:06 +00:00
mycroft 10865c97fa Synchronize some more bits. 1994-01-11 17:51:40 +00:00
mycroft e12a200e8a Remove an unnecessary cast. 1994-01-11 17:37:28 +00:00
mycroft 101e3f31f7 Cleanup from magnum branch; no functional differences. 1994-01-11 17:35:04 +00:00
mycroft efdb9fa688 *strategy functions return void. 1994-01-11 17:19:37 +00:00
mycroft 99e02ea4e5 Get rid of indirection, and change return type of strat functions. 1994-01-11 16:41:37 +00:00
mycroft 8698f35d76 Change return type of strat functions. 1994-01-11 16:40:19 +00:00
mycroft 495c0903ec Change return type of strat function. 1994-01-11 16:38:48 +00:00
mycroft 4448a68e2c Get rid of disklabel indirection functions. 1994-01-11 16:35:44 +00:00
mycroft 24621baf6a strategy functions return void. 1994-01-11 16:28:47 +00:00
mycroft 158545c164 strategy functions return nothing. Synchronize with magnum branch. 1994-01-11 16:25:52 +00:00
mycroft 07a07b09a6 Synchronize with magnum branch. 1994-01-11 15:37:18 +00:00
mycroft ad116f4438 Some minor cleanup, mostly from magnum branch. 1994-01-11 15:11:36 +00:00
mycroft 2f414f2686 Fix the BDB bug for real. 1994-01-11 14:37:01 +00:00
mycroft 798a4ffff3 Reformat. 1994-01-11 14:24:11 +00:00
mycroft bdf5bd0cf3 Simplify OMAGIC and NMAGIC handling. Remove all support for loading the
kernel in low memory, and always load the symbol table.
1994-01-11 14:13:49 +00:00
mycroft 497b6ddc04 Tiny code shortening tweaks. 1994-01-11 14:01:15 +00:00
mycroft 5e0b965829 Remove a pointless register save. 1994-01-11 13:59:24 +00:00
mycroft 03058aa56a Remove mostly useless RCS logs. 1994-01-11 13:58:00 +00:00
mycroft c8b8051b89 Gratuitous formatting changes. 1994-01-11 13:30:40 +00:00
briggs bfa3801169 Reflect reality a bit more closely... 1994-01-11 00:30:26 +00:00
briggs 197d195eb4 TRAP_TYPES macro to trap_types variable.
Yank some VIA initialization.  Seemed to cause some problems.
1994-01-11 00:25:30 +00:00
briggs 0602c3467a Yank a reference to a variable that bit the dust. 1994-01-11 00:20:10 +00:00
briggs ed87cbfebd Some generic clean-up. Get rid of old debugging code. Fix exec to work
with new changes by cgd.  Fixup includes.  Get rid of initcpu().  Change
code using struct myframe to use struct frame.  Some gratuitous
reformatting and get rid of C version of copyinstr().
1994-01-11 00:18:54 +00:00
briggs 33e189e2da Clean up isr stuff. 1994-01-11 00:16:13 +00:00
mycroft 09e9a743f5 Clean up deleted files. 1994-01-11 00:03:43 +00:00
briggs 558be1794a Makefile: Added -T 0 to link for kernel.
files.mac68k.newconf: Removed ddb entries.
1994-01-10 23:58:37 +00:00
briggs af6d2f067d Fixup to use m68k headers, now. Thanks, Chris. 1994-01-10 23:55:20 +00:00
briggs dfe9897dba Update grf.h to increment a number of devices when it configures.
Fix a small bug in serial.
  Both from Brad, Lawrence, and/or Mike.
1994-01-10 23:52:01 +00:00
mycroft 627b841797 Change the counters to be all the same type -- u_long. 1994-01-10 23:27:39 +00:00
mycroft e287c3d10e Fix function name. 1994-01-10 23:20:07 +00:00
jtc aa0356b56a Set errno to EINVAL and return -1 if the argument to sigaddset(), sigdelset(),
or sigismember() is out of range.  POSIX.1 allowed the old behavior, but
detecting the errors is a more reasonable course of action.
1994-01-10 23:02:09 +00:00
jtc 944e286166 Change to be more 4.4BSD like. In particular, old programs that include
<sys/dir.h> instead of <dirent.h> will continue to work.
1994-01-10 22:54:00 +00:00
mycroft 00d41f83e8 Make this compile again after netinet changes. 1994-01-10 22:01:43 +00:00
ws a24f445d60 Fix sign extension bug 1994-01-10 20:47:39 +00:00
mycroft b79490fcca Should compile now with or without `options MULTICAST'. 1994-01-10 20:14:14 +00:00
mycroft bb3d7004c8 Deal with linkl in addition to linkw. 1994-01-10 17:59:45 +00:00
pk acc0f12ec0 reparations... 1994-01-10 13:29:26 +00:00
pk 36655da823 Don't deny unlink()s of files with the "silly" bit on, but still have > 1 links,
but avoid doing gratuitous (possibly expensive) get_attr() calls.
1994-01-10 09:37:05 +00:00
mycroft a537084311 Cleanup. 1994-01-10 06:10:30 +00:00
mycroft 27a2653bc6 *Really* fix the wakeup code this time. 1994-01-10 05:58:37 +00:00
mycroft c4f31d72f8 Add a missing break so my machine doesn't panic. 1994-01-10 04:58:14 +00:00
mycroft b58ba6927f Wake up the blasted process when we detach! 1994-01-10 04:20:29 +00:00
mycroft 0aa5118f9f Nuke args to newvers.sh. 1994-01-10 02:34:51 +00:00
mycroft 77ae87e498 Fix some bogus spacing. 1994-01-10 02:22:11 +00:00
mycroft d13e46daf0 Add some padding before SR. 1994-01-10 02:19:51 +00:00
mycroft b75455c4a3 Fix a buglet. 1994-01-10 02:18:34 +00:00
mycroft 699565c826 Don't prototype this until it's safe. 1994-01-10 00:31:11 +00:00
cgd c1a2366f8e don't #ifdef out PT_ATTACH and PT_DETACH. 1994-01-09 23:58:45 +00:00
cgd 64aaba1a4e fix some of my more recent botches, and clean up slightly. 1994-01-09 23:57:56 +00:00
cgd 3fbd67b7d3 implement PT_ATTACH and PT_DETACH. 1994-01-09 23:57:15 +00:00
cgd 62af8f99cc clean up and trim some 1994-01-09 23:57:00 +00:00
mycroft 999a718334 T_WATCHPOINT doesn't really exist. Deal. 1994-01-09 23:38:46 +00:00
mycroft 532938fe07 Gratuitous change. 1994-01-09 22:58:07 +00:00
mycroft 7fd3f9fac7 Pointers to arrays behave oddly in C... 1994-01-09 22:56:07 +00:00
mycroft 8d49c8420a Use db_recover. Print trap name when entering DDB. Use trap_type and
trap_types like m68k.
1994-01-09 22:53:16 +00:00
mycroft ebc818a088 Make trap_types a variable, so it can be imported by DDB. 1994-01-09 22:50:11 +00:00
mycroft 6b3e4e6b02 Push and pop db_recover for error handling, so we can set up temporary catch
points easily.  (Alluded to by m68k code, but not implemented yet for some
reason.)
1994-01-09 22:35:10 +00:00
mycroft 384b7f777a Fix jmp_buf definitions. 1994-01-09 22:28:50 +00:00
mycroft 1c1f7996c5 Fix some #includes. 1994-01-09 22:26:26 +00:00
mycroft 832cebd4cf Enable DDB. 1994-01-09 21:38:05 +00:00
mycroft 24aa7f14b4 Turn panic button into a debugger trap if DDB. 1994-01-09 21:36:55 +00:00
mycroft 65a81b945b KNFify, and fix a condition where we might miss the register saves if the
frame length is short.
1994-01-09 21:24:46 +00:00
cgd 5c3b96cd71 oops. fix that last 1994-01-09 20:17:06 +00:00
cgd 9f5ed8f1ef minor cleanup; kill a few assignments 1994-01-09 20:10:51 +00:00
mycroft 71c7280658 Thinko. code is always 0 on m68k; no need to print it. 1994-01-09 20:05:47 +00:00
cgd d0edbb3d59 add constants for a couple of disk types. suggested by downsj@CSOS.ORST.EDU 1994-01-09 20:05:38 +00:00
mycroft 11eb822fdf Add DDB hook. 1994-01-09 19:58:47 +00:00
ws 6202bab2db Bug fixes and enhancements:
Make NFS serving work (BUT DON'T USE "attach" TO /proc/*/ctl FOR NOW!!!)
Make `curproc' a symbolic link
Add `.' and `..' entries to the directories.
Return better guesses on the size of the files.
1994-01-09 19:44:03 +00:00
mycroft 8243207be1 Some more minor cleanup. 1994-01-09 19:39:23 +00:00
cgd 3f787778b2 LBL /dev/audio and soundblaster drivers, as ported by brad@fcr.com.
both should work with both old- and new-config i386 trees.
Some notes:
	bsd_audio.c has dependencies on the soundblaster.  This should
		be fixed, so that it can be used for the PC speaker
		(when its driver has been modified), as well.
	sb.c needs some cleanup, and will have sections trimmed, eventually
		(when new config becomse standard for i386).  additionally,
		the SBPro support needs some cleanup.
1994-01-09 19:35:00 +00:00
cgd cb875046b8 LBL "/dev/audio" include file.
probably will need to be hacked if "the right things" are done to bsd_audio.c
1994-01-09 19:30:17 +00:00
mycroft 642f2bffba Alias T_TRAP15 to T_BREAKPOINT globally. 1994-01-09 19:30:01 +00:00
mycroft e2662b6ceb Clean up a bit. 1994-01-09 19:28:53 +00:00
cgd 52778508b5 add 'audio' entries, at minor number 42 1994-01-09 19:28:27 +00:00
cgd 5b94c9652a add entries for the 'audio' pseudo-dev and for the new soundblaster driver 1994-01-09 19:27:36 +00:00
ws 30a6426c82 Fix typo in last 1994-01-09 18:46:17 +00:00
deraadt 84ab77272a *chuckle* -- i ran out of bpfilters.... (don't ask) 1994-01-09 18:21:10 +00:00
ws 903f51e908 Note that NFS mounting of fdesc doesn't make sense 1994-01-09 17:33:06 +00:00
ws e33a014618 Use $(MAKE) instead of make 1994-01-09 17:22:54 +00:00
cgd 4c8ff3970f try until error != ENOEXEC, so that formats can report errros reasonably 1994-01-09 17:11:42 +00:00
cgd 8cdc8d997d define PT_STEP, and clean up some 1994-01-09 16:53:03 +00:00
cgd b0bc24471f PT_STEP is actually machine dependent. not all machines have it! 1994-01-09 16:52:11 +00:00
ws 528eaca557 Really observe lmc_loadbuf.cnt and
correct argument order on execsw restoration.
1994-01-09 16:47:40 +00:00
cgd 85144bf311 ddb code now common 1994-01-09 16:40:33 +00:00
cgd 849b864238 stub 1994-01-09 16:35:32 +00:00
cgd f77210debf add ddb files, and also make sure alphabetically ordered 1994-01-09 16:31:50 +00:00
cgd ba8d0fb00f kill logs, and minor cleanup 1994-01-09 16:26:51 +00:00
cgd 12d80e6797 stub. 1994-01-09 16:17:10 +00:00
cgd b29e20a007 kill logs, and clean up. some of this will need cpu-dependent hooks. 1994-01-09 16:13:04 +00:00
briggs fd601bd3d6 Ugh. Missed the other. mac=>mac68k... 1994-01-09 15:56:22 +00:00
briggs e53963b58b mac => mac68k 1994-01-09 15:54:20 +00:00
deraadt 92d5f7831c p_emu/ep_emul are u_char 1994-01-09 15:49:41 +00:00
mycroft f1be23e81a Add the infamous IOPL sanity check, and speed up some bits. 1994-01-09 15:02:24 +00:00
mycroft f8154a63c0 Don't bogusly save the supervisor stack on signals. Correct PSL checks. Fix
some return values from sigreturn().
1994-01-09 14:59:42 +00:00
mycroft 4eb1bbfb0b Use PSL_MBO and PSL_MBZ in the more traditional way. 1994-01-09 14:58:14 +00:00
mycroft 222ebaf50e Prototype the rest. 1994-01-09 01:06:02 +00:00
mycroft 321b0c6090 More prototypes. 1994-01-08 23:50:41 +00:00
mycroft 12c88c1841 Remove some extra prototypes. 1994-01-08 23:26:40 +00:00
mycroft 26b5333c74 Slight rearrangement. 1994-01-08 23:19:48 +00:00
mycroft 0ff93a444b Prototypes. 1994-01-08 23:17:18 +00:00
mycroft e43117185e Prototypes. 1994-01-08 23:07:16 +00:00
mycroft 4fe12e6e88 Fix some inconsistent spacing; spaces at the end of lines, etc. 1994-01-08 21:21:28 +00:00
cgd 8bcd07afc2 make the include files stubs, but add bits where necessary (most XXX). 1994-01-08 19:08:45 +00:00
cgd 03e5891644 kill ptrace stuff; it's common to all m68k machines now 1994-01-08 18:36:54 +00:00
mycroft f5d2568734 Clean up deleted files. 1994-01-08 18:36:06 +00:00
cgd 66e7c94753 delete dupes 1994-01-08 18:34:14 +00:00
cgd 12695b2d2c add id and machine arch spec 1994-01-08 18:33:50 +00:00
cgd ab38f02a26 kill entries duplicated in files.m68k.newconf 1994-01-08 18:31:53 +00:00
cgd 666dfb27a9 now that NULLVP is used everyplace, we can use VREF again... 1994-01-08 18:12:28 +00:00
cgd bb92026b3e add files.m68k.newconf for the mac folks 1994-01-08 18:08:12 +00:00
cgd f7b271f349 specify that the mac is of the m68k archtecture. 1994-01-08 18:06:25 +00:00
cgd 34ea9285e9 de-macroify kill_vmcmds() 1994-01-08 18:05:29 +00:00
mycroft ec0fa1f388 Use NULLVP, just for Correctness (tm). 1994-01-08 16:06:04 +00:00
mycroft 95374533e2 NULL --> NULLVP 1994-01-08 16:04:03 +00:00
cgd c8a832c9d4 use VREF() function rather than the macro; the latter barfs in this case 1994-01-08 15:50:05 +00:00
mycroft c6afda5ec5 Trivial stylistic change for consistency. 1994-01-08 15:24:02 +00:00
mycroft 6109f71452 Move some prototypes to a better location. 1994-01-08 15:19:11 +00:00
cgd 2079970043 SHM_LOCK and SHM_UNLOCK aren't just HPUXCOMPAT 1994-01-08 15:09:01 +00:00
cgd b38fa5acf8 stubs which pint to m68k include 1994-01-08 12:41:41 +00:00
cgd 9e3b9d9bdd oops; forgot the new first arg to NEW_VMCMD() 1994-01-08 12:25:25 +00:00
cgd 47529628bb core reorg 1994-01-08 11:18:56 +00:00
cgd b44f8257b1 common code 1994-01-08 11:15:53 +00:00
cgd 23c144e8b3 code reorg 1994-01-08 11:13:52 +00:00
mycroft b7f8d61752 Clean up deleted files. 1994-01-08 11:13:10 +00:00
cgd 5fc4970c26 code reorg 1994-01-08 11:12:15 +00:00
mycroft 150f1034c9 Clean up deleted files. 1994-01-08 11:11:50 +00:00
cgd 0e515ae1bd code reorg, and killing of common files 1994-01-08 11:11:46 +00:00
cgd 166622ffab trim files which are now common. 1994-01-08 11:08:28 +00:00
cgd e2efe41199 reorganization of ptrace/procfs code 1994-01-08 10:47:02 +00:00
cgd b1d368ed16 HP300 -> M68K, and light trimming 1994-01-08 10:41:23 +00:00
cgd 957ce06f24 far reaching but relatively minor cleanup and slight reorg of exec code 1994-01-08 07:14:24 +00:00
mycroft 91b246d5be Fix some compiler warnings. 1994-01-08 06:34:01 +00:00
mycroft 19065b312a Fix a compiler warning. 1994-01-08 05:58:21 +00:00
mycroft d3106cb44a Fix some casting. 1994-01-08 05:51:17 +00:00
mycroft aa15bacc51 Make the types consistent. 1994-01-08 05:50:42 +00:00
mycroft 6d386b5202 Fix two casts. 1994-01-08 05:45:20 +00:00
mycroft 155811b49c #include vm_kern.h. 1994-01-08 05:29:15 +00:00
mycroft 9dd94bc684 Still more prototypes. 1994-01-08 05:26:10 +00:00
mycroft 9c9af600ee Make some functions static. 1994-01-08 04:59:08 +00:00
mycroft 287956ae88 Yet more prototypes. 1994-01-08 04:38:16 +00:00
mycroft e879c04f57 #include vm_user.h. 1994-01-08 04:22:36 +00:00
mycroft f36df1e764 More prototypes. 1994-01-08 04:17:49 +00:00
mycroft 8955aeedd5 #include vm_user.h. 1994-01-08 04:15:41 +00:00
mycroft d37579f554 More cleanup and prototyping. 1994-01-08 04:02:36 +00:00
mycroft d66944976a Some minor rearrangement and cleanup. 1994-01-08 03:24:19 +00:00
cgd df2025f938 quench the grammar flames! 1994-01-08 02:54:04 +00:00
jtc ceb7f9888d Change default NetBSD NPX control word to 0x137f.
This masks all FP exceptions (like every other UNIX system), and makes
it possible for gcc 2.5's long double support to work.
1994-01-08 01:19:06 +00:00
cgd b75ec95461 IOCBASECMD was defined incorrectly 1994-01-08 01:18:10 +00:00
mycroft 5df89bd778 Fix up some #includes, and add a bunch of prototypes. 1994-01-08 01:11:21 +00:00
mycroft 642b725370 Rearrange some #includes. 1994-01-08 01:01:50 +00:00
mycroft 4181f14213 Add some explicit return types, and make a bunch of things static. 1994-01-07 23:36:15 +00:00
mycroft 8c5b51d9dc Add some explicit return types. 1994-01-07 22:48:40 +00:00
mycroft c7f0925a52 Add some explicit return types. 1994-01-07 22:46:05 +00:00
mycroft bbe22a5947 Add some explicit return types. 1994-01-07 22:34:37 +00:00
mycroft d77a163cac Kill third arg to thread_sleep(). It's always false and isn't used anyway. 1994-01-07 22:22:20 +00:00
cgd 9834dab564 kill COMPAT_OLDSOCKOPT 1994-01-07 22:16:11 +00:00
mycroft 92992e3c3a Don't forget to poke the page daemon. 1994-01-07 20:33:14 +00:00
cgd b418b2c18f oops; fix that last 1994-01-07 19:26:44 +00:00
mycroft 75a4916007 Add an explicit return type. 1994-01-07 19:21:06 +00:00
mycroft 1b184192e1 Add some explicit return types, and make vm_object_print #ifdef DDB | DEBUG. 1994-01-07 19:15:44 +00:00
cgd 163a1d473e do the *right* thing with resident set size 1994-01-07 19:13:17 +00:00
mycroft c521a31e87 No need to clear these bits, since we just bzero()d the silly thing. 1994-01-07 18:32:14 +00:00
mycroft a8dc1eb25a Add an explicit return type. 1994-01-07 18:14:07 +00:00
mycroft 17e7b7e1bd Make vnode_pager_putpage return an int, like other *_putpage routines. 1994-01-07 18:12:12 +00:00
mycroft 4343c468c5 Trivial stylistic change to match other code. 1994-01-07 18:11:38 +00:00
deraadt f70a340fd9 cleanup a printf 1994-01-07 18:03:56 +00:00
deraadt d4e74a7cda really fix the tab code 1994-01-07 17:51:24 +00:00
mycroft f8258a5b44 Add missing return value. 1994-01-07 17:12:51 +00:00
pk 6f81dd8136 Add .type directive to ENRTY().
Move PIC_ macros over here from SYS.h
1994-01-07 00:46:20 +00:00
mycroft 56dde9c46c hpuxsysent -> hpux_sysent, hpuxnssysent -> nhpux_sysent 1994-01-07 00:45:37 +00:00
mycroft 0bbaf2a5e8 Partial cleanup. Needs more work. 1994-01-07 00:43:39 +00:00
mycroft c26cce685a Declare a return type explicitly. 1994-01-06 23:59:15 +00:00
mycroft 27876f2d51 Correct order of arguments to m_get*(). 1994-01-06 23:58:17 +00:00
mycroft f11636394f Correct order of arguments to m_get*(). 1994-01-06 23:57:36 +00:00
mycroft 8658309e1b Implement procfs stubs. 1994-01-06 23:55:40 +00:00
mycroft 566f233507 Clean up formatting. 1994-01-06 23:55:37 +00:00
mycroft d74cd05c88 Implement procfs stubs. 1994-01-06 23:55:17 +00:00
ws 0a8a197a17 Apparently noone ever tested the COMPAT_OLDSOCKOPT flag... 1994-01-06 23:00:22 +00:00
mycroft 40b7801fa6 Don't know why LOAD_ADDRESS was ever here, but it's toast. 1994-01-06 17:29:59 +00:00
mycroft 734aca027a Okay, so it *really* works now, or at least compiles. 1994-01-06 17:23:56 +00:00
mycroft 30efe4707c Make ptrace() actually work now. 1994-01-06 17:16:34 +00:00
mycroft ed95321df9 Still need old #defines for now. 1994-01-06 17:05:34 +00:00
mycroft 0e716894cd Garbage collection. 1994-01-06 16:57:59 +00:00
mycroft f76fdd7722 Implement `struct reg'. 1994-01-06 16:50:13 +00:00
deraadt a2d143ab3f don't need to #include <sys/socket.h> twice. 1994-01-06 14:00:35 +00:00
cgd 686d4f2c93 EOPNOTSUPP == Operation not supported 1994-01-06 12:57:46 +00:00
cgd c965e27791 add MNT_NOCREATE flag 1994-01-06 12:35:38 +00:00
cgd 48b5ac1a52 add 'maxfdescs 2048' to everything. i'm sick of the warning... 1994-01-06 12:07:41 +00:00
cgd eda5beab5a return size of 'reg' from getattr() 1994-01-05 21:56:02 +00:00
mycroft f7b0ee1881 Bleah. 1994-01-05 17:52:01 +00:00
mycroft c8fbd64ff5 Remove explicit link addresses. 1994-01-05 17:17:17 +00:00
mycroft 243ce5b9bf *** empty log message *** 1994-01-05 17:05:56 +00:00
cgd b7309d4800 don't include KERNFS and FDESC 1994-01-05 16:30:17 +00:00
cgd e09a770e77 add some options 1994-01-05 16:28:55 +00:00
cgd 582eb13c4a from Mike Karels <karels@bsdi.com>: clear the PENDIN flag if ICANON
is cleared, and retain the PENDIN flag if set when ICANON is set
1994-01-05 16:25:37 +00:00
mycroft 07e22c53b9 LOAD_ADDRESS is now fixed at 0xf8100000. 1994-01-05 16:03:32 +00:00
mycroft d5bb16fdb2 Move kernel to 0xf8000000. 1994-01-05 16:02:36 +00:00
cgd 454f368245 don't call VFS_SYNC() on underlying fs 1994-01-05 15:11:51 +00:00
cgd 058b0b8772 don't try to reclaim 'known' root vnode 1994-01-05 15:11:32 +00:00
cgd c78cf001a2 add new portal file system from jsp@sequent.com 1994-01-05 14:23:21 +00:00
cgd 3442768ab8 add new lofs (loopback file system) from jsp@sequent.com 1994-01-05 14:15:31 +00:00
cgd a83f6577b0 minor cleanup; extra spaces, patchkit info, etc. 1994-01-05 13:49:52 +00:00
deraadt 489e12a1a7 small cleanup 1994-01-05 13:38:57 +00:00
cgd b4e04dd05d fix return type for fifo_print 1994-01-05 11:34:44 +00:00
cgd 9d1babb688 fix UFS vs 'real' fs type mixups 1994-01-05 11:07:31 +00:00
mycroft 1e5c7f966b Clean up deleted files. 1994-01-05 11:05:17 +00:00
cgd 87693669dd update with latest kernfs file system from jsp@sequent.com 1994-01-05 11:04:54 +00:00
cgd 4942f8a8bc update with latest fdesc file system from jsp@sequent.com 1994-01-05 09:00:57 +00:00
cgd 3ff83b3549 make it compile (cleanly) for us 1994-01-05 08:00:05 +00:00
mycroft 3bd8a96c64 Clean up deleted files. 1994-01-05 07:51:37 +00:00
cgd 699e3be9e9 add new procfs code, from Jan-Simon Pendry, jsp@sequent.com.
This is pretty-much "virgin", so that diffs can be done later.
1994-01-05 07:51:08 +00:00
cgd 8e1f0c6b2f add procfs machine-dependent code, from Jan-Simon Pendry, jsp@sequent.com. 1994-01-05 07:41:44 +00:00
mycroft 0a5a73ec5f #include cpufunc.h. 1994-01-05 03:18:25 +00:00
mycroft 9030d70fd3 Change ptpage to flag, for new VM code. 1994-01-04 14:11:05 +00:00
cgd 2c5c3a2774 add support for union and loopback mounts, from jsp 1994-01-04 14:10:48 +00:00
cgd 61cf5bd904 add LKM 1994-01-04 14:06:23 +00:00
cgd ba67215d35 generalize dupfdopen() to allow dups and moves. from jsp 1994-01-04 12:26:21 +00:00
cgd 914aac9116 field name change 1994-01-04 11:29:55 +00:00
cgd 8ceb9e7e0f field name change 1994-01-04 11:07:41 +00:00
cgd d2b5056596 reorder includes as appropriate 1994-01-04 08:13:28 +00:00
mycroft 9eb8814652 Remove the last two dependencies on 0xfe000000. 1994-01-04 01:50:18 +00:00
mycroft e254def3cf Fix VM_{MIN,MAX}_KERNEL_ADDRESS. 1994-01-04 00:44:03 +00:00
mycroft d16aafd49f Fix another off-by-one error. 1994-01-04 00:24:02 +00:00
mycroft 608662ce74 Fix two off-by-one errors. 1994-01-04 00:15:26 +00:00
mycroft eee671fcc9 Default address is now 0xfe100000; assume we aren't going to revert. 1994-01-04 00:02:38 +00:00
mycroft 92d7ef960c Use KERNBASE, not 0xfe000000. 1994-01-03 23:53:29 +00:00
mycroft 664f968d53 Inline all the [lr]cr[023]() `functions' in cpufunc.h. 1994-01-03 16:23:06 +00:00
mycroft c0e772492e Inline all the [lr]cr[023]() `functions' in cpufunc.h. 1994-01-03 16:21:48 +00:00
mycroft 7131e8517e Garbage collection. 1994-01-03 16:20:47 +00:00
mycroft e75be43c5d Make sure we get the correct `rep' prefix per the Intel manual (though really
GAS should figure this out itself).
1993-12-31 21:11:32 +00:00
cgd 1424954c16 print out what we think is the resident set size. very nasty; the field
in the proc's vmspace struct should be updated, but isn't...
Also, if the process is a zombie or infantile, don't print, because
that could cause a null pointer deref.
1993-12-30 12:05:16 +00:00
deraadt debf054992 compile genassym -static as suggested by Jim McKim <mckim@lerc.nasa.gov> 1993-12-30 06:56:48 +00:00
deraadt 89ea303b7c fix __asm() clobber list for some instructions. fix from
Lennart Augustsson <augustss@cs.chalmers.se>
1993-12-30 05:16:43 +00:00
deraadt 49c0e9bead "struct ether_addr" for ethers(3) functions. 1993-12-30 04:17:40 +00:00
davidb 3a435f99f9 Changed to use make's new .OBJDIR 1993-12-28 10:59:05 +00:00
ws 778a3db3d0 Correct dumping to WD (was destroyed by MACHINE_NONCONTIG code) 1993-12-24 13:56:14 +00:00
deraadt 8c75649495 must pull in machine-cpu.h 1993-12-24 03:20:59 +00:00
deraadt 6e81a663bd OXTABS expansion was putting fewer than the required spaces if the clists
became full. we now retry the tab expansion later.
1993-12-24 01:07:40 +00:00
cgd 78cc61f8ef fix that last (for now) 1993-12-23 17:40:13 +00:00
cgd 76cce4cfdd fix fdesc_print return type (again) 1993-12-23 17:37:33 +00:00
cgd 11d6f25907 add proto for dupfdopen() 1993-12-23 17:16:00 +00:00
cgd 3434b666b4 type 9 is ISO-9660 1993-12-23 17:05:41 +00:00
cgd f59a5e6fcd fix from Nick Cuccia (cuccia@remarque.berkeley.edu), apparently
originating from Gary Grebus <glg@k8lt.ampr.org>: partition size
must be in units of DEV_BSIZE.
1993-12-23 09:35:51 +00:00
cgd a31e66148f isofs_print return type reverts to 'int' 1993-12-23 07:37:42 +00:00
cgd 61bcdb266e include <machine/cpu.h> rather than <machine/mtpr.h> -- if the latter
exists at all, it's supposed to be included by <machine/cpu.h>
1993-12-23 07:36:06 +00:00
cgd b0603af6e5 fix typo pointed out by Rich Murphey 1993-12-23 07:28:41 +00:00
cgd c231ef26cb need sys/types.h, as pointed out by Rich Murphey. also, use 'machine/pio.h' 1993-12-23 07:12:00 +00:00
cgd d02ac4c31d mfs_print return type back to 'int' 1993-12-23 07:03:11 +00:00
cgd fd9de878ef add NPTEPG back in. gdb wants it. Thanks to Rich Murphey for pointing it out. 1993-12-22 17:39:45 +00:00
cgd 42d0ba8c0a move getnewfsid() to where jsp says it belongs. update for header
files; clear new field and delete old vtype name.
1993-12-22 13:51:14 +00:00
cgd 87dfd3227e cast to match header (changed back...) 1993-12-22 13:46:28 +00:00
cgd 146889c8fd add portal and lofs entries 1993-12-22 13:43:18 +00:00
cgd c3ee44a1b9 various bug fixes from BSDI, via jsp. Kill some iffy fixes
by wfj (and replace them with better ones from BSDI).  add support
for p_vnode, and add proc_reparent() function, from jsp.
1993-12-22 13:42:27 +00:00
cgd a67d24d94b add support for p_vnode, from jsp 1993-12-22 13:39:27 +00:00
cgd 077a1e690c add proto for proc_reparent() function from jsp.
he gave us the function, but i'm not sure exactly where the proto
should go...
1993-12-22 13:20:26 +00:00
cgd ae30022085 fix return type of vnode print routine 1993-12-22 13:14:10 +00:00
cgd cc4170c743 fix return type of dead_print 1993-12-22 13:12:09 +00:00
cgd c0f153885d alphabetize... again 1993-12-22 13:11:03 +00:00
cgd e1c650fe5f rename struct 'regs' to 'reg' 1993-12-22 13:07:47 +00:00
cgd 953dee1999 fix nfs_print, add cross-device link checking (From jsp) 1993-12-22 13:03:22 +00:00
cgd 929c86a29b change return type of nfs_print back to int 1993-12-22 13:00:36 +00:00
cgd d2ad7a00c2 should be 'struct reg' not 'struct regs' -- it's in reg.h, after all!
also, delete r_fs and r_gs; looking at the code and comments
describing/using this struct, they don't belong here
(though if support for them is ever put in here, they should be,
but for i486-en only...  how do you do that 'reasonably,' though?
interface issues...)
1993-12-22 12:57:24 +00:00
cgd 7fbfc4bac0 add (possibly iffy) definitions of PSL_USERSET and PSL_USERCLR,
"standard" PSL masks.
1993-12-22 12:56:08 +00:00
cgd 5a87cb9c50 VOP_PRINT should return int; this should not have been changed (yet?) 1993-12-22 12:51:31 +00:00
cgd 18470f17e3 this file is once again in alphabetical order... 1993-12-22 12:48:25 +00:00
cgd dced52af6c bump MAXSSIZ back down to 8M (from 256M, where charles put it).
execve() currently allocated MAXSSIZ of address space (AND PAGE TABLES)
for the stack.  until that's changed, and the stack-handling code is
updated to match, MAXSSIZ==256M will make execve() significantly slower
than MAXSSIZ==8M.
1993-12-22 12:30:59 +00:00
cgd 0be07477eb use ${MAKE} rather than "make", as suggested by Roland McGrath 1993-12-22 04:58:02 +00:00
cgd de2aefd4b8 minor cleanup 1993-12-22 04:13:50 +00:00
cgd afce447ada p_spare is in the 'zero range' now 1993-12-21 10:39:17 +00:00
mycroft 6c32b87568 Remove two unused fields. 1993-12-21 09:47:45 +00:00
mycroft 925da8586c All the world is *not* an i386. 1993-12-21 09:45:43 +00:00
cgd 65e79d2b24 move EMUL_* definitions to a sane location , and fix them up some 1993-12-21 08:18:39 +00:00
cgd ed9fe288db oops; fix last 1993-12-21 08:07:09 +00:00
cgd 9eb96e11ee add a few new malloc types 1993-12-21 07:58:37 +00:00
cgd 6aa0cb00c6 from jsp: Changed to get attributes of root node and
generate correct type, rather than assuming it's a directory.
This allows Amd direct mounts to work correctly.
1993-12-21 07:49:30 +00:00
cgd adbe4b0962 kill two wrong 'case's 1993-12-21 07:19:14 +00:00
cgd 7d57774e7e fix typo 1993-12-21 07:02:18 +00:00
cgd 621f7b658f more of the same; gah! 1993-12-21 06:39:12 +00:00
cgd d797e926cf kill a billism 1993-12-21 06:30:28 +00:00
cgd e4420474ff move things around as appropriate, add 7 more spares (to round to 256) 1993-12-21 06:22:33 +00:00
cgd e9a8e9c41d fix that last 1993-12-21 06:01:32 +00:00
cgd cd36241fbb clean up, kill typos, add types 1993-12-21 05:48:50 +00:00
cgd 41682141d7 clean up vtype and vtagtype, and more 1993-12-21 05:41:52 +00:00
brezak a6d85089cd Add pseudo-device vn 1993-12-21 05:30:14 +00:00
brezak 23868240aa Use machine independant vn.c 1993-12-21 05:28:31 +00:00
cgd 44b2cf17a0 delete stupidity, add a few fields 1993-12-21 05:28:27 +00:00
brezak ac8be1b959 Add pseudo-device vn 1993-12-21 05:27:35 +00:00
brezak 7d88d99ac0 Add vn block/char device 1993-12-21 05:26:49 +00:00
brezak c271e40d97 Add dev/vn.c driver 1993-12-21 05:25:35 +00:00
brezak fc69cb8898 Tweak for BSD44/NetBSD environ. 1993-12-21 05:24:31 +00:00
brezak e678ab8242 vnode driver (from Mike Hibler make@cs.utah.edu) 1993-12-21 04:17:02 +00:00
briggs cec9c395f8 Use address instead of slot for add_nubus_intr. This whole interrupt
scheme should probably be taken out and shot.
1993-12-21 03:19:33 +00:00
briggs 982b2aa969 Update ethernet driver to use config.new. At least, it's a first stab
working from mycroft's magnum changes to if_ed.c.
1993-12-21 03:18:00 +00:00
briggs 2390a5c1ee Add basic sound support and a beeping (instead of flashing) console...
from Brad Grantham.
1993-12-21 03:16:01 +00:00
briggs fded7fc070 Add Apple Ethernet to GENERIC and files. Also add asc.c to files
for sound support.
1993-12-21 03:14:16 +00:00
cgd 630651b7b0 queue.h from 4.4, from Bostic 1993-12-21 01:55:03 +00:00
davidb ddefd2e1b8 Fixed bug where with two or more SCSI controllers of the same type, you
could not have devices at the same ID on each bus.
This patch not directly applicable to magnum branch, which is using Julian's
new SCSI code.
1993-12-20 23:27:28 +00:00
ws cf3c69ea3b Correct support for single stepping of syscalls and fpu emulation 1993-12-20 17:16:42 +00:00
cgd a6eecc8e2a load average changes from magnum 1993-12-20 12:42:34 +00:00
cgd c26286a5c1 bring changes down from magnum 1993-12-20 12:39:55 +00:00
cgd 86f960201b pull load average and misc changes down from magnum 1993-12-20 12:39:10 +00:00
cgd bdabe240d0 replace VREF as appropriate to avoid logical recusion 1993-12-20 10:42:39 +00:00
cgd fb9b8e7923 add DIAGNOSTIC to each 1993-12-20 10:07:58 +00:00
mycroft 0d115f4690 Remove out of line versions of pio functions. 1993-12-20 09:20:54 +00:00
cgd 19847f52bb drag down some changes from magnum. of note: b_iodone returns void. 1993-12-20 09:16:58 +00:00
mycroft 6cbf9be7da Use cpufunc.h only where (currently) needed. 1993-12-20 09:11:38 +00:00
mycroft 0cd3f0fdd2 Remove some things which should not be here. 1993-12-20 09:08:11 +00:00
mycroft de04e7e727 New, more complete version. 1993-12-20 09:07:22 +00:00
mycroft f2a0b4b335 Canonicalize all #includes, and add pio.h where appropriate. 1993-12-20 09:05:17 +00:00
cgd 18d2f02bc9 serious cleanup 1993-12-20 07:47:15 +00:00
cgd 680c4cb0a0 change panic() for "unknown cpu type" so that it's only got one arg;
"#ifdef notdef" the old way; panic() will be upgraded eventually...
1993-12-20 06:40:55 +00:00