blob: 5c398e94c3d0e28cd43c2154be46ac2afaa30cc7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
/* -------------------------------------------
Copyright Mahrouss Logic
Purpose: AMD64 low level I/O
------------------------------------------- */
.section .text
.globl RtGetApp
.globl RtAssertTriggerInterrupt
/* @brief Application getter */
/* @throws: ApptError: appartement error. */
RtGetApp:
mov $0x10, %rcx /* sysGetProcessObject */
int $0x21
/* rax gets saved and returned. */
ret
RtAssertTriggerInterrupt:
mov $0x11, %rcx /* sysTerminateCurrentProcess */
int $0x21
ret
|