summaryrefslogtreecommitdiffhomepage
path: root/Public/Kits/System.Core/HCoreHeap.s
blob: 89d856802c603d56b9818340a9e8ee5cc94e9199 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/** ===========================================
 (C) Mahrouss Logic
    ===========================================*/

.section .text

.globl HcGetProcessObject
.globl __assert_chk_fail

/* Process Heap getter */
HcGetProcessObject:
    mov $0x10, %rcx /* sysGetProcessObject */
    int $0x21

    /* rax gets saved and returned. */
    ret

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

    ret