Commit Graph

5018 Commits

Author SHA1 Message Date
jtc bdd26b125c asm -> __asm (PR #463). 1994-09-10 01:07:08 +00:00
mycroft 0d3651018e Make kernel_pmap a macro that points directly to kernel_pmap_store. 1994-09-09 23:58:48 +00:00
mycroft c7d5bf7b64 Nuke struct ste, struct ste40, struct pte, and HP_PAGE_SIZE. Use my
pv_entry allocator.  Change pa_index() to pmap_page_index() for consistency
with other ports.
1994-09-09 23:52:49 +00:00
mycroft c7b57907f0 Do a hack similar to the AST optimization for SIRs on syscall exit. 1994-09-09 23:40:15 +00:00
mycroft f66f685ad2 Very simple change to avoid a complete register save/restore pair when handling
ASTs after a syscall.
1994-09-09 03:58:38 +00:00
mycroft cf04bbff56 Small optimization for the !DIAGNOSTIC case. 1994-09-09 03:16:03 +00:00
mycroft 675c4aae2b Remove some functions which are in libkern. 1994-09-09 03:11:31 +00:00
mycroft 6ba85483c3 Use bfffo rather than a slow loop. 1994-09-09 03:07:23 +00:00
mycroft e0fa548a12 Optimize the run queue frobnication, and add some more DIAGNOSTIC checks. 1994-09-09 02:56:54 +00:00
mycroft 289bc175c6 Another tiny optimization. 1994-09-08 21:56:14 +00:00
mycroft a90cca9558 Add a simple pv_page garbage collector (currently disabled). 1994-09-08 21:03:43 +00:00
mycroft 4116a4243e Various changes:
* Inline some functions.
* Eliminate redundant calls to pmap_page_index().
* Reduce the number of TLB flushes in accordance with the i386 SSWG.
* Inline pmap_remove() in pmap_remove_all().  (Most if it is unnecessary.)
* Allocate pv_entry's in pages, and keep a list of free entries in each page,
and a list of pages with free entries.  (Trying to reduce malloc() overhead,
and improve locality of reference.)
* Remove a couple of macros that aren't really useful.
* Remove pmap_kernel() completely.
1994-09-07 20:48:52 +00:00
mycroft d884d26b32 Trivial change of no significance. 1994-09-07 20:32:45 +00:00
mycroft 9d4125d1ec A few small optimizations. 1994-09-07 20:32:00 +00:00
mycroft 6dd2f9eed2 vm_object_page_clean() expects to be able to use vm_page_deactivate() on a
locked page.  Make that work.  This also obviates the need for vm_fault() to
bogusly activate a page before deactivating it.  Finally, make sure the
semantics of vm_object_deactive_pages() don't change.
1994-09-07 20:25:07 +00:00
mycroft e4bc47c9fc Remove bogus attempt to map the interrupt pins here. The BIOS is supposed to
do it anyway.
1994-09-06 01:25:22 +00:00
pk 09301847a4 Compile `pamap.c' and `cache.c' with normal compiler rules.
Let's pretend this was a bug in some previous version of gcc...
1994-09-05 06:31:34 +00:00
mycroft 3e334ba9a6 New iBCS2 code from Scott. 1994-09-05 01:28:57 +00:00
mycroft faa18f6ce6 New iBCS2 code from Scott. 1994-09-05 01:08:43 +00:00
mycroft 584de55692 Missed an iobase that should be u_short. 1994-09-05 00:21:40 +00:00
pk cdca6c22c4 Don't clobber our input arguments. 1994-09-02 08:13:20 +00:00
mycroft 6c66af544c Fix some ugly code. 1994-09-02 05:12:12 +00:00
jtc b3b55d02f1 Misc changes to make this file more like the asm.h headers used by other
architectures:
	Renamed _C_FUNC() to _C_LABEL()
	Renamed _ASM_FUNC() to _ASM_LABEL()
	Merged _BEGIN_ENTRY with _ENTRY
	Renamed _END_ENTRY to _PROF_PROLOGUE

When assembling with profiling enabled, set up stack frame before calling
mcount() in _PROF_PROLOGUE.  Also omit emitting .long 0's, as they are no
longer used by the profiling code.
1994-09-02 05:02:47 +00:00
mycroft b1f0fa317e Decrease shm_nused when a segment is deleted. 1994-08-31 21:47:36 +00:00
chopps bf10f9424c cleanup diagnostic messages 1994-08-31 02:13:01 +00:00
chopps 41a2d35564 fix uninitialized use of mask. 1994-08-30 23:06:48 +00:00
pk cdf3d1ed89 mknod() must release its new vnode. 1994-08-30 19:42:22 +00:00
deraadt 5aa2f1e6bb remove an un-aligned access 1994-08-30 17:01:57 +00:00
briggs e696d464eb Use vn.h instead of forcing NVN to 0. 1994-08-30 11:04:17 +00:00
mycroft c996edc7e1 Display emulation type. 1994-08-30 06:22:10 +00:00
mycroft 9ea30b3bf3 Check for bad p_emul. 1994-08-30 06:19:44 +00:00
mycroft 227e4cb85c Make sure p_emul is copied on fork. 1994-08-30 06:16:25 +00:00
mycroft 016425e503 Clean up some debugging code. 1994-08-30 05:37:14 +00:00
chopps c7401f5866 catch mis-aligned access errors on the 040. 1994-08-30 05:35:31 +00:00
mycroft 2f710a54ee Convert process, file, and namei lists and hash tables to use queue.h. 1994-08-30 03:04:28 +00:00
mycroft bd61aa9ae3 Add {LIST,TAILQ}_INSERT_BEFORE(). 1994-08-30 03:01:30 +00:00
mycroft f5faab89e9 Use VCALL(), not VOCALL(), and simplify union_advlock(). 1994-08-30 03:01:01 +00:00
mycroft c8899c8f8e Fix an off-by-one error reported by Mike Hartman. 1994-08-30 01:31:11 +00:00
mycroft 90b0e68767 Clean up deleted files. 1994-08-29 23:12:23 +00:00
cgd e67ae11432 no more floppy bins; these now done by crunch. 1994-08-29 23:10:58 +00:00
mycroft f5232de492 Patch to fix `reassignbuf: NULL' messages, from cgd. 1994-08-29 01:47:02 +00:00
mycroft 8bed574dcd Clean up deleted files. 1994-08-26 20:07:34 +00:00
mycroft a13c1b15cc Minor. 1994-08-26 12:43:17 +00:00
deraadt de20d2cf67 Re-enable EISA reset code -- definately needed now. do RX_DISCARD_TOP_PACK
before leaving splhigh(), to give incoming packets a better chance.
1994-08-26 12:11:44 +00:00
deraadt 2a316aaed4 an annoying tab 1994-08-26 10:57:27 +00:00
glass 891ca8ce21 my kernel config 1994-08-26 05:07:00 +00:00
deraadt a7b2e0ee19 tmpmap page for sun4 1994-08-25 20:58:36 +00:00
deraadt 9670b47cb7 sun4: don't use openprom 1994-08-25 20:57:38 +00:00
deraadt 6c2b49032b fix debugging stuff, from dean 1994-08-25 20:18:25 +00:00
deraadt 2558d359af emulate setreuid/setregid better. 1994-08-25 07:13:55 +00:00
paulus 4eba4f38de Fix for bug pointed out by Chuck Cranor in determining whether we
have a bus error or a MMU fault.
1994-08-25 06:18:55 +00:00
paulus c4b36eb4d8 now that we have vn.h, use it 1994-08-25 06:17:28 +00:00
paulus c08d8df629 Fix from Chuck Cranor to avoid null dereference on startup. 1994-08-25 06:16:29 +00:00
paulus c673fc8fb3 Bug fixes from Chuck Cranor. 1994-08-25 06:15:39 +00:00
paulus ce95ef366a added USPACE 1994-08-25 06:14:29 +00:00
paulus f860dc0110 added major number for vn device 1994-08-25 06:13:49 +00:00
paulus 44e8ac8704 minor changes to options 1994-08-25 05:57:10 +00:00
cgd ec29b60850 gwr's slightly cleaner way to do that last... 1994-08-25 03:04:28 +00:00
mycroft cb3576ee87 If possible, lower the CPU class if the correct one is not configured. 1994-08-25 00:10:30 +00:00
chopps b6bd104b70 add USPACE 1994-08-24 20:50:35 +00:00
mycroft d20de15399 Add USPACE. 1994-08-24 19:32:36 +00:00
mycroft f6a9558d05 Update to match reality. 1994-08-24 19:28:03 +00:00
mycroft c639e40d5b iBCS2 emulation code, written by Scott Bartram. 1994-08-24 19:13:39 +00:00
cgd f32f66a23b fix (bogus) default ioctl return. 1994-08-24 16:49:16 +00:00
deraadt 8411a1f895 fix relocation error 1994-08-24 09:27:57 +00:00
deraadt 34c6caac77 first cut at sun4 on-board io bus 1994-08-24 09:16:46 +00:00
mycroft 5e4a51278b Set the FIFO threshold based on the receive speed, per Mark Weaver. 1994-08-24 07:25:18 +00:00
deraadt 62939dc113 pcvt & bt dynamic irq 1994-08-24 07:10:22 +00:00
mycroft c4eac0f370 Some cleanup, checked by Dean. 1994-08-23 23:40:55 +00:00
deraadt 280592c6a7 replace "ctob(UPAGES)" and "UPAGES * NBPG" with "USPACE"
(cvs dumped core during previous commit...)
1994-08-23 22:13:59 +00:00
deraadt 72b3d408b9 replace "ctob(UPAGES)" and "UPAGES * NBPG" with "USPACE" 1994-08-23 22:07:42 +00:00
gwr 1e707d2dec Add USPACE 1994-08-23 21:11:37 +00:00
briggs cdcb12bf54 Add USPACE. 1994-08-23 20:48:09 +00:00
mycroft 8ac5e10c5d Various code cleanup. 1994-08-23 19:30:12 +00:00
glass a0bba56f2a add USPACE 1994-08-23 19:13:54 +00:00
deraadt 666f228bab add `eg' driver for the 3c505 by <dean@fsa.ca> 1994-08-23 17:59:33 +00:00
pk 994a3e978a typo 1994-08-23 14:37:22 +00:00
deraadt 0a8b15511f fix 3 dumb bugs 1994-08-23 11:24:53 +00:00
pk e052143aab When updating an NFS mountpoint, we cannot just increase `rsize' or `wsize'
without also adjusting the corresponding socket buffers. We could probably
call sbrelease/sbreserve/soreserve ourselves without much harm, but we'd
have to duplicate much of the logic in nfs_connect(). In stead, blow the
socket away entirely and let nfs_connect() do its job again.
1994-08-23 09:31:00 +00:00
deraadt 3938d6ba02 initialize shmmax to `# of pages' at compile time; multiply by NBPG at
boot time (in shminit). This supports architecture families with varying
values for NBPG, and does not break ipcs.
1994-08-22 23:37:03 +00:00
brezak 6f0b0cdc86 Cleanup to make more ANSI compliant; checkpoint 1994-08-22 21:55:58 +00:00
mycroft 996b2b5c54 Disable EISA reset, for now. 1994-08-22 21:53:23 +00:00
mycroft 71c5da7bfb Fix typo in WDCS_BITS. 1994-08-22 21:43:35 +00:00
brezak dd945bf3c1 Don't echo here 1994-08-22 21:41:23 +00:00
brezak 901e645db3 Do echo here just like libsa::gets() 1994-08-22 21:41:07 +00:00
cgd 94109335b3 kill errant spaces 1994-08-21 21:24:33 +00:00
cgd 56364fe8b1 cleanliness; don't wrap lines. 1994-08-21 21:07:13 +00:00
ws 133e05b464 Fix bug with writing back modified directory entries 1994-08-21 18:43:49 +00:00
mycroft 9c921e0ada Remove SF and SR. 1994-08-21 15:25:28 +00:00
mycroft 27377e3e10 Don't attempt to use IO_APPEND for NQNFS, as suggested by Rick Macklem. 1994-08-21 15:10:44 +00:00
mycroft 8b8390a4bb Look for MDMBUF in cflag, not lflag. 1994-08-21 15:04:37 +00:00
cgd c141eabf16 handle another "too much memory in buffer" boundary case 1994-08-21 06:38:42 +00:00
cgd 0bac4d47b1 C syntax fix, and syscall args style (For later.) 1994-08-21 03:15:32 +00:00
deraadt 5fafedbfa7 sun4/sun4c getsegmap/setsegmap are different
use << PGSHIFT instead of * NBPG, because NBPG isn't a constant in some cases
for sun4+sun4c case, calculate nptesg early
1994-08-20 09:16:11 +00:00
deraadt 89c0e14f17 stop using NBPG; start using USPACE
initialize cputyp, nbpg, pgshift, and pgofset variables based on cpu type.
deal with varying pagesize in register window underflow/overflow and trap
enter functions (hellish)
add idprom reading function for the sun4.
1994-08-20 09:13:25 +00:00
deraadt ad457d7aaf sun4 needs software delays for register accesses 1994-08-20 09:11:02 +00:00
deraadt 7ac73ef982 add addr & level specifiers for non-openboot systems 1994-08-20 09:08:58 +00:00
deraadt 63db65b59d no need for timezone spec 1994-08-20 09:08:27 +00:00
deraadt 737b2e86fd sun4 merge changes 1994-08-20 01:36:36 +00:00
deraadt 14350c037f on the sun4:
fake-up an openprom vector
ask oldmon for physical memory count.
unblank frame buffer (because most oldmon's forgot to)
1994-08-20 01:35:20 +00:00
deraadt 0103734add sun4 cpu types are determined by the idprom.
cache type is determined by the model number.
1994-08-20 01:32:45 +00:00
deraadt 27e092990f idprom moved to seperate file; must be accessable before clock driver starts, on a sun4 1994-08-20 01:31:06 +00:00
deraadt 592b23771e deal with sun4 idprom 1994-08-20 01:30:29 +00:00
deraadt f0a4d95b11 IODEV_BASE cannot used as a static initialiser due to NBPG 1994-08-20 01:29:49 +00:00
deraadt 242e8b9895 TIMERREG_VA is passed to locore.s (via genassym). Since NBPG can be
a variable, it cannot be part of this macro.
1994-08-20 01:28:09 +00:00
deraadt 82241bcf3e regarding NBPG, PGOFSET, PGSHIFT, NPTESG, VA_VPG:
these are simple macros unless you build a combined sun4+(sun4c,sun4m)
kernel -- then they point to variables which are initialized early on.
1994-08-20 01:26:41 +00:00
deraadt 0ab75b9022 repair a few rom call return values 1994-08-20 01:20:59 +00:00
deraadt b5c483ea1a the sun4c "fake idprom inside the nvram" looks exactly like a sun4 idprom. 1994-08-20 01:20:28 +00:00
deraadt 5cee9394c1 add sun4 control space areas 1994-08-20 01:19:27 +00:00
mycroft c0cc31ee6f For symlinks, try actually reading the link to determine its size. 1994-08-19 11:36:56 +00:00
mycroft b6e5975c12 Fix off-by-one error translating names of associated files. 1994-08-19 11:31:50 +00:00
mycroft 537ac5465f Convert hash tables. 1994-08-19 11:25:29 +00:00
mycroft f7c13d44bd More LIST/CIRCLEQ migration. 1994-08-18 22:47:43 +00:00
cgd 92da9d2f33 can't do ptr math on void * 1994-08-18 22:09:35 +00:00
mycroft 1785232aa9 vn --> vnd 1994-08-17 20:16:16 +00:00
mycroft c809e30fcb No COMPAT_HPUX at the moment. 1994-08-17 20:16:07 +00:00
mycroft 24381e7f01 Validate unit number correctly. 1994-08-17 19:14:53 +00:00
mycroft 8743009944 Convert some more lists and queues. 1994-08-17 14:43:47 +00:00
mycroft 7b8734f3e8 Use LIST and TAILQ for hash chain and LRU chain, respectively. 1994-08-17 12:34:12 +00:00
mycroft dbd174a5da Change the reply list to a TAILQ. 1994-08-17 11:41:36 +00:00
mycroft 9db57a0aa0 Fix typo. 1994-08-17 11:03:07 +00:00
deraadt c121e1da16 add pseudo-device kbd 1994-08-17 06:22:10 +00:00
deraadt 256353ef62 multicast 1994-08-17 06:04:49 +00:00
deraadt 9f6d99b3e2 get ether_type byte order correct 1994-08-17 01:33:15 +00:00
ragge 6943478ff7 Lots of bug fixes. Generic console support added. Major changes in machdep.c.
pmap.c now supports user process mapping. Page faults handles correctly.
1994-08-16 23:47:25 +00:00
ragge 186e16d63e Minor updates of some errouneous parameters. 1994-08-16 23:41:53 +00:00
ragge 7fffc9426f genconf.c added to files.vax.newconf 1994-08-16 23:41:11 +00:00
ragge 060db389e9 Update of vax port. 1994-08-16 23:39:52 +00:00
mycroft 0c5a342fde Add vnd. 1994-08-16 19:20:14 +00:00
mycroft da534b691a Reran makesyscalls.sh. 1994-08-15 23:49:28 +00:00
mycroft e8b01ef8dc Add missing line. 1994-08-15 23:48:41 +00:00
mycroft 3481b6aa87 Add iBCS2 files. 1994-08-15 23:33:59 +00:00
mycroft 2b2c64b4e2 Need prototype of exec_svr4_elf_makecmds(). 1994-08-15 22:54:51 +00:00
mycroft a82f727857 Clean up deleted files. 1994-08-15 22:47:27 +00:00
mycroft ea999cdda2 Rename this for consistency. 1994-08-15 22:47:24 +00:00
mycroft e2122143e9 Don't reread the blasted header. 1994-08-15 22:47:00 +00:00
mycroft 82ccfef767 Remove misplaced SVR4 dispatch. 1994-08-15 22:38:39 +00:00
mycroft 77dee53b00 Move the SVR4 dispatch here. 1994-08-15 22:36:40 +00:00
mycroft 1ec65d2465 Add iBCS2 glue. 1994-08-15 22:24:22 +00:00
mycroft 01c2a3243e Add flags for iBCS2 compat. 1994-08-15 22:19:44 +00:00
mycroft ace234dade Add iBCS2 COFF loader. (Eventually there should be a sys/exec_coff.h.) 1994-08-15 22:17:16 +00:00
mycroft 9c4c84c97e Need ofstat() for iBCS2 syscall conversion. 1994-08-15 22:08:55 +00:00
mycroft 4566d7f5ba Need ostat() and olstat() for iBCS2 syscall conversion. 1994-08-15 22:06:47 +00:00
mycroft d87fa72a16 Need extra stack space for iBCS2 syscall conversion. 1994-08-15 22:04:47 +00:00
mycroft b0d890f90a EMUL_IBCS2 --> EMUL_IBCS2_ELF 1994-08-15 22:03:12 +00:00
mycroft 1147bc974e Add EMUL_IBCS2_COFF, and rename EMUL_IBCS2 to EMUL_IBCS2_ELF. 1994-08-15 22:02:20 +00:00
mycroft 77fe78350b Minor update to a comment. 1994-08-15 16:45:14 +00:00
cgd cefdccbf31 changes for the new sys_process.c, and some cleanup 1994-08-15 16:37:04 +00:00
cgd 97bdeab31e replace with a completely rewritten version, based around the 4.4BSD
procfs.  Now the author of the old version will stop complaining that
we're using his code.
1994-08-15 16:32:41 +00:00
cgd b48d84b629 replce with virgin copy from 4.4-Lite 1994-08-15 16:29:22 +00:00