Skip to content

Commit

Permalink
EE core: write to SIF regs one-by-one, as per the original.
Browse files Browse the repository at this point in the history
  • Loading branch information
sp193 committed Feb 13, 2019
1 parent fe2d90c commit 6a859d2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ee_core/src/iopmgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ static void ResetIopSpecial(const char *args, unsigned int arglen)

DIntr();
ee_kmode_enter();
Old_SifSetReg(SIF_REG_SMFLAG, SIF_STAT_SIFINIT | SIF_STAT_CMDINIT);
Old_SifSetReg(SIF_REG_SMFLAG, SIF_STAT_SIFINIT);
Old_SifSetReg(SIF_REG_SMFLAG, SIF_STAT_CMDINIT);
Old_SifSetReg(SIF_SYSREG_RPCINIT, 0);
Old_SifSetReg(SIF_SYSREG_SUBADDR, (int)NULL);
ee_kmode_exit();
Expand Down Expand Up @@ -221,7 +222,8 @@ int Reset_Iop(const char *arg, int mode)
return 0;
}

Old_SifSetReg(SIF_REG_SMFLAG, SIF_STAT_SIFINIT | SIF_STAT_CMDINIT);
Old_SifSetReg(SIF_REG_SMFLAG, SIF_STAT_SIFINIT);
Old_SifSetReg(SIF_REG_SMFLAG, SIF_STAT_CMDINIT);
Old_SifSetReg(SIF_SYSREG_RPCINIT, 0);
Old_SifSetReg(SIF_SYSREG_SUBADDR, (int)NULL);
ee_kmode_exit();
Expand Down

0 comments on commit 6a859d2

Please sign in to comment.