Commit Graph

73308 Commits

Author SHA1 Message Date
chs
3a5e4f901b in *_sync(), don't skip vnodes which have (potentially dirty) pages. 2000-12-10 19:36:31 +00:00
eeh
40638d9f35 Zero proc 0 stack pages so the pcb is cleared out before use. 2000-12-10 19:33:02 +00:00
mycroft
66610a4779 Introduce PROC_PC(), which is used to get a process's user PC. If this is
defined, call addupc_intr() directly from statclock() in the system time case,
using the same P_OWEUPC path if the copyin/copyout fails.
Use this in i386 to remove profiling code from the normal userret() path.
2000-12-10 19:29:30 +00:00
chs
837f5c9bd6 we don't need VM_PROT_EXECUTE for UBC mappings. 2000-12-10 19:28:09 +00:00
chs
b9423d9d52 in pmap_enter(), do not mark the page modified just because we mapped it
for write to a kernel address.  callers may now use the "flags" argument
to cause this to happen when desired.
2000-12-10 19:25:44 +00:00
eeh
af770220fa Fix for chips that don't grok NCRCMD_SELATN3. 2000-12-10 19:25:07 +00:00
scw
8ace7abc75 A small splx()/spl0()/soft interrupt related optimisation. If we're
dropping to spl0, use inline code to check if a soft interrupt is
pending instead of taking the hit of a function call to do the check.
2000-12-10 18:43:02 +00:00
scw
c5b6f43634 Define splzs()' to be splserial()' instead of `spl4()', which was
wrong anyway since it blindly set SPL to 4 regardless of the prevailing
level.
2000-12-10 18:00:24 +00:00
thorpej
a1479e118c Fix previous:
- EBADF, not NULL when a file descriptor can't be found.
- Check FIF_WANTCLOSE properly.
2000-12-10 17:34:25 +00:00
thorpej
ce866cd0e8 Don't hold a pool cache lock across any call to pool_get() or pool_put().
This allows us to change a try-lock into a normal lock in the reclaim
case.
2000-12-10 17:03:34 +00:00
jdolecek
48f421c3fa do not try to get/set sample rate on codecs which don't support variable
rate audio - always report/use fixed rate of 44100 for them, so that the
other audio code DTRT
2000-12-10 15:43:02 +00:00
bjh21
4f1ee09e5f It looks like UBC_WINSIZE needs to be at least PAGE_SIZE. 2000-12-10 14:28:45 +00:00
fvdl
eb1e790ed3 Add linux_fdio.c and linux_hdio.c 2000-12-10 14:15:04 +00:00
fvdl
538c381225 findblkname is not static (and is in fact used outside this file). 2000-12-10 14:14:15 +00:00
fvdl
813c5d92f7 Bump stackgap size from 400 to 512. 2000-12-10 14:13:04 +00:00
fvdl
a499e56944 Add some ioctls for harddisk, floppy disk and console handling.
Implement a few extra cdrom ioctl calls.
Make sure to correctly use FILE_USE and FILE_UNUSE.
2000-12-10 14:12:16 +00:00
fvdl
e772d7a6d5 Add i386-specific code for a few ioctl calls. 2000-12-10 14:09:59 +00:00
fvdl
ec9b1e3f5e The gist of the Linux _IOX definitions was the same for all platforms;
move it to the MI linux_ioctl.h and only leave the MD bits in the MD
header files.

Add defintions for linux_ioctl_hdio and linux_ioctl_fdio.
2000-12-10 14:08:48 +00:00
fvdl
8488f3e039 The gist of the Linux _IOX definitions was the same for all platforms;
move it to the MI linux_ioctl.h and only leave the MD bits in the MD
header files.
2000-12-10 14:07:22 +00:00
fvdl
f86f1f091f Add linux_hdio.c and linux_fdio.c 2000-12-10 14:05:54 +00:00
jdolecek
1683c206a4 provide dymmy symbol 'syscall' to make ppc kernels
linkable after recent emul changes - it's used in emul_netbsd and friends
XXX this is probably wrong solution; should powerpc have separate
XXX syscall() as other ports do ?
2000-12-10 12:49:54 +00:00
jdolecek
7a2157f1f3 emul_unregister(): fix incorrect loop condition - execsw[] is not NULL
terminated
2000-12-10 12:42:30 +00:00
jdolecek
8ca533ee5b since this is now standalone and not called via syscall(), we need to
update statistics and set p->p_md.md_regs accordingly here
do the errno translation uncoditionally
2000-12-10 12:23:50 +00:00
jdolecek
603884ff22 syscall(): no emulation using this needs errno mapping, G/C the code 2000-12-10 12:09:59 +00:00
jdolecek
ee136a8411 add support for COMPAT LKMs
constify type_names[], avoid using random data for unknown/invalid types
2000-12-10 11:52:09 +00:00
jdolecek
9b6d040095 fork1(): write the ktrace entry before the parent is put to sleep for
FORK_PPWAIT case, so that this DTRT for vfork() too
2000-12-10 11:41:20 +00:00
chs
1c89ab39ad redo ext2fs_balloc_range(), accounting for differences between ext2fs and ffs. 2000-12-10 06:38:31 +00:00
christos
39b08b8fe0 remove redundant declarations of h_errno and __hostalias 2000-12-10 04:19:53 +00:00
christos
86af4f2cf9 fix duplicate declaration of __glue. 2000-12-10 04:17:28 +00:00
christos
c2285c0805 remove dedundant declaration of _svc_getreq_common; declared in <rpc/svc.h> 2000-12-10 04:12:03 +00:00
christos
ec4fa3bdcc remove redundant declaration of _seterr_reply. Already declared in
<rpc/rpc_msg.h>
2000-12-10 04:10:08 +00:00
christos
f92dc9c439 unnest nested extern declaration. 2000-12-10 03:59:00 +00:00
christos
94a9754eeb #ifdef out duplicate declaration for unlink. 2000-12-10 03:56:31 +00:00
christos
bfa2813aa9 remove duplicate declaration. 2000-12-10 03:54:22 +00:00
christos
a2df081a7e -Wredundant-declarations does not like nested extern declarations. 2000-12-10 03:52:16 +00:00
matt
3d9cc98e9a Add VAX 4000/200 2000-12-10 03:37:56 +00:00
bjh21
4f5619bc7c Prototype kdb_trap(). 2000-12-10 01:31:48 +00:00
bjh21
7e79390d64 Delint. 2000-12-10 01:27:35 +00:00
bjh21
6073fc61bf Indirect the SWI handler through the current emulation, thus providing a
syscall() for MI code.  Hope it never calls it itself.
2000-12-10 01:18:52 +00:00
bjh21
477863502b DIAGNOSTIC check for mangled exception vectors. 2000-12-10 01:02:04 +00:00
chs
cae7ac2e3a in uvm_pagermapin(), for now, don't pass the flag to pmap_enter()
which presets the page modified bit if the page is already initialized.
we don't actually want to modify such pages.
2000-12-09 23:26:27 +00:00
castor
dac94f4d7b Make sc->wi_txbuf an array of u_int16_t instead u_int8_t so alignment
is handled correctly.  Thanks to Martin Husemann for nagging me to
do the right thing.
2000-12-09 22:59:44 +00:00
thorpej
1c3d23d12c More IPv6-friendliness. 2000-12-09 22:39:12 +00:00
chs
f5878a3362 only zero the part of the page after EOF if we're actually
initializing the page.
2000-12-09 22:38:23 +00:00
scw
1a0a12c5b4 Bah. Somehow the a.out versions of the bootxx symbols got deleted; put
them back.
2000-12-09 22:33:24 +00:00
scw
a3dc741c03 Delete the commented out EXEC_ELF32 now that it's in std.mvme68k.
(Spotted by Simon Burge)
2000-12-09 21:02:09 +00:00
matt
2e13ae83bc cpp/lorder/mkdep don't have cross specific versions. 2000-12-09 20:42:06 +00:00
scw
4c12d23bdb Fix C++ static ctors/dtors by providing the same macros as defined
in i386/netbsd-elf.h.
2000-12-09 20:38:04 +00:00
matt
632d2ad2ee Don't use __hpcmips__, but hpcmips 2000-12-09 20:35:31 +00:00
christos
835b5d35c5 how many different prototypes does linux_syscall() need finally? sheesh! 2000-12-09 19:51:44 +00:00