Closed israpps closed 6 months ago
this also works on IOP! Where should I move it so it is available to both EE and IOP @rickgaiser ?
If I had 2 guess... iop_regs.h
, but I want a 2nd opinion
Yes, https://github.com/ps2dev/ps2sdk/blob/master/common/include/iop_regs.h looks like the right place for this.
There's already 2 defines for the same location (I think?):
#define A_IOP_IRQ_CTRL 0xBF801450
#define A_IOP_SIF_1450 0xBF801450
#define GM_IF ((vu32 *)0x1F801450)
Do these point to the same registers and can they be re-used?
Yes, https://github.com/ps2dev/ps2sdk/blob/master/common/include/iop_regs.h looks like the right place for this.
There's already 2 defines for the same location (I think?):
#define A_IOP_IRQ_CTRL 0xBF801450 #define A_IOP_SIF_1450 0xBF801450
#define GM_IF ((vu32 *)0x1F801450)
Do these point to the same registers and can they be re-used?
The values are not the same I think?
@rickgaiser this should suffice
0x1F801450 + 0xA0000000 = 0xBF801450
it's the same address, only accessed differently:
But I'm fine with this change. Merging.
This allows us to detect DECKARD models without even opening
rom0:DECKARD
. Thought it might be useful to have it as part of the SDK headers