summaryrefslogtreecommitdiff
path: root/demo/demo.h
diff options
context:
space:
mode:
Diffstat (limited to 'demo/demo.h')
-rw-r--r--demo/demo.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/demo/demo.h b/demo/demo.h
index f01b36c..f98d599 100644
--- a/demo/demo.h
+++ b/demo/demo.h
@@ -13,10 +13,10 @@ struct cpu
unsigned num;
};
-/* R12 está reservado por la ABI
+/* Esto viola la ABI, pero no importa porque no dependemos de bibliotecas
* https://gcc.gnu.org/onlinedocs/gcc/Global-Register-Variables.html
*/
-register struct cpu *this_cpu asm("ip");
+register struct cpu *this_cpu asm("r9");
void spin_init(struct lock *lock);
void spin_lock(struct lock *lock, unsigned *irq_save);