File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -219,11 +219,12 @@ s32 STM_ShutdownToIdle(void)
219219#endif
220220 return STM_ENOTINIT ;
221221 }
222- switch (SYS_GetHollywoodRevision ()) {
222+ switch (SYS_GetHollywoodRevision ()>> 4 ) {
223223 case 0 :
224+ __stm_immbufin [0 ] = 0xBCA08280 ;
225+ break ;
224226 case 1 :
225- case 2 :
226- __stm_immbufin [0 ] = 0xFCA08280 ;
227+ __stm_immbufin [0 ] = 0xBCE082C0 ;
227228 break ;
228229 default :
229230 __stm_immbufin [0 ] = 0xFCE082C0 ;
Original file line number Diff line number Diff line change @@ -1957,28 +1957,27 @@ u32 SYS_GetConsoleType(void)
19571957 case 0x0003 :
19581958 case 0x0203 :
19591959 type = SYS_CONSOLE_RETAIL_ES1_0 ;
1960- type += * (( u32 * ) 0x80003138 );
1960+ type += SYS_GetHollywoodRevision ( );
19611961 break ;
19621962 case 0x0201 :
19631963 case 0x0202 :
19641964 type = SYS_CONSOLE_NDEV_ES1_0 ;
1965- type += * (( u32 * ) 0x80003138 );
1965+ type += SYS_GetHollywoodRevision ( );
19661966 break ;
19671967 case 0x0300 :
19681968 type = SYS_CONSOLE_ARCADE ;
19691969 break ;
19701970 }
19711971 } else {
19721972 type = SYS_CONSOLE_RETAIL_ES1_0 ;
1973- type += * (( u32 * ) 0x80003138 );
1973+ type += SYS_GetHollywoodRevision ( );
19741974 }
19751975 return type ;
19761976}
19771977
19781978u32 SYS_GetHollywoodRevision (void )
19791979{
19801980 u32 rev ;
1981- DCInvalidateRange ((void * )0x80003138 ,8 );
19821981 rev = * ((u32 * )0x80003138 );
19831982 return rev ;
19841983}
You can’t perform that action at this time.
0 commit comments