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
pk
582c396832
Construct arguments properly and update comment in previous bzero -> memset
...
changes.
2003-11-08 14:04:26 +00:00
martin
6e204ff9bc
Fix previous (bzero -> memset), it overlooked the delay slot.
...
Use set and clr pseudo instructions to simplify the code a bit.
2003-11-08 13:21:36 +00:00
jdolecek
117242ea83
use "mov 0, %o1" instead of kinda strange "sethi 0, %o1" in previous
...
pointed out by Matthew Green
2003-11-08 08:09:38 +00:00
jdolecek
587e0e3497
use memset() instead of bzero()
2003-11-08 07:39:18 +00:00
pk
d6565c303c
cpu_switch: values in global registers are not preserved across function calls.
2003-11-07 14:54:29 +00:00
pk
0bd2c4a2ea
swift_cache_enable: set cache enable bits after resetting the cache tags.
2003-11-07 14:50:21 +00:00
pk
1fac26c0a5
* Set ksi_code to SI_NOINFO where we used to return zero.
...
* Fill in ksi_errno if we have an error code to report.
2003-11-04 14:24:25 +00:00
tsutsui
c7058a99ee
Fix leftover of MI mk48txx(4) changes inside #if defined(SUN4).
...
Pointed out by Juergen Hannken-Illjes.
2003-11-02 12:59:18 +00:00
tsutsui
deb5638bdc
Adapt to MI mk48txx(4) changes.
...
Tested on SS1+ (mainbus), but not tested on sun4/sun4m (obio).
XXX maybe this file should be split into mainbus and obio attachments
XXX and moved into sys/arch/sparc/dev or sys/dev/sun.
2003-11-01 22:59:24 +00:00
cl
b936d40f39
Avoid sneaking past signal delivery in sa_upcall_userret():
...
generate unblocked upcalls in sa_unblock_userret(), before signal
delivery/p_userret handling in userret().
Also defer getting state for preempted upcalls because on some ports
preemption can happen between sa_unblock_userret() and sa_upcall_userret().
2003-11-01 01:38:46 +00:00
simonb
6d85c5e0d5
Don't pass the (unused) return value args to the
...
trace_enter()/systrace_enter() functions.
2003-10-31 03:28:12 +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
chs
cd23cf5c7c
uninitialized variables.
2003-10-28 15:25:27 +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
lukem
f85d2d1c14
Use ${HOST_SH} instead of `sh'.
...
If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.
2003-10-26 07:25:33 +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
48b10bb77d
pmap_map_srmmu: use the `map-pages' Forth word to let prom map all pages
...
at once.
2003-10-24 09:48:08 +00:00
uwe
129cf6259c
Catch up with GENERIC (1.148).
2003-10-22 18:24:53 +00:00
kleink
7d9835b758
Don't use NULL in integer-type assignments/comparisons.
2003-10-21 20:59:31 +00:00
pk
7dceb5fbf9
obp_v2_getbootfile: we might as well be complete by also considering the
...
PROM environment variables `diag-switch?' and `diag-file'.
2003-10-15 11:51:48 +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
595fb05c30
obp_v2_getbootfile: use the value of the `boot-file' prom environment
...
variable if we determine that the boot arguments presented to us by the
PROM do not contain a boot file name.
Idea from Greg Woods on port-sparc@netbsd.org .
2003-10-13 17:59:19 +00:00
agc
b2b49933f4
Move Matt Green's code from a 4-clause to a 3-clause licence by removing
...
the advertising clause. Diffs provided in PR 22396 by Joel Baker, the changes
were confirmed to the board by Matt Green.
2003-10-13 14:22:20 +00:00
pk
46166f9be5
Simplify fpu_cleanup() by having it return a code to indicate that a SIGFPE
...
is to be posted; let trap() deal with constructing the siginfo structure.
2003-10-12 19:48:52 +00:00
pk
75da020979
sendsig: we must copy out the `ksi_info' field.
2003-10-12 17:08:08 +00:00
pk
42e535f6f6
sendsig: don't copy out the ucontext_t padding bytes onto the user stack.
2003-10-12 16:12:20 +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
pk
c2e604a45c
Simplify struct sigframe.
2003-10-12 14:36:19 +00:00
pk
8169a404f6
mem_access_fault_*: call KSI_INIT_TRAP() before filling in the siginfo fields.
2003-10-12 14:34:31 +00:00
pk
44510064ca
Define SIGTRAMP_VALID.
2003-10-11 22:15:18 +00:00
jdolecek
ef5bb330f5
reassing majors for crypto and pf to use the newly defined MI major
...
range
2003-10-10 22:42:39 +00:00
jdolecek
4e915c9ccd
update the comment - the space for machine-dependant majors
...
is reduced to 0-143
follows discussion on tech-kern
2003-10-10 21:21:25 +00:00
thorpej
901da40cf9
Add some accessor macros for the ucontext:
...
* _UC_MACHINE_PC() - access the program counter
* _UC_MACHINE_INTRV() - access the integer return value register
* _UC_MACHINE_SET_PC() - set the program counter (this requires
special handling on some platforms).
2003-10-08 22:43:01 +00:00
thorpej
68723a995b
* Shuffle some data structures so, and add a flags word to ksiginfo_t.
...
Right now the only flag is used to indicate if a ksiginfo_t is a
result of a trap. Add a predicate macro to test for this flag.
* Add initialization macros for ksiginfo_t's.
* Add accssor macro for ksi_trap. Expands to 0 if the ksiginfo_t was
not the result of a trap. This matches the sigcontext trapcode semantics.
* In kpsendsig(), use KSI_TRAP_P() to select the lwp that gets the signal.
Inspired by Matthias Drochner's fix to kpsendsig(), but correctly handles
the case of non-trap-generated signals that have a > 0 si_code.
This patch fixes a signal delivery problem with threaded programs noted by
Matthias Drochner on tech-kern.
As discussed on tech-kern. Reviewed and OK's by Christos.
2003-10-08 00:28:40 +00:00
tron
ebbe253d6d
Add COMPAT_16.
2003-10-07 09:43:58 +00:00
pk
3de506eaf1
No need for SVR4/SunOS5 FPE_* codes as these are compatible with ours.
2003-10-06 07:10:41 +00:00
pk
a9b14e04b8
sparc kernel support for SA_SIGINFO.
2003-10-05 21:13:23 +00:00
jdolecek
e6286b949a
Add some framework for MI assignment of device majors - add sys/dev/majors
...
which is automatically included during kernel config, and add comments
to individual machine-dependant majors.* files to assign new MI majors
in MI file.
Range 0-191 is reserved for machine-specific assignments, range
192+ are MI assignments.
Follows recent discussion on tech-kern@
2003-10-05 08:04:24 +00:00
hannken
2d5deed228
Make it compile (again) with DEBUG enabled. With SUN4 defined, segfixmask
...
was an u_long while whithout SUN4 it was an int.
Approved by: Paul Kranenburg <pk@netbsd.org>
2003-10-02 16:02:09 +00:00
nathanw
4d59420344
Move __cpu_simple_lock_t and __SIMPLELOCK_{UN,}LOCKED to machine/types.h
...
so that they can be used in a namespace-friendly way.
2003-09-26 22:45:41 +00:00
simonb
550b4bef88
Fix "constify sendsig/trapsignal" fallout for non-siginfo'd archs. Test
...
compiled on most architectures.
2003-09-26 12:02:55 +00:00
cl
4ba5ca7f2f
fix copy-paste oversight in MD part of SA/pthread pagefault handling
2003-09-16 19:02:51 +00:00
cl
8c7a07f686
add MD part of SA/pthread pagefault handling on sparc
2003-09-16 13:59:59 +00:00
uwe
9f598eb5ba
DOH, sparc was not doing p_userret processing in userret()!
...
Adding it helps SA a great deal. E.g. ogg123 actually works now.
2003-09-07 20:41:05 +00:00
uwe
edee4547b6
Define 'nil' as long and remove the cast in the *only* place it's used.
...
Makes gcc3 happy as well.
2003-09-07 00:52:01 +00:00
uwe
f8a341efaa
Drop bogus ## to make gcc3 happy.
2003-09-07 00:30:40 +00:00