From 64dbe25a5023b87acaa648c7cfcb3f183032589a Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Wed, 4 Oct 2023 15:23:49 -0600 Subject: Makefile: add rules for demo --- demo/demo.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'demo/demo.h') 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); -- cgit v1.2.3