more diagnostic output

This commit is contained in:
Markus Fröschle
2012-11-04 19:18:19 +00:00
parent 8bad0545d2
commit 75ea5a353b

View File

@@ -124,6 +124,7 @@ void BaS(void)
xprintf("finished\r\n");
xprintf("enable video: ");
/*
* video setup (25MHz)
*/
@@ -143,6 +144,9 @@ void BaS(void)
/* fifo on, refresh on, ddrcs and cke on, video dac on */
* (volatile uint32_t *) (0xf0000410 - 0x20) = 0x01070002;
xprintf("finished\r\n");
/*
* memory setup
*/
@@ -167,6 +171,7 @@ void BaS(void)
* (uint32_t *) 0x5a4 = (uint32_t) Bas_base; /* ramtop TOS system variable */
* (uint32_t *) 0x5a8 = 0x1357bd13; /* ramvalid TOS system variable */
xprintf("init ACIA: ");
/* init ACIA */
* (uint8_t *) 0xfffffc00 = 3;
__asm__ __volatile__("nop \n\t" : : : "memory");
@@ -179,6 +184,8 @@ void BaS(void)
* (uint8_t *) 0xfffffa11 = -1;
__asm__ __volatile__("nop \n\t" : : : "memory");
xprintf("finished\r\n");
/* Test for pseudo-supervisor mode: DIP switch #6 down */
if (DIP_SWITCH & (1 << 7)) {
/* In this mode, the OS actually runs in user mode
@@ -192,6 +199,9 @@ void BaS(void)
void *initial_sp;
void_func *initial_pc;
} ROM_HEADER;
xprintf("Call OS. BaS finished...\r\n");
ROM_HEADER* os_header = (ROM_HEADER*)tos_base;
os_header->initial_pc();
}