555cf1271b
partially roll back changing the segment to 0x07E0
2024-10-12 20:25:04 -04:00
8fea1f0a06
big step...and also its completely broken right now
...
we are going to use 0x07E0 as our base segment so we have a bit
more memory to work with until we are fully in 32bit protected mode.
this commit is broken but is just one step towards a working release.
2024-10-12 15:41:39 -04:00
5a74cd86ad
moved stuff that is only referenced in Stage2 to stage2 bss
2024-10-12 12:55:29 -04:00
69c068f6be
stage2 is now a multisection binary file
...
also preparing to move memory globals to bss section.
2024-10-12 11:29:20 -04:00
96de8cd9c7
move far jump setup in EnterUnrealMode to right after we save CS
2024-10-11 21:51:07 -04:00
d73a4eea6c
move macro definition super early
...
fix a few mistakes in macro defs
2024-10-11 19:31:31 -04:00
5703bad704
added macros to define cstr and str
...
aligned all the entry points for proceedures to 4 bytes
added a PrintString wraper macro
2024-10-11 19:05:15 -04:00
df3b8dfc0c
fix passing stage2 wrong data for boot drive
2024-10-11 13:09:17 -04:00
ccb82f29fc
rename file to BOOT.BIN
...
K.I.S.S.
2024-10-11 12:16:01 -04:00
13ff42a7d1
unreal gdt now has 2 selectors 1 code, 1 data
...
ss, and e/f/g segments are loaded to the same flat 4gb segment
moved gdt notes to documentation
2024-10-08 20:22:21 -04:00
6643e3c990
ensure 2 byte jmp rel8 thunk to init
...
surpress reloc abs warnings
corrected include paths/filenames
2024-10-08 08:55:17 -04:00
ca195e6048
force the first jump to init in all stages to be the rel8 version
2024-10-07 20:39:39 -04:00
3c40190f23
surpress some of the relocation warnings for mbr, vbr & stage2
2024-10-06 18:50:32 -04:00
4c4c3b0e27
fixed read_disk_raw in ReadFATCluster
...
boot_drive and partition_offset are global pointers now
removed an extra error from mbr disk read
and some general formating and cleanup 😅
2024-10-05 20:14:00 -04:00
f5f5a330cd
tons more work on modularizing the code
2024-10-05 18:55:00 -04:00
446dd451be
more modularization and updating date in MIT licence header
2024-10-05 13:35:39 -04:00
867232890e
Move fat32 and BIOS functions to their own files
2024-10-05 12:04:40 -04:00
a0df1cb100
remove the dword stack macros and just use the 32bit override
2024-10-05 10:13:18 -04:00
6b2b1d2fc9
change test kernel stage name
...
also pointed up a bug in memory.inc
2024-10-04 22:17:35 -04:00
e45f1cb27d
move cdecl macros to nearly the top so early functions can use them
2024-10-04 09:55:45 -04:00
339216f6a2
add forked functions and remove from memory.inc for kmem*
2024-10-03 19:53:11 -04:00
e03322b129
rough pass on fixing the stack across the board
2024-10-03 19:02:47 -04:00
7fbb9b13e2
swap order of entering Unreal mode and getting an E820
...
also InitFATDriver should be ok to add to the start process again.
2024-10-03 18:15:18 -04:00
09366afbdf
cdecl16 update for EnterUnrealMode
2024-10-03 17:59:29 -04:00
269e90a122
refactored and validated MemoryMap funciton
2024-10-03 17:41:48 -04:00
768260540f
some general cleanup & moving the halt to the next point in main()
2024-10-03 16:43:10 -04:00
d2194ab835
cdecl16 work and cleanup in MemoryMap
2024-10-03 16:34:27 -04:00
94ed76be82
src/stage2/stage2.nasm:573: warning: label alone on a line without a colon might be in error [-w+label-orphan]
2024-10-03 15:28:44 -04:00
9080533175
cdecl16 for EnableA20 ver.1
2024-10-03 15:10:22 -04:00
a3af2a5825
replace prologs and epilogs in cdecl functions so far
2024-10-03 14:51:43 -04:00
3804f1c4be
bunch of changes mostly to do with cdecl16 conformity
...
moved top of stack marker to init
SetTextMode and Cursor done before hello msg
corrected CC/Stack usage to conform with cdecl16 for PrintString
corrected CC/Stack usage to conform with cdecl16 for PrintChar
corrected stack usage to conform with cdecl16 for SetTextMode
corrected stack usage to conform with cdecl16 for disable_cursor
2024-10-03 13:49:44 -04:00
a6835df63e
fixing how the stack works stage1 😳
2024-10-02 12:37:21 -04:00
18bb9a5691
remove comment about CC, see docs/
2024-10-02 11:59:34 -04:00
60a10e41e0
added debuging 'errors'
...
also there is special handling for them in error.inc
2024-09-21 13:28:52 -04:00
9cb9a6664f
changed extention from .s to .nasm
2023-08-23 10:10:30 -04:00
d7bd565279
MIT license applied to all project files
2023-08-22 16:03:46 -04:00
91ec2ad898
small changes to License
...
🏳️⚧️
2023-08-22 14:24:35 -04:00
Elaina Claus
ff14c336e8
first commit
2023-02-28 22:17:55 -05:00