matt
425743428c
Fix some indentation problems. Turn off PSL_EE when calling OFW.
2003-10-24 05:10:02 +00:00
matt
7e1d1cca33
s/SSR/SRR
2003-10-22 17:29:18 +00:00
matt
3f37cf2db7
Rework ddblow so that if PSL_PR == 1, it dispatches directly to the
...
trap handler and bypasses the ddbtrap code.
2003-10-22 17:27:58 +00:00
simonb
d4b0d4911f
Remove some numeric asm labels that aren't used.
2003-10-20 05:52:55 +00:00
simonb
066683efa3
Need Data Relocate in the MSR for the dcbf in pmap_procwr().
...
From Matt Thomas.
2003-10-20 05:47:52 +00:00
matt
421dd6cc28
Reorganize the way powerpc port install machine specific headers.
...
Use <powerpc/oea/bat.h> exclusively and remove <machine/bat.h> and
<powerpc/bat.h>. Remove unneeded <machine/cpufunc.h>. To insure
1:1 correspondence of <powerpc/FOO.h> to <machine/FOO.h> include
"../../powerpc/include/Makefile" in "arch/FOO/include/Makefile".
Incororpate <byte_swap.h> into <bswap.h> and then byte_swap.h
2003-10-20 00:12:09 +00:00
matt
ba34947f80
Add powerpc-specific isa and isadma machdep code. (Merge common code from
...
prep and sandpoint and ...)
2003-10-19 03:19:32 +00:00
matt
3575370e0a
Remove worthless load.
...
Save curcpu before doing uniprocessor dispatch.
2003-10-17 22:21:38 +00:00
matt
12ecf72b47
Don't zero curlwp/curpcb in cpu_switchto.
...
Use correct register in the store conditional.
Add DIAGNOSTIC check for null curpcb on cpu_switch exit.
2003-10-17 21:08:57 +00:00
matt
67ab911529
Add a KASSERT() to verify the pcb is not NULL.
2003-10-17 19:56:18 +00:00
simonb
ef41f16231
Correct a test for setting IFF_OACTIVE on the interface.
2003-10-15 02:10:00 +00:00
matt
4b22ee736b
Add support for MPC74[45]7
2003-10-09 20:49:06 +00:00
matt
acf4563b13
Add code to drop into DDB if you get a DSI fault on the current stack page.
2003-10-09 07:12:24 +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
9ed3b44b84
Use ksi_signo and ksi_code accessor macros.
2003-10-08 00:40:54 +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
scw
4eea84b735
Gah. Pick up the MI i2c headers from the right place.
...
Pointed out by Shigeyuki Fukushima on port-powerpc@.
2003-10-06 18:19:24 +00:00
shige
0af4acb526
Add Real time clock support code.
2003-10-06 18:15:08 +00:00
scw
2ba7642346
MD i2c glue for the 405GP's onboard IIC controller.
...
Bit-bang only for now.
2003-10-06 16:15:46 +00:00
manu
2522a3f784
Build PowerPC again with _HAS_SIGINFO. Remove the ifdef on _HAS_SIGINFO
...
in the header file since all platforms supported by COMPAT_DARWIN now have it.
2003-09-30 21:04:54 +00:00
simonb
953b5b465b
Add a dependancy on assym.h; helps "make -j N" kernel builds.
2003-09-29 05:14:23 +00:00
matt
a8a3bf5bed
ANSIfy.
2003-09-27 04:44:42 +00:00
matt
827263a8bc
Use ksi_signo instead of _signo.
2003-09-27 03:51:54 +00:00
matt
60ff688f72
Define SIGTRAMP_VALID properly.
2003-09-27 00:58:32 +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
matt
6986092cfe
Add a machine-dependent SIGTRAMP_VALID macro which is used to test whether
...
a trampoline version is valid or not.
2003-09-26 22:14:19 +00:00
matt
fb54d529b8
Copy out the entire ksiginfo_t, not just the first word.
2003-09-26 18:00:47 +00:00
eeh
a6192488f7
Define ksi.
2003-09-26 00:00:17 +00:00
matt
2deb8b2e7b
Deal with the constification of ksiginfo_t and sigset_t in signalling.
2003-09-25 22:22:36 +00:00
christos
ecfb034cb3
constify siginfo/trapsignal
2003-09-25 22:04:17 +00:00
matt
9a305fca59
Use direct entry for siginfo trampoline. Deal with missing
...
legacy trampolines in a cleaner manner.
2003-09-25 21:59:55 +00:00
matt
83003b0798
Fill in ksi_code.
2003-09-25 21:58:46 +00:00
matt
85a5f3065d
Add siginfo support for PowerPC.
2003-09-25 18:42:18 +00:00
matt
49317aa149
Remove db_onpanic check.
2003-09-25 17:36:33 +00:00
shige
95fa35eb8e
Delete this file because filename includes uppercase letters.
2003-09-24 11:51:19 +00:00
shige
0a36d23137
Copy IBM4xxGPx specific autoconf code from evbppc/walnut/autoconf.c.
2003-09-24 11:47:02 +00:00
matt
9c8a5009b3
Define va_list as __builtin_va_list for GCC 3.x. Change stdarg macros
...
appropriately. (this is committed from a system run a kernel and userland
built with these changes).
2003-09-24 02:39:56 +00:00
shige
dc98452dce
Copy PCI codes for IBM405GPx from evbppc/walnut/pci/{pchb.c,pci_machdep.c}.
2003-09-23 15:30:22 +00:00
shige
03467d74b5
Add devices info for IBM405GPR.
2003-09-23 15:26:46 +00:00
shige
91be153592
Add global cpu_model variable.
2003-09-23 15:25:26 +00:00
shige
e20e959b37
Copy IBM4xxGPx specific autoconf code from evbppc/walnut/autoconf.c.
2003-09-23 15:24:15 +00:00
shige
a8dd07e005
Copy IBM4XX OpenBIOS locore.S from evbppc/walnut.
2003-09-23 15:21:58 +00:00
shige
fc29eb23bf
Add some PCI definitions listed in evbppc/include/walnut.h.
2003-09-23 15:19:05 +00:00
shige
2977d5a89a
Add IBM40x specific machdep functions.
2003-09-23 15:14:02 +00:00
shige
87f629a7b8
Add IBM405GPr PVR.
2003-09-23 15:10:05 +00:00
shige
94959351e8
Add IBM405GPx specific kernel configuration file.
2003-09-23 15:06:40 +00:00
shige
ee990c494d
Move todclock driver from evbppc/walnut/dev.
2003-09-23 15:01:50 +00:00
shige
ff6df75f63
Add on-chip IIC driver.
...
Add some definitions for IIC driver.
2003-09-23 14:56:08 +00:00
cl
b826d7b216
add MD part of SA/pthread pagefault handling on powerpc
2003-09-19 00:16:34 +00:00
kleink
8d633905ac
Bring /* LINTSTUBs */ closer to reality.
2003-09-08 22:37:01 +00:00