mirror of
https://github.com/cfenollosa/os-tutorial.git
synced 2024-10-27 20:34:19 +00:00
registers -> registers_t
This commit is contained in:
parent
5c61020541
commit
0bbbdf7cf8
@ -79,7 +79,7 @@ We add `cld` just before `call isr_handler` on `cpu/interrupt.asm` as suggested
|
|||||||
by the osdev wiki.
|
by the osdev wiki.
|
||||||
|
|
||||||
There is a final, important issue with `cpu/interrupt.asm`. The common stubs create an instance
|
There is a final, important issue with `cpu/interrupt.asm`. The common stubs create an instance
|
||||||
of `struct registers` on the stack and then call the C handler. But that breaks the ABI, since
|
of `struct registers_t` on the stack and then call the C handler. But that breaks the ABI, since
|
||||||
the stack belongs to the called function and they may change them as they please. It is needed
|
the stack belongs to the called function and they may change them as they please. It is needed
|
||||||
to pass the struct as a pointer.
|
to pass the struct as a pointer.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user