summaryrefslogtreecommitdiffhomepage
path: root/dev/install/hal/install_api.asm
blob: 482cfc0ce95c5905e95d865bba73e3bdfc720443 (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
29
30
31
;; /*
;; *    ---------------------------------------------------
;; *
;; * 	Copyright ZKA Technologies., all rights reserved.
;; *
;; *    File: Install.asm
;; *    Purpose: ZKA installer program, runs at ring-0.
;; *
;; *    ---------------------------------------------------
;; */

[bits 64]

[global kInstallTitle]
[global InstInstallToDir]

section .data

kInstallTitle: db "Formatting...", 0

section .text

;; @param r8 arg 1
;; @param r9 arg 2
;; @return rax, return status of syscall.
;; @note MS-ABI procedure.
InstInstallToDir:
	mov r8, rcx ; FILE_INFO_STRUCT (SRC)
	mov r9, rdx ; FILE_INFO_STRUCT (DST)
	syscall ;; 0 = GOOD, 1 = BAD FIS (SRC), 2 = BAD FIS (DST)
	ret