From 700148a2f660d3bc171fdc2c56d7a6e1a6e50c01 Mon Sep 17 00:00:00 2001 From: Elaina Claus Date: Tue, 9 Sep 2025 17:01:44 -0400 Subject: [PATCH] disable fat32 parts to keep the build...building --- src/stage2/stage2.nasm | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/src/stage2/stage2.nasm b/src/stage2/stage2.nasm index b350088..09d2f8a 100755 --- a/src/stage2/stage2.nasm +++ b/src/stage2/stage2.nasm @@ -98,7 +98,10 @@ init: ; FAT32 Driver ; ############### -%include 'fat32/FAT32_SYS.inc' +%include "partition_table.inc" +%include "fat32/bpb_offset_bx.inc" +%include "fat32/fat32_structures.inc" +;%include 'fat32/FAT32_SYS.inc' ; ############### ; BIOS functions @@ -164,22 +167,22 @@ main: __CDECL16_CALL PrintString, 1 ; FAT Driver setup - call InitFATDriver - __CDECL16_CALL_ARGS InitFATSYS_OK_info - __CDECL16_CALL PrintString, 1 + ;call InitFATDriver + ;__CDECL16_CALL_ARGS InitFATSYS_OK_info + ;__CDECL16_CALL PrintString, 1 ; ; Find first cluster of bootable file - call SearchFATDIR - push dword eax ; save first cluster of bootable file + ;call SearchFATDIR + ;push dword eax ; save first cluster of bootable file - __CDECL16_CALL_ARGS FileFound_OK_info - __CDECL16_CALL PrintString, 1 + ;__CDECL16_CALL_ARGS FileFound_OK_info + ;__CDECL16_CALL PrintString, 1 - pop dword eax - push dword eax ; print Cluster of boot file - call PrintDWORD ; void PrintDWORD(uint32_t dword) - add sp, 0x4 + ;pop dword eax + ;push dword eax ; print Cluster of boot file + ;call PrintDWORD ; void PrintDWORD(uint32_t dword) + ;add sp, 0x4 ; TODO: using first cluster information, start loading the kernel to memory ; TODO: going to need an elf parser, some unreal mode file buffer functions to move the data