changeset 142:ce04ebdd00e2

Why was I copying that? I see no reason to
author Jonathan Pevarnek <pevarnj@gmail.com>
date Thu, 22 Sep 2011 14:23:40 -0400
parents a237afb2f8a0
children 73cf7b972c19
files src/os/except.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/os/except.c	Thu Sep 22 14:22:55 2011 -0400
+++ b/src/os/except.c	Thu Sep 22 14:23:40 2011 -0400
@@ -23,10 +23,8 @@
 	Psw *oldPsw = (void*)PROGINT_PSW_OLD;
 	u64 *regStore = (u64*)PROGINT_REG_LOC;
 
-	u64 regLoc[NUM_REGS];
-	memcpy((void*)regLoc, regStore, NUM_REGS*sizeof(u64));
 	for(i = 0; i < NUM_REGS; i++) {
-		sprintf(buffer, "REG %x: %x\n", i, regLoc[i]);
+		sprintf(buffer, "REG %x: %x\n", i, regStore[i]);
 		sPrint(buffer);
 	}
 	sprintf(buffer, "INSTR ADDR: %x\n", oldPsw->ptr);