@@ -784,7 +784,6 @@ static inline void cdvd_readee(void *buf)
784
784
u8 curlsn_buf [16 ];
785
785
u32 nbytes , nsectors , sectors_to_read , size_64b , size_64bb , bytesent , temp ;
786
786
int sector_size , flag_64b , fsverror ;
787
- void * fsvRbuf = (void * )cdvdfsv_buf ;
788
787
void * eeaddr_64b , * eeaddr2_64b ;
789
788
cdvdfsv_readee_t readee ;
790
789
RpcCdvd_t * r = (RpcCdvd_t * )buf ;
@@ -828,7 +827,6 @@ static inline void cdvd_readee(void *buf)
828
827
temp -= (u32 )eeaddr2_64b ;
829
828
readee .pdst2 = eeaddr2_64b ; // get the end address on a 64 bytes align
830
829
readee .b2len = temp ; // get bytes remainder at end of 64 bytes align
831
- fsvRbuf += temp ;
832
830
833
831
if (readee .b1len )
834
832
flag_64b = 0 ; // 64 bytes alignment flag
@@ -866,7 +864,7 @@ static inline void cdvd_readee(void *buf)
866
864
temp = nsectors ;
867
865
}
868
866
869
- if (sceCdRead (r -> lsn , temp , (void * )fsvRbuf , NULL ) == 0 ) {
867
+ if (sceCdRead (r -> lsn , temp , (void * )cdvdfsv_buf , NULL ) == 0 ) {
870
868
if (sceCdGetError () == CDVD_ERR_NO ) {
871
869
fsverror = CDVD_ERR_READCF ;
872
870
sceCdSC (CDSC_SET_ERROR , & fsverror );
@@ -882,14 +880,14 @@ static inline void cdvd_readee(void *buf)
882
880
883
881
if (!flag_64b ) {
884
882
if (sectors_to_read == r -> sectors ) // check that was the first read. Data read will be skewed by readee.b1len bytes into the adjacent sector.
885
- mips_memcpy ((void * )readee .buf1 , (void * )fsvRbuf , readee .b1len );
883
+ mips_memcpy ((void * )readee .buf1 , (void * )cdvdfsv_buf , readee .b1len );
886
884
887
885
if ((sectors_to_read == nsectors ) && (readee .b1len )) // For the last sector read.
888
886
size_64bb = size_64b - 64 ;
889
887
}
890
888
891
889
if (size_64bb > 0 ) {
892
- sysmemSendEE ((void * )(fsvRbuf + readee .b1len ), (void * )eeaddr_64b , size_64bb );
890
+ sysmemSendEE ((void * )(cdvdfsv_buf + readee .b1len ), (void * )eeaddr_64b , size_64bb );
893
891
bytesent += size_64bb ;
894
892
}
895
893
@@ -903,7 +901,7 @@ static inline void cdvd_readee(void *buf)
903
901
} while ((flag_64b ) || (sectors_to_read ));
904
902
905
903
//At the very last pass, copy readee.b2len bytes from the last sector, to complete the alignment correction.
906
- mips_memcpy ((void * )readee .buf2 , (void * )(fsvRbuf + size_64b - readee .b2len ), readee .b2len );
904
+ mips_memcpy ((void * )readee .buf2 , (void * )(cdvdfsv_buf + size_64b - readee .b2len ), readee .b2len );
907
905
}
908
906
909
907
* (int * )buf = bytesent ;
0 commit comments