mirror of
https://github.com/Polprzewodnikowy/N64FlashcartMenu.git
synced 2024-11-25 12:06:54 +01:00
Reboot procedure fixes
This commit is contained in:
parent
ac63083089
commit
af7705b821
@ -93,6 +93,7 @@ void boot (boot_params_t *params) {
|
|||||||
while (cpu_io_read(&SP->DMA_BUSY));
|
while (cpu_io_read(&SP->DMA_BUSY));
|
||||||
|
|
||||||
cpu_io_write(&PI->SR, PI_SR_CLR_INTR | PI_SR_RESET);
|
cpu_io_write(&PI->SR, PI_SR_CLR_INTR | PI_SR_RESET);
|
||||||
|
while (cpu_io_read(&VI->CURR_LINE) != 2);
|
||||||
cpu_io_write(&VI->V_INTR, 0x3FF);
|
cpu_io_write(&VI->V_INTR, 0x3FF);
|
||||||
cpu_io_write(&VI->H_LIMITS, 0);
|
cpu_io_write(&VI->H_LIMITS, 0);
|
||||||
cpu_io_write(&VI->CURR_LINE, 0);
|
cpu_io_write(&VI->CURR_LINE, 0);
|
||||||
@ -146,7 +147,10 @@ void boot (boot_params_t *params) {
|
|||||||
tv_type = (params->tv_type & 0x03);
|
tv_type = (params->tv_type & 0x03);
|
||||||
reset_type = BOOT_RESET_TYPE_COLD;
|
reset_type = BOOT_RESET_TYPE_COLD;
|
||||||
cic_seed = (params->cic_seed & 0xFF);
|
cic_seed = (params->cic_seed & 0xFF);
|
||||||
version = (params->tv_type == BOOT_TV_TYPE_PAL) ? 6 : 1;
|
version = (params->tv_type == BOOT_TV_TYPE_PAL) ? 6
|
||||||
|
: (params->tv_type == BOOT_TV_TYPE_NTSC) ? 1
|
||||||
|
: (params->tv_type == BOOT_TV_TYPE_MPAL) ? 4
|
||||||
|
: 0;
|
||||||
stack_pointer = (void *) UNCACHED(&SP_MEM->IMEM[1020]);
|
stack_pointer = (void *) UNCACHED(&SP_MEM->IMEM[1020]);
|
||||||
|
|
||||||
asm volatile (
|
asm volatile (
|
||||||
|
Loading…
Reference in New Issue
Block a user