diff options
| author | Alejandro Soto <alejandro@34project.org> | 2023-10-04 15:23:49 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2023-10-04 15:23:49 -0600 |
| commit | 64dbe25a5023b87acaa648c7cfcb3f183032589a (patch) | |
| tree | 16adff52540bae421b145903a8a657ed533fe384 /demo/demo.h | |
| parent | f2b332fe0bf95beab5ef4ecbbdc506a1b7d0399c (diff) | |
Makefile: add rules for demo
Diffstat (limited to 'demo/demo.h')
| -rw-r--r-- | demo/demo.h | 4 |
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); |
