From: John Hodge Date: Sat, 15 Oct 2011 13:46:03 +0000 (+0800) Subject: Commenting and cleanup X-Git-Tag: rel0.13~61 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=7852cb728c839810f4de80b60ba29f29a1fcfa10;p=tpg%2Facess2.git Commenting and cleanup --- diff --git a/Kernel/arch/armv7/start.S b/Kernel/arch/armv7/start.S index ad8ff6f2..5a8e4eb4 100644 --- a/Kernel/arch/armv7/start.S +++ b/Kernel/arch/armv7/start.S @@ -68,8 +68,8 @@ _ptr_kmain: .extern SyscallHandler SVC_Handler: @ sub lr, #4 - srsdb sp!, #19 @ Switch to supervisor mode (DDI0406B D1.6.5) (actually SRSFD) - cpsid ifa, #19 + srsdb sp!, #19 @ Save state to stack + cpsie ifa, #19 @ Ensure we're in supervisor with interrupts enabled (should already be there) push {r0-r12} ldr r4, [lr,#-4] @@ -178,7 +178,6 @@ DataAbort: @ POP_GPRS @ rfeia sp! @ Pop state (actually RFEFD) - bx lr .globl PrefetchAbort PrefetchAbort: diff --git a/Usermode/Libraries/ld-acess.so_src/elf.c b/Usermode/Libraries/ld-acess.so_src/elf.c index 1df3e8e9..cba670e7 100644 --- a/Usermode/Libraries/ld-acess.so_src/elf.c +++ b/Usermode/Libraries/ld-acess.so_src/elf.c @@ -156,7 +156,6 @@ void *Elf32Relocate(void *Base, char **envp, const char *Filename) dynamicTab[j].d_val, dynamicTab[j].d_val + iBaseDiff); if(iBaseDiff != 0) dynamicTab[j].d_val += iBaseDiff; dynsymtab = (void*)(dynamicTab[j].d_val); -// hdr->misc.SymTable = dynamicTab[j].d_val; // Saved in unused bytes of ident break; // --- String Table --- case DT_STRTAB: @@ -169,7 +168,6 @@ void *Elf32Relocate(void *Base, char **envp, const char *Filename) case DT_HASH: if(iBaseDiff != 0) dynamicTab[j].d_val += iBaseDiff; iSymCount = ((Elf32_Word*)(dynamicTab[j].d_val))[1]; -// hdr->misc.HashTable = dynamicTab[j].d_val; // Saved in unused bytes of ident break; } } @@ -179,16 +177,6 @@ void *Elf32Relocate(void *Base, char **envp, const char *Filename) return (void *) hdr->entrypoint + iBaseDiff; } - #if 0 - // Alter Symbols to true base - for(i=0;i