shithub: riscv

Download patch

ref: 38c0dfacabb9b4e4ba4f8d6cd96166d355708f7e
parent: 74778941ed75b0a548d6f00e825d6d56bb5722d8
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Mar 15 22:28:04 EDT 2014

pc64: fix swaped error/flags in dumpregs(), remove misleading comment in apbootstrap

--- a/sys/src/9/pc64/apbootstrap.s
+++ b/sys/src/9/pc64/apbootstrap.s
@@ -99,7 +99,6 @@
  * Long mode. Welcome to 2003.
  * Jump out of the identity map space;
  * load a proper long mode GDT;
- * zap the identity map;
  * initialise the stack and call the
  * C startup code in m->splpc.
  */
--- a/sys/src/9/pc64/trap.c
+++ b/sys/src/9/pc64/trap.c
@@ -491,7 +491,7 @@
 		ureg->cs & 0xffff, ureg->pc, ureg->sp);
 
 	iprint("TYPE %.2lluX     ERROR %.4lluX           FLAGS %.8lluX\n",
-		ureg->type & 0xff, ureg->flags & 0xffffffff, ureg->error & 0xffff);
+		ureg->type & 0xff, ureg->error & 0xffff, ureg->flags & 0xffffffff);
 
 	/*
 	 * Processor control registers.