[ros-diffs] [akhaldi] 54083: [FREELDR] * Comment out some unused variables.

akhaldi at svn.reactos.org akhaldi at svn.reactos.org
Tue Oct 11 18:43:35 UTC 2011


Author: akhaldi
Date: Tue Oct 11 18:43:34 2011
New Revision: 54083

URL: http://svn.reactos.org/svn/reactos?rev=54083&view=rev
Log:
[FREELDR]
* Comment out some unused variables.

Modified:
    trunk/reactos/boot/freeldr/freeldr/arch/powerpc/mboot.c
    trunk/reactos/boot/freeldr/freeldr/arch/powerpc/mmu.c

Modified: trunk/reactos/boot/freeldr/freeldr/arch/powerpc/mboot.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/arch/powerpc/mboot.c?rev=54083&r1=54082&r2=54083&view=diff
==============================================================================
--- trunk/reactos/boot/freeldr/freeldr/arch/powerpc/mboot.c [iso-8859-1] (original)
+++ trunk/reactos/boot/freeldr/freeldr/arch/powerpc/mboot.c [iso-8859-1] Tue Oct 11 18:43:34 2011
@@ -425,7 +425,8 @@
     ULONG ImageSize;
     INT i, j;
     PLOADER_MODULE ModuleData;
-    int phsize, phnum, shsize, shnum, relsize, SectionAddr = 0;
+    //int phsize, phnum;
+    int shsize, shnum, relsize, SectionAddr = 0;
     PCHAR sptr;
     Elf32_Ehdr ehdr;
     Elf32_Shdr *shdr;
@@ -457,8 +458,8 @@
     }
 
     /* Start by getting elf headers */
-    phsize = ehdr.e_phentsize;
-    phnum = ehdr.e_phnum;
+    //phsize = ehdr.e_phentsize;
+    //phnum = ehdr.e_phnum;
     shsize = ehdr.e_shentsize;
     shnum = ehdr.e_shnum;
     sptr = (PCHAR)MmHeapAlloc(shnum * shsize);

Modified: trunk/reactos/boot/freeldr/freeldr/arch/powerpc/mmu.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/arch/powerpc/mmu.c?rev=54083&r1=54082&r2=54083&view=diff
==============================================================================
--- trunk/reactos/boot/freeldr/freeldr/arch/powerpc/mmu.c [iso-8859-1] (original)
+++ trunk/reactos/boot/freeldr/freeldr/arch/powerpc/mmu.c [iso-8859-1] Tue Oct 11 18:43:34 2011
@@ -318,14 +318,15 @@
 int PpcVirt2phys( int virt, int inst ) {
     int msr = GetMSR();
     int txmask = inst ? 0x20 : 0x10;
-    int i, bath, batl, sr, sdr1, physbase, vahi, valo;
-    int npteg, hash, hashmask, ptehi, ptelo, ptegaddr;
+    int i, bath, batl, sr, sdr1, physbase, valo;
+    int hash, hashmask, ptehi, ptelo, ptegaddr;
+    //int vahi, npteg;
     int vsid, pteh, ptevsid, pteapi;
 
     if( msr & txmask ) {
 	sr = GetSR( virt >> 28 );
 	vsid = sr & 0xfffffff;
-	vahi = vsid >> 4;
+	//vahi = vsid >> 4;
 	valo = (vsid << 28) | (virt & 0xfffffff);
 	if( sr & 0x80000000 ) {
 	    return valo;
@@ -343,7 +344,7 @@
 	physbase = sdr1 & ~0xffff;
 	hashmask = ((sdr1 & 0x1ff) << 10) | 0x3ff;
 	hash = (vsid & 0x7ffff) ^ ((valo >> 12) & 0xffff);
-	npteg = hashmask + 1;
+	//npteg = hashmask + 1;
 
 	for( pteh = 0; pteh < 0x80; pteh += 64, hash ^= 0x7ffff ) {
 	    ptegaddr = ((hashmask & hash) * 64) + physbase;




More information about the Ros-diffs mailing list