diff options
author | Luca Dariz <luca@orpolo.org> | 2023-02-12 18:28:11 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-02-12 18:41:18 +0100 |
commit | 19d5c54a76c6ff1b96c2860ab3fd50af9e81c5b5 (patch) | |
tree | 3b76474e9ff88ab9d02972cef6532223e1a03de0 /x86_64/interrupt.S | |
parent | 7150aa22ccc847af70a69cd8f53b3195825e2d0e (diff) | |
download | gnumach-19d5c54a76c6ff1b96c2860ab3fd50af9e81c5b5.tar.gz gnumach-19d5c54a76c6ff1b96c2860ab3fd50af9e81c5b5.tar.bz2 gnumach-19d5c54a76c6ff1b96c2860ab3fd50af9e81c5b5.zip |
fix x86_64 asm for higher kernel addresses
* x86_64/interrupt.S: use 64-bit registers as variables could be
stored at high addresses
* x86_64/locore.S: Likewise
Message-Id: <20230212172818.1511405-3-luca@orpolo.org>
Diffstat (limited to 'x86_64/interrupt.S')
-rw-r--r-- | x86_64/interrupt.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/x86_64/interrupt.S b/x86_64/interrupt.S index fe2b3858..31f386ec 100644 --- a/x86_64/interrupt.S +++ b/x86_64/interrupt.S @@ -59,10 +59,10 @@ ENTRY(interrupt) movl S_IRQ,%eax /* copy irq number */ shll $2,%eax /* irq * 4 */ - movl EXT(iunit)(%eax),%edi /* get device unit number as 1st arg */ + movl EXT(iunit)(%rax),%edi /* get device unit number as 1st arg */ shll $1,%eax /* irq * 8 */ - call *EXT(ivect)(%eax) /* call interrupt handler */ + call *EXT(ivect)(%rax) /* call interrupt handler */ movl S_IPL,%edi /* restore previous ipl */ call splx_cli /* restore previous ipl */ |