aboutsummaryrefslogtreecommitdiff
path: root/include/data.s
diff options
context:
space:
mode:
authorMirek Kratochvil <exa.exa@gmail.com>2023-11-04 16:15:13 +0100
committerMirek Kratochvil <exa.exa@gmail.com>2023-11-04 16:15:13 +0100
commitefcf4501821e056dadf86a3dffaba662e131a137 (patch)
tree962258cdbe810af144ba7c6211fb5ec4dcc401e0 /include/data.s
parent25be2fb0d4bc8095771e02db3f33ebe45aa4376e (diff)
downloaduskel-efcf4501821e056dadf86a3dffaba662e131a137.tar.gz
uskel-efcf4501821e056dadf86a3dffaba662e131a137.tar.bz2
adjust the amount of diligence given into shooting stuff downHEADmaster
Diffstat (limited to 'include/data.s')
-rw-r--r--include/data.s46
1 files changed, 4 insertions, 42 deletions
diff --git a/include/data.s b/include/data.s
index c3f113f..452018e 100644
--- a/include/data.s
+++ b/include/data.s
@@ -81,48 +81,10 @@ BLE_info_table:
cell 0
BLE_code:
# if we hit this, we've got a pure loop in a program, and it is never
- # going to actually progress. So let's just shoot it down with a
- # helpful message or so.
- mov 010(%rbp), %r15
-
- mov $1, %rdi #stdout
-
- mov $14, %rdx
- mov $BLE_msg, %rsi
- mov $1, %rax #write
- syscall
-
- mov $1, %rdx
- BLE_loop:
- mov %r15, %rcx
- and $0xf, %rcx
- mov $BLE_hex, %rsi
- add %rcx, %rsi
- mov $1, %rax
- syscall
- shr $4, %r15
- jnz BLE_loop
-
- mov $BLE_nl, %rsi
- mov $1, %rax
- syscall
-
- # shot self down (and retry if it doesn't succeed)
- BLE_retry_sigkill:
- mov $39, %rax
- syscall # getpid
- mov %rax, %rdi
- mov $6, %rsi # SIGABRT
- mov $62, %rax # kill
- syscall
- jmp BLE_retry_sigkill
-
-BLE_msg:
- .ascii "diverged at 0x"
-BLE_hex:
- .ascii "0123456789abcdef"
-BLE_nl:
- .ascii "\n"
+ # going to actually progress. So let's just shoot it down.
+ mov 0, %rax
+ jmp BLE_code
+ # this might eventually generate an actual IO-style exception or something.
# List
# | ptr | 0 | # [] case