summaryrefslogtreecommitdiffhomepage
path: root/Public/Developer/System.Core/AMD64/HCoreAssemblyRoutines.s
blob: 58bb12601669abd88792cb029e09e2b8a519eb66 (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
/** ===========================================
 (C) Mahrouss Logic
    ===========================================*/

.section .text

.globl RtGetAppObject
.globl __assert_chk_fail

/* @brief Process object getter */
/* @throws: ApptError: appartement error. */
RtGetAppObject:
    mov $0x10, %rcx /* sysGetProcessObject */
    int $0x21

    /* rax gets saved and returned. */
    ret

__assert_chk_fail:
    mov $0x11, %rcx /* sysTerminateCurrentProcess */
    int $0x21

    ret