summaryrefslogtreecommitdiffhomepage
path: root/dev/install
diff options
context:
space:
mode:
authorAmlal <amlal@el-mahrouss-logic.com>2024-09-22 17:46:11 +0200
committerAmlal <amlal@el-mahrouss-logic.com>2024-09-22 17:46:11 +0200
commit8719b4570a2d10dd49a0d3a47e24f5c55bdda85e (patch)
treeba095740888f3768e08b2ea058b0ea6da2d0403d /dev/install
parent45944b3d2dab04b763fcc6d10164fe8069e60b08 (diff)
:boom: A big refactor on the filesystem structure.
Signed-off-by: Amlal <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'dev/install')
-rw-r--r--dev/install/.keepme0
-rw-r--r--dev/install/ReadMe.md5
-rw-r--r--dev/install/X64/InstallerRoutines.asm34
3 files changed, 39 insertions, 0 deletions
diff --git a/dev/install/.keepme b/dev/install/.keepme
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/dev/install/.keepme
diff --git a/dev/install/ReadMe.md b/dev/install/ReadMe.md
new file mode 100644
index 00000000..a1e39edc
--- /dev/null
+++ b/dev/install/ReadMe.md
@@ -0,0 +1,5 @@
+# ReadMe: INST
+
+This file installs ZKA OS into an HDD.
+</br>
+It can do both EPM and GPT partitions.
diff --git a/dev/install/X64/InstallerRoutines.asm b/dev/install/X64/InstallerRoutines.asm
new file mode 100644
index 00000000..61c712d0
--- /dev/null
+++ b/dev/install/X64/InstallerRoutines.asm
@@ -0,0 +1,34 @@
+;; /*
+;; * ---------------------------------------------------
+;; *
+;; * 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 "ZKA Installer", 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
+
+
+