Hi,
Il 08/09/24 01:23, Samuel Thibault ha scritto:
Hello,
AIUI, the fix you submitted was meant to fix this?
yes, at least to correctly decode the registers in the fault handler, I
didn't look deeper yet.
Luca
Hello,
AIUI, the fix you submitted was meant to fix this?
Samuel
Luca, le sam. 31 août 2024 09:42:59 +0200, a ecrit:
> Hi,
>
> Il 28/08/24 15:01, J. E. Marinheiro ha scritto:
> > At this point, a double fault evidently happens, Mach starts panicking, and
> > the registers are dumped:
> > * RAX
Hi,
Il 28/08/24 15:01, J. E. Marinheiro ha scritto:
At this point, a double fault evidently happens, Mach starts panicking, and the
registers are dumped:
* RAX=4010DE
* RBX=0
* RCX=1
* RDX=0
* RSI=0
* RDI=0
* RBP=0
* RSP=0
* R8 to R12=0
* EFLAGS=4000CE
The error message is:
`trapno 0: Divide e
Out of curiosity I wrote this program, which uses the syscalls of Linux and
only should work on it:
.section .text
.global _start
_start:
mov $1, %rax
mov $1, %rdi
mov $MSG_Hello, %rsi
mov $LEN_Hello, %rdx
syscall
mov $60, %rax
mov $0, %rdi
syscall
.section .data
MSG_Hello