Commit Graph

657 Commits

Author SHA1 Message Date
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
uwe
24ce06fd0d Provide PIC_EPILOGUE_SLOT that is safe to use in delay slot. 2006-01-06 22:27:53 +00:00
uwe
25d6b3ac57 Introduce PIC_PROLOGUE_NOSAVE for functions that do non-local jumps
and don't need to save/restore r12.  Shaves off two instructions.
2006-01-05 19:18:40 +00:00
uwe
d4e9884c9c mova can only have r0 as destination, so PIC_PROLOGUE can not specify
an arbitrary temp register.
2006-01-05 02:45:19 +00:00
uwe
2a12f0da53 Macros for .size directive. 2006-01-05 02:02:56 +00:00
uwe
5b2d014092 Provide defines for offsets into the jump buffer. 2006-01-05 00:50:23 +00:00
uwe
ba99e8a02c Nuke __P. 2006-01-03 01:29:46 +00:00
uwe
5804629139 KNF: space after the keyword, blank line between function declarations
and variable definitions.
2006-01-02 23:37:34 +00:00
uwe
6ee797fb71 Prepend "cpu0: " to autoconfiguration messages.
While here move separator space to the beginning of optional messages.
Tweak write-through/back message so that is parses as expected.

PR: port-sh3/31315
2006-01-02 23:32:11 +00:00
uwe
e968ab9426 Prepend "cpu0: " to autoconfiguration messages.
While here re-wrap some lines to be more readable.

PR: port-sh3/31315
2006-01-02 23:30:33 +00:00
uwe
3099c2f7de Add space between cpu speed and "MHz" in the attachment message. 2006-01-02 23:16:20 +00:00
uwe
9d461d0045 First cut at PIC macros. 2005-12-31 05:06:33 +00:00
perry
2d542ba1f8 inline -> __inline 2005-12-28 19:09:29 +00:00
perry
50a256a3a0 __asm__ -> __asm
__const__ -> const
__inline__ -> inline
__volatile__ -> volatile
2005-12-24 23:23:59 +00:00
uwe
12ffdb00a2 Implement WARN_REFERENCES. 2005-12-24 22:57:26 +00:00
perry
2d65de2479 bare asm -> __asm 2005-12-24 22:45:33 +00:00
uwe
552b373ffa Prettify. 2005-12-24 21:10:28 +00:00
perry
5f1c88d70d Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete. 2005-12-24 20:06:46 +00:00