drochner
19f047f8d0
SIGTRAMP_VALID() should not pollute the user namespace
2004-05-10 21:51:49 +00:00
kleink
7b3b647647
Factor out W{CHAR,INT}_{MAX,MIN} into their own header file.
2004-05-08 21:51:47 +00:00
pk
1af1129600
The cpu_exit() detour is no longer necessary.
2004-05-02 11:22:06 +00:00
pk
cd955b850f
Bits 0 (MMU Enable) and 1 (Fault inhibit) are common among the implementations
...
of the SRMMU control register. Reflect that fact in the definitions here.
Also add the swift `store allocate' bit.
2004-04-27 13:05:38 +00:00
hannken
82161a9cbe
Protect against multiple inclusion.
2004-04-23 09:20:20 +00:00
pk
aa53aca844
Turn __CPU_SIMPLE_LOCK_INLINE into !__CPU_SIMPLE_LOCK_NOINLINE, so we don't
...
screw up user land.
2004-04-20 08:48:03 +00:00
pk
2e643fb9ae
__cpu_simple_lock() isn't a pure function.
2004-04-19 12:41:53 +00:00
pk
68f30ee7af
Make inlining __cpu_simple_lock() optional. Add a version with a built-in
...
spin out counter that panics with a diagnostic.
2004-04-18 19:20:09 +00:00
pk
38bdc6fab2
Remove the cache_flush() trampoline; it's no longer directly cross-called.
...
Instead, implement the MP parts in terms of cross-callable vcache_flush_range()
function.
2004-04-17 23:45:40 +00:00
pk
6452e19758
De-__P().
2004-04-10 20:00:29 +00:00
pk
83037215bf
Do not maintain the number of valid pages per segment (`sg_npte') anymore
...
for the kernel map on SRMMU machines. This allows pmap_kenter() and
pmap_kremove() to update mappings without needing to lock the pmap
or raising the interrupt level.
2004-04-10 19:22:59 +00:00
pk
af0db768b1
Maintain pmap resident count as pages are mapped and unmapped instead
...
of traversing the page tables each time it's needed.
2004-04-03 23:11:14 +00:00
pk
70e1de69c4
Max data size -> 512MB; default stack size -> 8MB.
2004-04-03 12:39:51 +00:00
drochner
c83eb997b8
nothing cares about __HAVE_SIGINFO anymore, so nuke it
2004-03-26 21:39:57 +00:00
drochner
cf8b697c65
remove license clauses 3 and 4 from my cpoyright notices
2004-03-24 17:06:57 +00:00
pk
b744961066
Leverage the PROM's ability to identify the on-board location of a
...
physical memory address.
2004-03-22 12:37:43 +00:00
pk
7446de9195
Add sparc64 cell_t definitions.
...
Change OF_interpret() prototype to the unabridged version.
2004-03-21 15:12:35 +00:00
pk
d7d8742ed3
Turn members of `struct memarr' into long ints, to help sparc64 integration.
2004-03-21 13:52:00 +00:00
pk
f52adf179f
Remove unused `search_prom()' macro.
2004-03-18 15:13:59 +00:00
pk
ea53363e84
Rename PROM_getprop*() => prom_getprop*().
2004-03-17 17:04:58 +00:00
pk
da415e73f9
De-__P();
2004-03-17 11:00:19 +00:00
pk
6446b225e5
prom_getprop(): Make the `element size' argument a size_t (like sparc64).
2004-03-17 10:48:21 +00:00
pk
d5ae67c446
Encapsulate retrieval of properties from the global `options' prom node.
2004-03-16 22:55:47 +00:00
pk
7489a68403
Encapsulate retrieval of properties from the global `options' prom node.
2004-03-16 22:45:18 +00:00
pk
058057533c
prom_getether() now takes a `node' argument in order to support the
...
"local-mac-address" property.
2004-03-15 23:48:21 +00:00
wiz
d20841bb64
Uppercase CPU, plural is CPUs.
2004-02-13 11:36:08 +00:00
bjh21
47df99b02a
__HAVE_NWSCONS seems to mean, "If this port uses pckbc(4), it also uses
...
sys/dev/pckbc/files.pckbc." This is true of sparc, so define __HAVE_NWSCONS,
and remove the code in pckbc_machdep_cnattach() that was conditional on its
not being defined and that is no longer needed (since with __HAVE_NWSCONS,
pckbc_cnattach() will call pckbd_cnattach() itself if necessary).
2004-02-10 01:11:45 +00:00
martin
966fcad67c
How stupid can you borke a commit? I could *swear* I had tested the last
...
revision before commiting - but you ain't going to believe me anyway.
2004-01-19 19:27:46 +00:00
martin
1d4a6379f7
Only compare the trampoline version in SIGTRAMP_VALID as an unsigned value.
...
From Christos Zoulas.
2004-01-18 20:53:57 +00:00
martin
da4e67accc
Do not export __HAVE_RAS to userland. Applications are supposed to try
...
rasctl() and detect failure with EOPNOTSUPP.
2004-01-18 18:23:19 +00:00
martin
b86d7b2c57
A __insn_barrier() is now available for all archs, remove the MD version
...
here. Suggested by Jason Thorpe.
2004-01-07 20:02:28 +00:00
martin
1cfee605ee
Implement restartable atomic sequences (RAS) for sparc64.
2004-01-06 21:35:18 +00:00
jdolecek
089abdad44
Rearrange process exit path to avoid need to free resources from different
...
process context ('reaper').
From within the exiting process context:
* deactivate pmap and free vmspace while we can still block
* introduce MD cpu_lwp_free() - this cleans all MD-specific context (such
as FPU state), and is the last potentially blocking operation;
all of cpu_wait(), and most of cpu_exit(), is now folded into cpu_lwp_free()
* process is now immediatelly marked as zombie and made available for pickup
by parent; the remaining last lwp continues the exit as fully detached
* MI (rather than MD) code bumps uvmexp.swtch, cpu_exit() is now same
for both 'process' and 'lwp' exit
uvm_lwp_exit() is modified to never block; the u-area memory is now
always just linked to the list of available u-areas. Introduce (blocking)
uvm_uarea_drain(), which is called to release the excessive u-area memory;
this is called by parent within wait4(), or by pagedaemon on memory shortage.
uvm_uarea_free() is now private function within uvm_glue.c.
MD process/lwp exit code now always calls lwp_exit2() immediatelly after
switching away from the exiting lwp.
g/c now unneeded routines and variables, including the reaper kernel thread
2004-01-04 11:33:29 +00:00
pk
c6ac21f702
Enable reset of a process's alternative signal stack flag.
2004-01-01 15:02:31 +00:00
mrg
490518af32
convert __ldstub() from a ({}) macro into a properly static inline function.
...
the latter is not valid for C++ so says GCC3.
2003-12-26 06:00:58 +00:00
martin
119a91826a
If compiling for JavaStations, modify kernal VA layout to not conflict
...
with the PROM. From Valeriy E. Ushakov. This is a hack, but as long as
we don't have a way to arrange for a proper VA layout on this machines
(i.e. beyound the PROM) it is needed.
2003-12-12 14:51:48 +00:00
christos
a21fdf3b43
bye, bye _MCONTEXT_TO_SIGCONTEXT and vice versa.
2003-11-25 23:11:52 +00:00
pk
95ad31d40c
__cpu_simple_unlock: use __insn_barrier() instead of a "memory" clobber.
2003-11-16 11:22:30 +00:00
pk
fdd5b03782
Use __insn_barrier() in all bus_space read/write operations.
2003-11-16 11:09:07 +00:00
pk
97bb6a9d59
Introduce __insn_barrier(), designed to prevent instruction re-ordering
...
with minimal side-effects across its location in the source code.
2003-11-16 11:07:57 +00:00
pk
72c519a615
__cpu_simple_unlock: avoid instruction re-ordering by the compiler.
2003-11-09 21:04:44 +00:00
tsutsui
addcf5d254
#if defined(_KERNEL_OPT) is enough, #if !defined(_LKM) isn't needed
...
in that case. Pointed out by mrg.
2003-11-08 15:19:20 +00:00
kleink
bff4c04c64
Make the extended-precision definitions available for _KERNEL (i.e. the
...
FPU support package), too; reported by Chuck Silvers.
2003-10-28 15:55:09 +00:00
kleink
964d6747b5
Err, rename some members added in previous to make them reflect their
...
semantics better.
2003-10-27 01:11:46 +00:00
kleink
b37192f049
For convenient use in libc, add unions of the C floating types and their
...
corresponding structure definitions.
2003-10-26 21:46:46 +00:00
kleink
a3fabb9e7f
Use <sys/ieee754.h> where applicable.
2003-10-26 20:55:30 +00:00
christos
2454871f57
Sparc64 builds with __HAVE_SIGINFO
2003-10-26 08:08:07 +00:00
kleink
d7efc4af9e
Rip out E80 format definitions which are neither "notyet", nor going to
...
happen.
2003-10-26 00:36:43 +00:00
pk
a2fbe60ed4
sun4m_access_fault: Treat text/data error traps as if they were text/data
...
exception traps, except that they're logged on the console.
2003-10-15 07:49:41 +00:00
pk
179cafcae3
There's no point in having two separate sets of padding; add the local
...
__filler bytes to _UC_MACHINE_PAD.
2003-10-12 16:01:35 +00:00