Skip to content

Commit

Permalink
video: Init the IRQ position to something impossible
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
segher committed Feb 18, 2010
1 parent 9aed2a0 commit 91a26a2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions emu.c
Original file line number Diff line number Diff line change
Expand Up @@ -948,6 +948,7 @@ void emu(void)
read_rom(0);
board_init();
io_init();
video_init();
audio_init();

memset(reg, 0, sizeof reg);
Expand Down
6 changes: 6 additions & 0 deletions video.c
Original file line number Diff line number Diff line change
Expand Up @@ -471,3 +471,9 @@ void blit_screen(void)
blit_sprites(depth);
}
}

void video_init(void)
{
mem[0x2836] = 0xffff;
mem[0x2837] = 0xffff;
}
2 changes: 2 additions & 0 deletions video.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@ u16 video_load(u32 addr);

void blit_screen(void);

void video_init(void);

#endif

0 comments on commit 91a26a2

Please sign in to comment.