Commit Graph

76601 Commits

Author SHA1 Message Date
chs
f889fd6ff9 remove signal trampoline stuff since it'll never be used in the kernel.
clean up the ELF support.
2001-02-05 12:37:33 +00:00
chs
5f244b1055 conditionalize the ddb hook on DDB && DEBUG_FPE rather than DDB && DEBUG,
since that's the condition under which we include the header file that
allows it to compile.
2001-02-05 12:35:13 +00:00
chs
5706160195 fix several bugs:
- in the cases where we skip over the i/o loop, increment npages by ridx
   so that when the cleanup code starts processing the pgs array at index 0
   it'll actually process all of the pages.
 - process the PG_RELEASED flag when unbusying pages.
 - add some missing MP locking.
 - use MIN() and MAX() instead of min() and max() since the latter are
   functions which take arguments of type "int" but we call them with
   values of type "off_t", so the values could be truncated.
2001-02-05 12:27:18 +00:00
chs
8c14e1d2db fix several bugs:
- in the cases where we skip over the i/o loop, increment npages by ridx
   so that when the cleanup code starts processing the pgs array at index 0
   it'll actually process all of the pages.
 - process the PG_RELEASED flag when unbusying pages.
 - add some missing MP locking.
 - use MIN() and MAX() instead of min() and max() since the latter are
   functions which take arguments of type "int" but we call them with
   values of type "off_t", so the values could be truncated.
 - in the PGO_PASTEOF case, use the larger of the current file size and the
   end of the requested range of pages as the file size for this request.
   this fixes some problems with sparsing writes to large offsets.
2001-02-05 12:26:08 +00:00
chs
4d5451090e in uvm_map_clean(), fix the case where the start offset is within the last
entry in the map.  the old code would walk around the end of the linked list,
through the header entry, and keep going from the first map entry until it
found a gap in the map, at which point it would return an error.  if the map
had no gaps then it would loop forever.  reported by k-abe@cs.utah.edu.
while I'm here, clean up this function a bit.

also, use MIN() instead of min(), since the latter takes arguments of
type "int" but we're passing it values of type "vaddr_t", which can be
a larger size.
2001-02-05 11:29:54 +00:00
chs
c92d60cfce expose the definitions of MIN() and MAX() in sys/param.h to the kernel
and use those in favor of a dozen copies scattered around the source tree.
2001-02-05 11:16:31 +00:00
chs
755889bc0b clear pcb_onfault before calling uvm_fault() and restore it afterward.
if the fault handler generates a pagefault, we'd like to panic rather
than invoking the onfault handler.
2001-02-05 11:12:05 +00:00
chs
a1c22f6d67 add casts to an assertion in ffs_alloc() so it works with offsets past 4GB. 2001-02-05 10:55:02 +00:00
chs
09cb38f22b expose the definitions of MIN() and MAX() in sys/param.h to the kernel
and use those in favor of a dozen copies scattered around the source tree.
2001-02-05 10:42:40 +00:00
eeh
db133b2424 Add signal trampoline for 64-bit svr4 emulations. 2001-02-05 06:56:45 +00:00
mrg
8e76e697d7 fix the glaring errors in emulations for osendmsg, orecvmsg, osigvec and osigstack. 2001-02-05 06:32:55 +00:00
mrg
973fe837ab s/long/netbsd32_long/ in various places. call netbsd32_fcntl, not sys_fcntl. 2001-02-05 06:28:55 +00:00
mrg
07df067e6c make sunos32_sys_stime() & sunos32_sys_sigvec() work. 2001-02-05 06:27:57 +00:00
itojun
56f2ea71f0 typo. ntohl -> htonl. 2001-02-05 06:04:41 +00:00
enami
5760375275 Include uvm/uvm_extern.h to pull in the definition of PAGE_SIZE. 2001-02-05 04:50:27 +00:00
itojun
30b4221720 make it compile on alpha. cast pointer to u_long, not int 2001-02-05 04:33:41 +00:00
itojun
d0bc7a3c3d s/unix/unit/ for ld* on mlx* :-) 2001-02-05 04:16:52 +00:00
lukem
9b7718e15b set *errmsg to errbuf, preventing coredump if no interfaces are up 2001-02-05 02:37:34 +00:00
christos
23bb393e6b fix nested extern 2001-02-05 02:09:37 +00:00
christos
85ef06032c fix nested externs
rename raise to upcase to avoid clash with raise(3)
2001-02-05 02:07:52 +00:00
christos
e5785ba616 fix nested extern 2001-02-05 01:56:51 +00:00
christos
8b325711d4 don't include extern.h here; every other file includes it. 2001-02-05 01:56:38 +00:00
christos
f6321b3b4d fixed nested externs 2001-02-05 01:53:48 +00:00
christos
5a144646f2 fix nested extern and duplicate decls 2001-02-05 01:51:52 +00:00
christos
69195d4077 remove redundant decl 2001-02-05 01:47:01 +00:00
christos
ac535251a5 don't use errx() in usage
fix nested extern
2001-02-05 01:45:32 +00:00
christos
e0475d14f3 fix redundant and nested decls 2001-02-05 01:44:07 +00:00
christos
35d2e40e99 fix nested extern 2001-02-05 01:39:27 +00:00
christos
32d9714048 fix redundant decls 2001-02-05 01:37:33 +00:00
christos
6915289539 add missing prototypes in order to enable full WARNS 2001-02-05 01:35:45 +00:00
christos
8f3b31ba6f fix nested extern 2001-02-05 01:21:00 +00:00
christos
ffa8eefe34 fix nested extern
rename system to shell_system so that it does not conflict with libc
2001-02-05 01:20:12 +00:00
christos
b67c82fdfe fix redundant decls and nested externs 2001-02-05 01:12:46 +00:00
christos
dc6488eb8e remove redundant decls. 2001-02-05 01:10:08 +00:00
christos
16263c885d remove duplicate decls 2001-02-05 01:04:25 +00:00
christos
1b1c2fdcec fix nested externs 2001-02-05 01:02:45 +00:00
christos
c18d8e65fc remove redundant decls 2001-02-05 01:01:27 +00:00
christos
a0d324ea8d - rename getchar to lgetchar to avoid conflicts with the stdio getchar
- fix redundant decls and nested externs
- use snprintf instead of sprintf
2001-02-05 00:57:32 +00:00
christos
d3c5cea8f0 remove redundant decls 2001-02-05 00:42:14 +00:00
christos
7a04a9fd9e eliminate nested externs 2001-02-05 00:40:45 +00:00
christos
bc32159d26 fix redundant decls and nested externs. while I am here change my copyright
to TNF.
2001-02-05 00:37:43 +00:00
christos
1f9a3967e4 fix nested externs 2001-02-05 00:30:38 +00:00
christos
a2bee8edad fix nested extern and usage message 2001-02-05 00:29:44 +00:00
christos
b176d7de54 remove redundant decl 2001-02-05 00:28:30 +00:00
christos
f06735e877 fix nested extern 2001-02-05 00:27:35 +00:00
christos
d249c86e88 remove redundant decl 2001-02-05 00:23:59 +00:00
christos
a3807f8fed fix redundant decls and nested externs 2001-02-05 00:22:52 +00:00
christos
57bae04512 fix nested extern 2001-02-05 00:20:58 +00:00
christos
762fbcf25e eliminate redundant decls 2001-02-05 00:20:05 +00:00
scottr
ed472989a6 Implement a significantly improved version of memccpy(), with thanks to
Ignatios Souvatzis for correcting the SVR4 ABI code and for a few
micro-optimizations that followed from these changes.

The overall improvement was measured at 3-4x for copies of at least
4 bytes on the 68030, and 8 bytes on the 68040.  For smaller copies
the improvement was still measurable, if not as dramatic.
2001-02-05 00:17:22 +00:00