summaryrefslogtreecommitdiffhomepage
path: root/dev/install/hal
diff options
context:
space:
mode:
authorAmlal <amlal@el-mahrouss-logic.com>2024-09-28 08:26:13 +0200
committerAmlal <amlal@el-mahrouss-logic.com>2024-09-28 08:26:13 +0200
commit81c819e4c509c79987ac5050a776e3e3f4447ec6 (patch)
treeedc8c7678cfc77f9be33ab5391e5ca8f501051b8 /dev/install/hal
parent28dcc76e2e93817a5e4a4ceef0479fd8ac7399c9 (diff)
feat: math.hxx, pdf.hxx and CoreCG had breaking changes or were just introduced.
- math.hxx: Got a new fixed API. - pdf.hxx: New PDF API. - Processor.hxx: Add BP and SP on AMD64 targets. Signed-off-by: Amlal <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'dev/install/hal')
-rw-r--r--dev/install/hal/install_api.asm31
1 files changed, 31 insertions, 0 deletions
diff --git a/dev/install/hal/install_api.asm b/dev/install/hal/install_api.asm
new file mode 100644
index 00000000..482cfc0c
--- /dev/null
+++ b/dev/install/hal/install_api.asm
@@ -0,0 +1,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