uwe
c842fab210
Fix file comment to include the expansion for 'F' in "SCIF".
2006-02-14 00:02:03 +00:00
uwe
533115eb12
Define scif register base(s) and offsets.
...
Express old defines in terms of base + offset.
Use uintN_t.
2006-02-14 00:00:34 +00:00
uwe
7dea0a81b8
Move/merge common defintions out of ifdef.
2006-02-13 23:26:31 +00:00
uwe
2e71b70d1f
While here, use uintN_t.
2006-02-12 02:30:55 +00:00
uwe
c6474efc78
Revert changes made in 1.10. They should not be necessary (we are
...
doing a single word store). I've been running my Jornada without them
for a very long time, but got no word from dreamcast folks. Thanks to
Nick Hudson for testing it on dreamcast finally.
2006-02-12 02:23:03 +00:00
uwe
3c5e28322e
pmap_extract: handle P1 and P2 (MMU bypass) addresses specially.
...
PMAP_MAP_POOLPAGE maps pa -> P1 va, so we must handle this case here.
PR port-sh3/26569 by Nick Hudson.
2006-02-09 10:08:32 +00:00
uwe
175260c2de
sh3_vector_tlbmiss: don't waste perfectly good delay slots.
2006-02-08 02:19:57 +00:00
uwe
33c4e018e2
While here, shave off few bytes and few cycles off of the sh3_vector_tlbmiss.
...
Since the registers we use are at the very end of address space, we
can load their addresses as small immediate negative constants instead
of loading them from memory.
2006-02-08 00:32:06 +00:00
uwe
9621f44368
Pass untruncated va=TEA to tlb_exception(), not its VPN.
2006-02-07 23:56:20 +00:00
skrll
c36e4cf586
Fix the multiple inclusion protection. hi dsl.
2006-02-02 06:39:05 +00:00
dsl
37875b24f4
Need to install byte_swap.h and bswap.h needs to include sh3/byte_swap.h.
2006-02-01 20:56:18 +00:00
dsl
28cb02c94f
Make the sh3 bswap headers look like all the other ports
2006-01-31 07:58:56 +00:00
dsl
67d47e0290
Change sys/arch/xxx/include/bswap.h to #include machine/byte_swap.h then
...
sys/bswap.h in order to pick up the MD inline routines and the constant
folding definitions in the right order.
Code can include either sys/bswap.h or machine/bswap.h with the same effect.
2006-01-31 07:49:18 +00:00
dsl
6f0f9f8763
Make almost everything #include <sys/bswap.h> instead of <machine/bswap.h>
...
The bswap.h and endian.h files are all rather incestuous, but I want to
get the constant folding stuff into one place - sys/bswap.h
2006-01-29 21:42:40 +00:00
uwe
86e8b6d9d0
Wrap sh3 and sh4 parts into respective ifdefs.
...
Declare local functions static.
ANSI'ify functions without arguments.
2006-01-25 00:02:57 +00:00
uwe
4baa2e17dd
EVTCODE_TO_MAP_INDEX - tweak to help gcc produce better code.
2006-01-24 23:51:42 +00:00
uwe
25196f3ee3
Consistently apply ifdef logic so that in SH3-only or SH4-only kernel
...
all references to CPU cpecific functions are direct, and unused hooks
are not defined.
2006-01-24 00:01:22 +00:00
uwe
aec45d5629
Pacify -Wuninitialized for SH3 && SH4 case.
2006-01-23 23:25:45 +00:00
uwe
6b850c4367
Delclare __sh_PTEH for SH3 && SH4 case.
2006-01-23 23:17:49 +00:00
uwe
8cfe9e15ba
Pacify -Wuninitialized for SH3 && SH4 case.
2006-01-23 23:07:19 +00:00
uwe
406de23722
Don't waste rts delay slots in sh3_switch_resume and savectx.
...
longjmp needs to arrange for a call to setjmp to return 1.
2006-01-23 22:52:09 +00:00
uwe
a22aa45682
Use cpp-safe labels.
2006-01-23 22:32:50 +00:00
uwe
5db834dbd4
LINTSTUB: include <sh3/locore.h> - to check *_switch_resume prototypes.
2006-01-23 22:14:59 +00:00
uwe
3e38547c6e
Provide sh3_switch_resume/sh4_switch_resume with own copies of L_MD_UPTE.
...
Move SET_ENTRY_SIZE(sh4_switch_resume) under ifdef SH4.
2006-01-23 22:06:44 +00:00
uwe
8025d17cda
Fix sh_tlb_update signature for SH3 && SH4 case.
2006-01-23 22:04:04 +00:00
uwe
4dfa629043
Wrap sh3_switch_setup/sh4_switch_setup into the same ifdefs that are
...
used in vm_machdep.c at their invocation sites.
2006-01-23 21:45:02 +00:00
uwe
f8e74829d9
Fix the sense of #else/#endif comments.
2006-01-23 21:39:15 +00:00
uwe
9167514771
In onfault handlers of copyinstr and copyoutstr move EFAULT to the
...
correct register. This code worked correctly only because the right
register already contained EFAULT.
2006-01-23 03:17:17 +00:00
uwe
e1b83e081d
LINTSTUBs. Provide .size (except for the switch maze of jumps).
2006-01-23 01:33:53 +00:00
uwe
622ea6b6fb
Fix few labels with dots in the middle that I've missed in previous.
2006-01-23 00:36:04 +00:00
uwe
c4d52dce59
Use cpp-safe labels.
2006-01-23 00:31:54 +00:00
uwe
43f9c9c93e
Use bsr instead of mova+jsr.
2006-01-22 06:25:25 +00:00
uwe
c4ef153e79
LINTSTUBs.
2006-01-22 06:08:51 +00:00
uwe
c5b4a6c241
Use macros from <machine/asm.h>. Provide .size
...
Provide LINTSTUBs.
2006-01-22 05:56:58 +00:00
uwe
722d3e38c8
CONSTCOND.
2006-01-21 22:10:59 +00:00
uwe
530e77af35
Use foo &= ~(type)mask; instead of foo &= (type)~mask; to make lint happy.
...
While here, convert to uintN_t.
2006-01-21 04:57:07 +00:00
uwe
ffc34314e2
Add lint comments. Hide computed goto in cpu_reset() from lint.
...
Remove infinite loop from cpu_reset(), gcc accepts computed goto as
the sign that function never returns.
2006-01-21 04:26:56 +00:00
uwe
a1695713e9
Declare cpu_reset as __attribute__((__noreturn__)).
2006-01-21 04:24:12 +00:00
uwe
2f21a084a1
ANSI'fy.
2006-01-21 04:12:22 +00:00
uwe
d0928cda19
Lintable no-ops for LOCKDEBUG macros.
2006-01-21 03:57:48 +00:00
uwe
e4f6d0eca3
Hide RUN_P2 and RUN_P1 from lint.
...
Drop CONSTCOND as lint doesn't see that code now.
While here, tweak them a bit to use less casts.
2006-01-21 03:52:42 +00:00
uwe
c4888894b9
Use uint32_t.
2006-01-21 03:42:29 +00:00
uwe
92dfa6358c
Tweak the way we compute displacement for bra/bsr.
...
Makes lint happy, makes code shorter too.
2006-01-21 02:09:06 +00:00
uwe
a5480590a9
"if (foo) return;" in one line is bad style.
2006-01-21 01:51:47 +00:00
uwe
f57593cc31
Use space in "static\tvoid".
2006-01-21 01:48:36 +00:00
uwe
696dfdc2f6
Use uint16_t instead of u_short for instructions.
...
There's no reason for buf argument to be unsigned char.
0x7f is not a printing character.
2006-01-21 01:45:34 +00:00
uwe
6167325eb6
Add NOTREACHED after calls to panic().
2006-01-21 00:56:05 +00:00
uwe
de6525a736
There's no need to duplicate cpu type ifdef dance here. cputypes.h
...
already defines CPU_IS_SH[34] as constants for kernels that support
only single cpu type.
2006-01-21 00:46:36 +00:00
uwe
88d4d97511
Add CONSTCOND to make lint happy.
2006-01-21 00:40:36 +00:00
christos
3ffa241fcd
Add a STRONG_ALIAS macro
2006-01-20 22:02:40 +00:00