From b323d403149db3d720a63af1087d44718821bd67 Mon Sep 17 00:00:00 2001 From: Amlal Date: Thu, 12 Sep 2024 03:16:15 +0200 Subject: Kernel improvements, and Paging API changes. ZKA: - Updated and fixed 4KB pages on ARM64. - Fixed 4KB pages on AMD64. - Refactor BMP allocator. ZBA: - Refactor Handover protocol. DDK: - Refactor and breaking API changes. HPFS: - Update code according to DDK. Signed-off-by: Amlal --- dev/HPFS/Defines.hxx | 15 --------------- dev/HPFS/EPM/EBS.i | 2 +- dev/HPFS/ReadMe.md | 9 +++++++++ dev/HPFS/ReadMe.txt | 1 - dev/HPFS/Sources/IFSMain.cxx | 20 -------------------- dev/HPFS/Sources/hpfs_main.cxx | 20 ++++++++++++++++++++ dev/HPFS/hpfs_specs.hxx | 15 +++++++++++++++ 7 files changed, 45 insertions(+), 37 deletions(-) delete mode 100644 dev/HPFS/Defines.hxx create mode 100644 dev/HPFS/ReadMe.md delete mode 100644 dev/HPFS/ReadMe.txt delete mode 100644 dev/HPFS/Sources/IFSMain.cxx create mode 100644 dev/HPFS/Sources/hpfs_main.cxx create mode 100644 dev/HPFS/hpfs_specs.hxx (limited to 'dev/HPFS') diff --git a/dev/HPFS/Defines.hxx b/dev/HPFS/Defines.hxx deleted file mode 100644 index 8d0536a0..00000000 --- a/dev/HPFS/Defines.hxx +++ /dev/null @@ -1,15 +0,0 @@ -/* ------------------------------------------- - - Copyright ZKA Technologies. - - FILE: Defines.hxx - PURPOSE: HPFS IFS defines. - -------------------------------------------- */ - -#pragma once - -typedef __INT32_TYPE__ HPFS_INT32; -typedef void HPFS_VOID; - -#define cHPFSVersion 0x0100 diff --git a/dev/HPFS/EPM/EBS.i b/dev/HPFS/EPM/EBS.i index 4fc529da..c137b6f4 100644 --- a/dev/HPFS/EPM/EBS.i +++ b/dev/HPFS/EPM/EBS.i @@ -10,7 +10,7 @@ HPFS_EBS_HEADER: db " HPFS" ;; MAGIC NUMBER OF FILESYSTEM dw 8 ;; MAGIC NUMBER LENGTH. dq 0 ;; RESERVED 4 - dw 1 ;; VERSION + dw 0x0100 ;; VERSION dw 0 ;; PARTITION TYPE dq 0 ;; RESERVED 3 dw 0 ;; DISK TYPE (INVALID = 0, CDROM = 1, SSD = 2, USB = 3) diff --git a/dev/HPFS/ReadMe.md b/dev/HPFS/ReadMe.md new file mode 100644 index 00000000..999b0d30 --- /dev/null +++ b/dev/HPFS/ReadMe.md @@ -0,0 +1,9 @@ +# High Performance File System + +Filesystem driver for the HPFS specification. + +## Installation + +- Use BTB to build filesystem and partition blobs. + +###### Copyright ZKA Technologies. All rights reserved. diff --git a/dev/HPFS/ReadMe.txt b/dev/HPFS/ReadMe.txt deleted file mode 100644 index 04b0e9f0..00000000 --- a/dev/HPFS/ReadMe.txt +++ /dev/null @@ -1 +0,0 @@ -This is the HPFS filesystem driver for ZKA. \ No newline at end of file diff --git a/dev/HPFS/Sources/IFSMain.cxx b/dev/HPFS/Sources/IFSMain.cxx deleted file mode 100644 index c2ae5b0a..00000000 --- a/dev/HPFS/Sources/IFSMain.cxx +++ /dev/null @@ -1,20 +0,0 @@ -/* ------------------------------------------- - - Copyright ZKA Technologies. - - FILE: IFSMain.cxx - PURPOSE: HPFS IFS entrypoint. - -------------------------------------------- */ - -#include -#include - -/** @brief HPFS IFS main. */ -HPFS_INT32 ModuleMain(HPFS_VOID) -{ - auto ifs_handle = KernelGetProperty(0, "\\.\\IFSObject"); - // TODO: Register IFS... - - return 0; -} diff --git a/dev/HPFS/Sources/hpfs_main.cxx b/dev/HPFS/Sources/hpfs_main.cxx new file mode 100644 index 00000000..52ac32ab --- /dev/null +++ b/dev/HPFS/Sources/hpfs_main.cxx @@ -0,0 +1,20 @@ +/* ------------------------------------------- + + Copyright ZKA Technologies. + + FILE: IFSMain.cxx + PURPOSE: HPFS IFS entrypoint. + +------------------------------------------- */ + +#include +#include + +/** @brief HPFS IFS main. */ +HPFS_INT32 ModuleMain(HPFS_VOID) +{ + auto ifs_handle = KernelGetObject(0, "IFS_OBJECT"); + // TODO: Register this IFS with necessary I/O functions... + + return 0; +} diff --git a/dev/HPFS/hpfs_specs.hxx b/dev/HPFS/hpfs_specs.hxx new file mode 100644 index 00000000..8d0536a0 --- /dev/null +++ b/dev/HPFS/hpfs_specs.hxx @@ -0,0 +1,15 @@ +/* ------------------------------------------- + + Copyright ZKA Technologies. + + FILE: Defines.hxx + PURPOSE: HPFS IFS defines. + +------------------------------------------- */ + +#pragma once + +typedef __INT32_TYPE__ HPFS_INT32; +typedef void HPFS_VOID; + +#define cHPFSVersion 0x0100 -- cgit v1.2.3