diff options
author | Segher Boessenkool <segher@kernel.crashing.org> | 2010-02-18 04:14:08 +0100 |
---|---|---|
committer | Segher Boessenkool <segher@kernel.crashing.org> | 2010-02-18 04:14:08 +0100 |
commit | 91a26a26aa7d24f34899aaeddc4779532b86cf2e (patch) | |
tree | e6a7118d6e77247e4407dc56605058183e8b5846 | |
parent | 9aed2a09fee8e6f50a6657b3da85dc2793882037 (diff) |
video: Init the IRQ position to something impossible
Without this, these IRQs trigger early, and WAL cannot handle that
(it tries to handle all IRQs that are active, not only those that
are enabled).
-rw-r--r-- | emu.c | 1 | ||||
-rw-r--r-- | video.c | 6 | ||||
-rw-r--r-- | video.h | 2 |
3 files changed, 9 insertions, 0 deletions
@@ -948,6 +948,7 @@ void emu(void) read_rom(0); board_init(); io_init(); + video_init(); audio_init(); memset(reg, 0, sizeof reg); @@ -471,3 +471,9 @@ void blit_screen(void) blit_sprites(depth); } } + +void video_init(void) +{ + mem[0x2836] = 0xffff; + mem[0x2837] = 0xffff; +} @@ -22,4 +22,6 @@ u16 video_load(u32 addr); void blit_screen(void); +void video_init(void); + #endif |