update jz47xx branch code.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@894 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
bernard.xiong@gmail.com 2010-09-05 23:43:35 +00:00
parent 8c8530ff6e
commit 1b84c89a56
4 changed files with 5 additions and 4 deletions

View File

@ -128,7 +128,7 @@ struct rt_uart_jz
rt_uint8_t rx_buffer[RT_UART_RX_BUFFER_SIZE];
}uart_device;
static void rt_uart_irqhandler(void)
static void rt_uart_irqhandler(int irqno)
{
rt_ubase_t level, isr;
struct rt_uart_jz* uart = &uart_device;

View File

@ -91,6 +91,6 @@
#define IRQ_GPIO0 28
#define IRQ_LCD 30
#define SYSTEM_STACK 0x8000ffe8 /* the kernel system stack address */
#define SYSTEM_STACK 0x80003fe8 /* the kernel system stack address */
#endif

View File

@ -53,7 +53,8 @@ rt_uint8_t *rt_hw_stack_init(void *tentry, void *parameter, rt_uint8_t *stack_ad
*(--stk) = (rt_uint32_t) 0xffff; /* c0_badvaddr */
*(--stk) = (rt_uint32_t) cp0_get_lo(); /* lo */
*(--stk) = (rt_uint32_t) cp0_get_hi(); /* hi */
*(--stk) = (rt_uint32_t) g_sr; /* C0_SR: HW2 = En, IE = En */
// *(--stk) = (rt_uint32_t) g_sr; /* C0_SR: HW2 = En, IE = En */
*(--stk) = (rt_uint32_t) 0xFC01; /* C0_SR: HW2 = En, IE = En */
*(--stk) = (rt_uint32_t) texit; /* ra */
*(--stk) = (rt_uint32_t) 0x0000001e; /* s8 */
*(--stk) = (rt_uint32_t) stack_addr; /* sp */

View File

@ -20,7 +20,7 @@ _start:
la ra, _start
/* init cp0 registers. */
li t0, 0x0040FC00
li t0, 0x0000FC00 /* BEV = 0 and mask all interrupt */
mtc0 t0, CP0_STATUS
li t1, 0x00800000