summaryrefslogtreecommitdiffhomepage
path: root/SDK/Libraries/CoreSystem/AMD64/CoreAssembly.s
blob: 5d1484cfa9ede805a170ce21e5cee79f0877d37b (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 SoftwareLabs

    Purpose: AMD64 low level I/O

------------------------------------------- */

.text

.globl RtGetAppPointer
.globl RtAssertTriggerInterrupt

/* @brief Application getter */
/* @throws: ApptError: appartement error. */
RtGetAppPointer:
    mov $0x10, %rcx /* sysGetProcessObject */
    int $0x32

    /* rax gets saved and returned. */
    ret

RtAssertTriggerInterrupt:
    mov $0x11, %rcx /* sysTerminateCurrentProcess */
    int $0x32

    ret