2002-11-01 Joel Sherrill <joel@OARcorp.com>

* console/console.c, start/start.c: Removed warnings.
This commit is contained in:
Joel Sherrill
2002-11-01 23:09:05 +00:00
parent 80277b8398
commit a8d0dbd305
3 changed files with 42 additions and 38 deletions

View File

@@ -1,3 +1,7 @@
2002-11-01 Joel Sherrill <joel@OARcorp.com>
* console/console.c, start/start.c: Removed warnings.
2002-10-21 Ralf Corsepius <corsepiu@faw.uni-ulm.de> 2002-10-21 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* .cvsignore: Reformat. * .cvsignore: Reformat.

View File

@@ -41,36 +41,36 @@ static volatile char _debug_flag = 0;
/* _catchSCIint, _catchCTSint, and _catchSPURIOUSint are the /* _catchSCIint, _catchCTSint, and _catchSPURIOUSint are the
interrupt front-ends */ interrupt front-ends */
extern void _catchSCIint(); extern void _catchSCIint();
asm(" .text asm(" .text\n\
.align 2 .align 2\n\
.globl _catchSCIint .globl _catchSCIint\n\
_catchSCIint: _catchSCIint:\n\
moveml %d0-%d7/%a0-%a6,%sp@- /* save registers */ moveml %d0-%d7/%a0-%a6,%sp@- /* save registers */\n\
jbsr uart_interrupt jbsr uart_interrupt\n\
moveml %sp@+,%d0-%d7/%a0-%a6 moveml %sp@+,%d0-%d7/%a0-%a6 \n\
rte rte\n\
"); ");
extern void _catchCTSint(); extern void _catchCTSint();
asm(" .text asm(" .text\n\
.align 2 .align 2\n\
.globl _catchCTSint .globl _catchCTSint\n\
_catchCTSint: _catchCTSint:\n\
moveml %d0-%d7/%a0-%a6,%sp@- /* save registers */ moveml %d0-%d7/%a0-%a6,%sp@- /* save registers */\n\
jbsr cts_interrupt jbsr cts_interrupt\n\
moveml %sp@+,%d0-%d7/%a0-%a6 moveml %sp@+,%d0-%d7/%a0-%a6 \n\
rte rte\n\
"); ");
extern void _catchSPURIOUSint(); extern void _catchSPURIOUSint();
asm(" .text asm(" .text\n\
.align 2 .align 2\n\
.globl _catchSPURIOUSint .globl _catchSPURIOUSint\n\
_catchSPURIOUSint: _catchSPURIOUSint:\n\
moveml %d0-%d7/%a0-%a6,%sp@- /* save registers */ moveml %d0-%d7/%a0-%a6,%sp@- /* save registers */\n\
jbsr spurious_interrupt jbsr spurious_interrupt\n\
moveml %sp@+,%d0-%d7/%a0-%a6 moveml %sp@+,%d0-%d7/%a0-%a6 \n\
rte rte\n\
"); ");
int _spurious_int_counter=0; int _spurious_int_counter=0;
@@ -84,13 +84,13 @@ void spurious_interrupt(void) {
UART_ISR_LEVEL) as a trap #1 to enter the debugger */ UART_ISR_LEVEL) as a trap #1 to enter the debugger */
/* *****fix me; this is for 68000 w/jsr ram exception table ******* */ /* *****fix me; this is for 68000 w/jsr ram exception table ******* */
asm(" .text asm(" .text\n\
.align 2 .align 2\n\
_fake_trap_1: _fake_trap_1:\n\
unlk %a6 /* clear interrupt frame */ unlk %a6 /* clear interrupt frame */\n\
lea %sp@(4),%sp /* remove jbsr instruction */ lea %sp@(4),%sp /* remove jbsr instruction */\n\
moveml %sp@+,%d0-%d7/%a0-%a6 /* pop registers */ moveml %sp@+,%d0-%d7/%a0-%a6 /* pop registers */\n\
jmp (33*6-12) /* jump exception 1 */ jmp (33*6-12) /* jump exception 1 */\n\
"); ");
/* dispatch UART interrupt */ /* dispatch UART interrupt */

View File

@@ -24,16 +24,16 @@ void dumby_start() {
/* We need to by-pass the link instruction since the RAM chip- /* We need to by-pass the link instruction since the RAM chip-
select pins are not yet configured. */ select pins are not yet configured. */
asm volatile ( ".global start ; asm volatile ( ".global start ;\n\
start:"); start:");
/* disable interrupts, load stack pointer */ /* disable interrupts, load stack pointer */
asm volatile ( "oriw #0x0700, %sr; asm volatile ( "oriw #0x0700, %sr;\n\
moveal #M68Kvec, %a0; moveal #M68Kvec, %a0;\n\
movec %a0, %vbr; movec %a0, %vbr;\n\
movel #end, %d0; movel #end, %d0;\n\
addl " STACK_SIZE ",%d0; addl " STACK_SIZE ",%d0;\n\
movel %d0,%sp; movel %d0,%sp;\n\
movel %d0,%a6" movel %d0,%a6"
); );