chs
ab7269f62a
if uvm_fault() fails with KERN_RESOURCE_SHORTAGE, send a SIGKILL
...
and print a message about it. this will be used to recover from
out-of-swap conditions.
1999-03-18 04:56:01 +00:00
tsubai
b4374e3ce0
Implement badaddr() and trap machine-check in badaddr.
1999-03-15 01:29:07 +00:00
tsubai
61fbe51007
First-cut of profiling support.
...
XXX userland only, for now.
1999-03-05 07:59:13 +00:00
tsubai
96f0fb14a1
Add RSS accounting.
1999-03-05 06:10:48 +00:00
tsubai
01614b7217
Implement pmap_procwr().
...
(Not tested. gdb doesn't work on powerpc yet.)
1999-02-26 14:40:45 +00:00
hubertf
100778d54a
RCS ID police
1999-02-15 04:25:28 +00:00
kleink
f69591d12d
Use of casts as lvalues is a GNU C extension; rearrange slightly.
1999-02-10 17:03:26 +00:00
tsubai
46660b394f
Make ptable really aligned to HTABSIZE.
1999-02-04 12:45:31 +00:00
mycroft
897a8a7f29
Mark [hn]to[nh][ls]() with __const__, so they are subject to CSE.
1999-01-24 12:55:01 +00:00
tsubai
3e7448240b
Add missing backslash.
1999-01-17 12:51:03 +00:00
chuck
9cb41178b7
MNN is no longer optional, remove old code
1999-01-16 20:39:03 +00:00
bouyer
dc306354b0
Move the bswap functions from libutil to libc (this bups the
...
minor of libc and the major of libutil). For little-endian architectures
merge the bnswap() assembly versions with nto* and hton* using symbols
aliasing. Use symbol renaming for the bswap function in this case to avoid
namespace pollution.
Declare bswap* in machine/bswap.h, not machine/endian.h. For little-endian
machines, common code for inline macros go in machine/byte_swap.h
Sync libkern with libc.
Adjust #include in kernel sources for machine/bswap.h.
1999-01-15 13:31:15 +00:00
tsubai
c2bb308ef9
Use (fast!) dcbz asm instruction in pmap_zero_page().
1999-01-12 11:03:04 +00:00
tsubai
4293e4ff3c
Use the last available page(s) for msgbuf.
1999-01-12 10:26:18 +00:00
tsubai
ae67dbc85d
Fix void * arithmetic.
1999-01-10 10:24:16 +00:00
tsubai
0280ba028c
Fix void * arithmetic.
1999-01-10 10:13:15 +00:00
sakamoto
64ba00be2c
Change r_type bit field size 5 to 6 and reduce unused bit(2 to 1).
...
Suggested by Mirian Crzig Lennox.
1998-12-03 05:15:06 +00:00
tsubai
4cb00b9fe2
Adapt to gcc change (calling sequence).
1998-12-02 14:23:03 +00:00
thorpej
a6f7e0c05a
Implement WARN_REFERENCES().
1998-12-02 00:58:42 +00:00
thorpej
8458248eec
copyin() and copyout() should return EFAULT if a fault occurs, not
...
EACCESS.
1998-11-26 21:06:21 +00:00
tsubai
35f82ac3eb
Save and restore pcb_onfault in kcopy().
1998-11-26 20:48:45 +00:00
tsubai
ac7d3e6487
Add PIC definitions.
1998-11-24 11:17:17 +00:00
ws
82fe9b4f90
The last fix in trap.c missed R2.
...
And correct the size of the fault buffer while being here.
1998-11-22 21:21:32 +00:00
tsubai
491966b273
When DSI occurs and pcb_onfault != 0, registers are incorrectly restored.
...
Fix this.
1998-11-21 20:18:47 +00:00
mrg
db3051d720
fix problems in many d_mmap routines:
...
- returned EOPNOTSUPP rather than -1.
- no check for negative offset.
many of these fix potential security problems in these drivers.
XXX XXX XXX
the d_mmap cdev routine should be changed to have a prototype like:
paddr_t (*d_mmap) __P((dev_t, off_t, int));
by someone!
1998-11-19 15:38:20 +00:00
mycroft
09093330b1
Add {LONG,WORD}_BIT and {DBL,FLT}_{DIG,MAX,MIN}.
1998-11-16 04:12:29 +00:00
tsubai
dd918881b6
Restrict the length of return value within buflen.
1998-11-15 19:53:25 +00:00
thorpej
cabecee13c
Changes to support fork_kthread():
...
- cpu_set_kpc() now takes void *arg third argument, passed to the
entry point.
- cpu_fork() allows parent to be non-curproc iff parent is proc0.
When forking non-curproc, assume its state has already been saved.
- Adjust various pieces of machine-dependent code to account of all of this.
1998-11-11 06:43:49 +00:00
tsubai
ffb3220169
Don't panic when pmap_remove_pv even if pa is not managed.
...
(i.e. I/O device. framebuffer etc.)
1998-10-13 11:30:47 +00:00
sakamoto
6857706407
powerpc/bcopy.c is unnecessary.
1998-09-18 06:04:19 +00:00
thorpej
7083b63277
Back out previous; I'm punting PowerPC to tsubai or sakamoto.
1998-09-16 23:51:27 +00:00
thorpej
ef3f4d39df
Need 103 longs for jmp_buf now (128-bit signal mask, at the front of the
...
jump buffer).
1998-09-16 23:33:18 +00:00
thorpej
cbfc257eda
sigset13_t -> int.
1998-09-14 02:48:33 +00:00
thorpej
c7d391b23c
Make signal delivery work again.
1998-09-13 09:15:51 +00:00
thorpej
70e641047c
In cpu_coredump(), use MID_MACHINE rather than MID_* (whatever it expands
...
to).
1998-09-09 11:17:24 +00:00
thorpej
8abe0d6b1c
Adjust for the new "reaper" kernel thread: do not free the vmspace and
...
u-area in machine-dependent code. Instead, call exit2() to schedule
the reaper to free them for us, once it is safe to do so (i.e. we are
no longer running on the dead proc's vmspace and stack).
1998-09-09 00:07:48 +00:00
tsubai
3a8ad815c4
Add some prototypes.
1998-09-01 16:35:50 +00:00
tsubai
b9a44d6b63
vm_offset_t --> [pv]addr_t
1998-08-31 14:43:39 +00:00
tsubai
378fc0778a
Change db_expr_t from int to long like other ports.
1998-08-31 14:16:48 +00:00
kleink
708c5f826e
Add missing wint_t (currently unused).
1998-08-16 17:16:56 +00:00
wrstuden
0e4dc30457
As ovbcopy & bcopy are now done in terms of mem* routines, it makes
...
no sense to "#define ovbcopy bcopy".
1998-08-16 02:15:50 +00:00
eeh
a2dd74ed79
Merge paddr_t changes into the main branch.
1998-08-13 02:10:37 +00:00
kleink
546365a27e
_POSIX_SOURCE -> _POSIX_C_SOURCE
1998-08-06 11:25:04 +00:00
mycroft
a24dbc8065
(Always) (practice) (safe) (macro expansion).
1998-07-31 15:07:41 +00:00
thorpej
c8f1cea511
Provide SSIZE_MAX.
1998-07-28 23:20:54 +00:00
tsubai
db105fc687
Make vtophys() return non-zero even if the addr < end.
1998-07-25 15:06:28 +00:00
thorpej
d47ea67c1f
Define one page free list, and put all pages on it.
1998-07-08 04:43:18 +00:00
jonathan
466e784ee1
defopt DDB.
1998-07-04 22:18:13 +00:00
thorpej
971b8956ef
defopt KTRACE
1998-06-25 21:18:11 +00:00
tsubai
56076d8c0d
Bugfix of MACHINE_NEW_NONCONTIG support.
...
PTE_I/G bits should be determined by mem array (not avail array).
1998-06-21 13:30:43 +00:00
kleink
1fbd0b3749
GC the unused `physadr' type, which was not able to hold a complete physical
...
address on 2 architectures anyhow. Also, move the definition of the `label_t'
type inside _KERNEL protection, since it is specific to the in-kernel
setjmp()/longjmp() implementations.
1998-06-14 20:09:22 +00:00
cgd
651b44e211
Rework the way kernel include files are installed. In the new method,
...
as with user-land programs, include files are installed by each directory
in the tree that has includes to install. (This allows more flexibility
as to what gets installed, makes 'partial installs' easier, and gives us
more options as to which machines' includes get installed at any given
time.) The old SYS_INCLUDES={symlinks,copies} behaviours are _both_
still supported, though at least one bug in the 'symlinks' case is
fixed by this change. Include files can't be build before installation,
so directories that have includes as targets (e.g. dev/pci) have to move
those targets into a different Makefile.
1998-06-12 23:22:30 +00:00
sakamoto
9125a5f198
Merge in MACHINE_NEW_NONCONTIG support and some fix from Tsubai-San.
...
UVM support.
1998-06-05 11:27:09 +00:00
sakamoto
970fffe99b
revert. ofppc->powerpc
1998-05-29 10:04:22 +00:00
sakamoto
7e5b88f619
Revert OpenFirmware files to powerpc directory.
...
OpenFirmware files are used by ofppc/macppc.
1998-05-29 08:38:25 +00:00
sakamoto
9c11ca3d51
Rename NetBSD/powerpc to NetBSD/ofppc.
...
New sys/arch/powerpc with PowerPC-generic stuff.
1998-05-28 07:56:42 +00:00
kleink
a97fc2f180
If any of _ANSI_SOURCE, _POSIX_C_SOURCE or _XOPEN_SOURCE are defined, don't
...
provide any identifiers other than sig_atomic_t.
1998-05-25 20:59:01 +00:00
drochner
bd9ed5a6fd
STANDALONE->_STANDALONE (cpp definition)
...
closes PR kern/5481 (Erik Bertelsen <erik@q610.ebe.uni-c.dk>)
1998-05-22 12:56:35 +00:00
thorpej
6626878e7b
It is no longer necessary for pmap_pinit() and pmap_release() to be
...
pmap interface functions, as NetBSD no longer uses statically allocated
pmaps (except for the kernel pmap, which is special-cased anyhow).
1998-05-19 19:00:11 +00:00
kleink
687ea7404c
Fix some arithmetics lossage on typeless pointers.
1998-05-08 16:55:15 +00:00
kleink
aa36ad1f55
Fix some arithmetics lossage on typeless pointers.
1998-05-07 21:01:41 +00:00
thorpej
1686aca01d
Pull in opt_gateway.h as appropriate.
1998-04-29 23:11:00 +00:00
kleink
a53c1863fe
Provide definitions for intptr_t and uintptr_t, signed resp. unsigned integral
...
types large enough to hold any pointer.
1998-04-27 17:39:10 +00:00
tv
b21bfbde11
Add -Wno-main conditional on compiler being gcc 2.8 or egcs. (This adds
...
a HAVE_GCC28 check-variable that can now be used to add other gcc-2.8
flags in cases where they may be useful, or to remove gcc 2.7.2 "bug
workaround" flags.)
1998-04-12 23:47:41 +00:00
bouyer
9f50fca1fd
Add commented out "options FFS_EI"
1998-03-18 16:34:41 +00:00
drochner
e3d8e9c72b
enable compatibility for old partition ID per default
1998-03-02 17:07:53 +00:00
drochner
3bb9e75863
Change MBR partition type for NetBSD to 0xa9, like the i386 port.
...
Provide compatibility via COMPAT_386BSD_MBRPART.
1998-03-02 16:18:17 +00:00
perry
1ed8ea9966
note second parm of sysarch() is now void *, + trivial KNF, etc.
1998-02-25 21:41:55 +00:00
mycroft
78875d069d
ofd -> ofdisk
1998-02-24 05:49:28 +00:00
mycroft
6bab18f8f1
Catch up with changes in dev/ofw. Add mainbus.
1998-02-24 05:45:51 +00:00
mycroft
ee0b9799e7
Fix layout of powerpc_saved_state; copy in saved MSR.
1998-02-23 03:23:05 +00:00
mycroft
79f597383e
Fix layout of powerpc_saved_state.
1998-02-23 03:22:16 +00:00
mycroft
d387a356c8
Clean up, add physadr.
1998-02-23 03:21:40 +00:00
mycroft
d56d21012f
Slight rearrangement.
1998-02-23 01:54:26 +00:00
mycroft
ab5aeaa789
Clean up #include paths.
...
Copy prom2boot() from kernel source.
rename _rtt() to OF_exit(), and add a _rtt() that calls it.
1998-02-22 07:42:30 +00:00
thorpej
772da350d4
Disable the message buffer during crash dumps by clearing msgbufenabled,
...
not msgbufmapped.
1998-02-19 04:18:30 +00:00
mycroft
b7bc9342a8
Fix typo.
1998-02-18 11:10:08 +00:00
mycroft
3b9429b248
Minor changes to make all the float.h files match.
1998-02-18 11:01:27 +00:00
mycroft
b5c132e4d2
Prototype __flt_rounds() consistently.
1998-02-03 01:26:20 +00:00
thorpej
2d33c2a97c
Implement OF_getproplen().
1998-02-02 21:02:30 +00:00
thorpej
172b242837
Rearrange slightly the way the debugger exception vectors are initialized.
1998-02-02 03:01:28 +00:00
sakamoto
a013a80854
Import DDB from OpenBSD/powerpc.
1998-01-27 15:13:09 +00:00
sakamoto
7055a6a919
Import DDB from OpenBSD/powerpc.
1998-01-27 09:15:58 +00:00
sakamoto
8c2e671594
Fix PR/4679:missing cast, from SUNAGAWA Keiki.
1998-01-27 05:46:59 +00:00
perry
6f57e5c573
multiple include protect machine/limits.h, fixes pr 4473 (from Mika Nystrom)
1998-01-09 22:23:44 +00:00
thorpej
a26db50632
Don't need __VM_PMAP_HACK anymore.
1998-01-06 08:14:14 +00:00
thorpej
4044eccd3f
Don't use vm_pmap; use vm_map.pmap instead.
1998-01-06 08:13:08 +00:00
perry
b46484bb8a
RCSID Police.
1998-01-05 20:51:25 +00:00
perry
015e898c02
RCSID Police.
1998-01-05 07:02:46 +00:00
thorpej
b9f1b716f3
Now that all ports have pmap_activate(), and it has an identical interface,
...
prototype it in <vm/pmap.h>
1998-01-03 01:12:59 +00:00
thorpej
c162e92a71
Implement pmap_activate().
1998-01-02 22:17:18 +00:00
kleink
28e0cf0693
Add COMPAT_13.
1997-12-01 16:02:09 +00:00
kleink
66c2794142
Add _BSD_SUSECONDS_T_ and _BSD_USECONDS_T_; do some space vs. tab formatting
...
cleanup
1997-11-23 20:20:53 +00:00
fair
315f8de9c2
add pseudo-device rnd, commented out
1997-11-20 08:11:14 +00:00
lukem
6c986561ee
* add commented out DDB_HISTORY_SIZE=100 if DDB exists in config file
...
* fix up use of 'options<SPACE><TAB>'
1997-11-17 01:57:23 +00:00
veego
df6d37534b
s/NETHER/NARP/ and s/ether.h/arp.h/ for the 'new' arp system.
1997-11-13 10:37:40 +00:00
thorpej
ce4c770f88
Make sure CPP, AR, AS, and RANLIB are defined.
1997-11-12 23:11:50 +00:00
thorpej
a421995756
Define LORDER, NM, and TSORT here, like we do the rest of the tools.
1997-11-12 22:25:31 +00:00
thorpej
0b04d28454
Mark uses of long long with /* LONGLONG */ for lint. From
...
Chris Demetriou <cgd@pa.dec.com>.
1997-11-05 04:36:08 +00:00
thorpej
aefc208b70
asm -> __asm__, volatile -> __volatile
1997-11-05 04:19:04 +00:00