[Kernelloader-cvs] linux/simple-toolchain ps2sdk-mips64r5900el-ps2-elf.patch, 1.1, 1.2 readme-ps2de
Run Linux on the Playstation 2
Brought to you by:
kloader
From: Mega M. <kl...@us...> - 2012-09-16 17:35:55
|
Update of /cvsroot/kernelloader/linux/simple-toolchain In directory vz-cvs-3.sog:/tmp/cvs-serv23653 Modified Files: ps2sdk-mips64r5900el-ps2-elf.patch readme-ps2dev.txt Log Message: Several fixes. Mainly alignment fixes. Index: ps2sdk-mips64r5900el-ps2-elf.patch =================================================================== RCS file: /cvsroot/kernelloader/linux/simple-toolchain/ps2sdk-mips64r5900el-ps2-elf.patch,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ps2sdk-mips64r5900el-ps2-elf.patch 16 Sep 2012 00:08:15 -0000 1.1 --- ps2sdk-mips64r5900el-ps2-elf.patch 16 Sep 2012 17:35:52 -0000 1.2 *************** *** 49,52 **** --- 49,66 ---- all: build @$(ECHO) .; + diff --git a/common/include/sifcmd.h b/common/include/sifcmd.h + index aae49a8..d38c8ef 100644 + --- a/common/include/sifcmd.h + +++ b/common/include/sifcmd.h + @@ -22,6 +22,9 @@ extern "C" { + + #define SYSTEM_CMD 0x80000000 [...1977 lines suppressed...] + - ((long*)_rpc_buffer)[3] = timeout->tv_sec; + - ((long*)_rpc_buffer)[4] = timeout->tv_usec; + + ((long long*)_rpc_buffer)[3] = timeout->tv_sec; // TBD: Test for 32/64Bit + + ((long long*)_rpc_buffer)[4] = timeout->tv_usec; // TBD: Test for 32/64Bit + } + if( readset ) + { + @@ -391,8 +391,8 @@ int select(int maxfdp1, struct fd_set *readset, struct fd_set *writeset, struct + + if( timeout ) + { + - timeout->tv_sec = ((long*)uncached_buf)[3]; + - timeout->tv_usec = ((long*)uncached_buf)[4]; + + timeout->tv_sec = ((long long*)uncached_buf)[3]; // TBD: Test for 32/64Bit + + timeout->tv_usec = ((long long*)uncached_buf)[4]; // TBD: Test for 32/64Bit + } + if( readset ) + { diff --git a/samples/Makefile.pref_sample b/samples/Makefile.pref_sample index 8c0e5c5..1b84b74 100644 Index: readme-ps2dev.txt =================================================================== RCS file: /cvsroot/kernelloader/linux/simple-toolchain/readme-ps2dev.txt,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** readme-ps2dev.txt 16 Sep 2012 00:08:15 -0000 1.1 --- readme-ps2dev.txt 16 Sep 2012 17:35:52 -0000 1.2 *************** *** 32,33 **** --- 32,34 ---- - "__inline__" must now be "inline". - Now casting on left side of assignment is forbidden. + - Stack variables are now 8 byte and not 16 byte aligned. SifRpcCall() parameters must be checked for alignment (use DMA_ALIGN). |