1.1 --- a/stage2/lcd.c Sun Jan 24 21:18:17 2016 +0100
1.2 +++ b/stage2/lcd.c Sun Jan 24 21:37:15 2016 +0100
1.3 @@ -32,14 +32,14 @@
1.4 #include "board.h"
1.5
1.6 extern vidinfo_t panel_info;
1.7 -static void *lcd_base;
1.8 -u32 irq_counter = 0;
1.9 +static unsigned long lcd_base;
1.10 +unsigned long irq_counter = 0;
1.11
1.12 void test_pixel(unsigned short h, unsigned short v)
1.13 {
1.14 unsigned short v_max = panel_info.vl_row;
1.15 unsigned short h_max = panel_info.vl_col;
1.16 - u32 *pix = (u32 *)lcd_base + v * h_max + h;
1.17 + unsigned long *pix = (unsigned long *)lcd_base + v * h_max + h;
1.18
1.19 /* NOTE: Code assumes 32 bits/pixel. */
1.20 #ifdef NORMAL
1.21 @@ -52,7 +52,7 @@
1.22 unsigned short offset, bit;
1.23 bit = 31 - (32 * h / (h_max - 1));
1.24 offset = v / 4;
1.25 - *pix = ((*((u32 *) 0x80000200 + offset) & (1 << bit)) >> bit) ? 0xffffffff : 0;
1.26 + *pix = ((*((unsigned long *) 0x80000200 + offset) & (1 << bit)) >> bit) ? 0xffffffff : 0;
1.27 #else
1.28 unsigned short bit;
1.29 volatile unsigned int cp0_register;
1.30 @@ -70,7 +70,7 @@
1.31 void clear_pixel(unsigned short h, unsigned short v)
1.32 {
1.33 unsigned short h_max = panel_info.vl_col;
1.34 - u32 *pix = (u32 *)lcd_base + v * h_max + h;
1.35 + unsigned long *pix = (unsigned long *)lcd_base + v * h_max + h;
1.36
1.37 *pix = 0;
1.38 }
1.39 @@ -93,7 +93,7 @@
1.40 unsigned short v_max = panel_info.vl_row;
1.41 unsigned short h_max = panel_info.vl_col;
1.42 unsigned short v, h;
1.43 - u32 *pix = (u32 *)lcd_base;
1.44 + unsigned long *pix = (unsigned long *)lcd_base;
1.45
1.46 for (v = 0; v < v_max; v += 1) {
1.47 for (h = 0; h < h_max; h += 1) {