b4621a7fb8
reduced stack size in mbr stage
...
removed some unused data in bss
reordered how/when in init we set sp/bp and zero bss
we now push the top of the stack pointer/bp at the top of the stack, which makes the stack frame more 'normal'
also use movsb instead of movsw
2024-10-15 12:53:22 -04:00
1ce3f67263
reduced stack size in mbr stage
...
removed some unused data in bss
reordered how/when in init we set sp/bp and zero bss
we now push the top of the stack pointer/bp at the top of the stack, which makes the stack frame more 'normal'
also use movsb instead of movsw
2024-10-15 12:53:22 -04:00
5f9567d44e
include disk signature and reserved bytes in part table struct
2024-10-15 12:51:34 -04:00
f81f358987
include disk signature and reserved bytes in part table struct
2024-10-15 12:51:34 -04:00
2020408e8d
ha ha ha, again!
2024-10-15 12:51:02 -04:00
41db11cc64
ha ha ha, again!
2024-10-15 12:51:02 -04:00
405a5ff20e
I guess wx work again on Debian Trixie?
2024-10-15 12:50:51 -04:00
fd7754bc60
I guess wx work again on Debian Trixie?
2024-10-15 12:50:51 -04:00
4660882edb
change entry points (again)
2024-10-14 17:58:43 -04:00
0f04e682df
change entry points (again)
2024-10-14 17:58:43 -04:00
f683b8fd17
16 KiB stage2
2024-10-14 17:58:30 -04:00
36fcb5faf0
16 KiB stage2
2024-10-14 17:58:30 -04:00
56c18d8457
correct drive_num argument on read_disk_raw
2024-10-14 13:18:41 -04:00
a5296bb438
correct drive_num argument on read_disk_raw
2024-10-14 13:18:41 -04:00
cfda93048b
replace text documentation with markdown
2024-10-14 10:44:44 -04:00
933cccb88e
replace text documentation with markdown
2024-10-14 10:44:44 -04:00
c49de28a15
use bochs magic breakpoints in the error printer
...
makes it easier to get a good state to do some investigating before reseting.
2024-10-13 20:53:13 -04:00
ad2d37c63b
use bochs magic breakpoints in the error printer
...
makes it easier to get a good state to do some investigating before reseting.
2024-10-13 20:53:13 -04:00
4a013b4a59
enable magic in the normal bochsrc.txt
2024-10-13 20:51:34 -04:00
f32745a7e3
enable magic in the normal bochsrc.txt
2024-10-13 20:51:34 -04:00
cd833184da
use bx addressing in read_disk_raw
2024-10-13 20:51:16 -04:00
8537d6cd5e
use bx addressing in read_disk_raw
2024-10-13 20:51:16 -04:00
7617b11199
Merge pull request #3 from Nivirx/bss-setup
...
convert MBR, VBR, & Stage2 to use a BSS section.
2024-10-13 18:05:19 -04:00
e57c2cc67d
Merge pull request #3 from Nivirx/bss-setup
...
convert MBR, VBR, & Stage2 to use a BSS section.
2024-10-13 18:05:19 -04:00
86564b2356
added partition_table and fat32_bpb params to stage2
...
also the partition table and fat32_bpb and passed/copied from the mbr/vbr now
2024-10-13 17:54:06 -04:00
e4b9c5d77f
added partition_table and fat32_bpb params to stage2
...
also the partition table and fat32_bpb and passed/copied from the mbr/vbr now
2024-10-13 17:54:06 -04:00
5ba7801926
bss for vbr stage
2024-10-13 17:52:28 -04:00
e3a646675f
bss for vbr stage
2024-10-13 17:52:28 -04:00
35e9aec059
fixed bss init in mbr
2024-10-13 17:52:09 -04:00
9d33469e32
fixed bss init in mbr
2024-10-13 17:52:09 -04:00
736aad85e5
pass location of partition_table structure to vbr
2024-10-13 16:41:39 -04:00
dd1a74bff0
pass location of partition_table structure to vbr
2024-10-13 16:41:39 -04:00
f51d8b4142
initial work on a macro to call read_disk_raw
2024-10-13 16:37:52 -04:00
29db27925f
initial work on a macro to call read_disk_raw
2024-10-13 16:37:52 -04:00
3693eca940
add reserved space for jmp short init at the start, technically this is part of the bpb anyways
2024-10-13 16:37:29 -04:00
7f06d47f32
add reserved space for jmp short init at the start, technically this is part of the bpb anyways
2024-10-13 16:37:29 -04:00
a383f7cfb4
remove defs for memory locations (moving to bss)
2024-10-13 16:36:55 -04:00
4faffbf7fe
remove defs for memory locations (moving to bss)
2024-10-13 16:36:55 -04:00
c1a9d449df
bss convertion for mbr stage
2024-10-13 16:36:11 -04:00
832141efb4
bss convertion for mbr stage
2024-10-13 16:36:11 -04:00
ce6240249a
turns out huge unreal mode isn't supported in bochs
...
huge unreal mode is 4GiB code in 16bit mode + 4GiB data
we will just use the regular big flat model instead (64KiB code/4GiB data)
2024-10-13 14:50:49 -04:00
c919144496
turns out huge unreal mode isn't supported in bochs
...
huge unreal mode is 4GiB code in 16bit mode + 4GiB data
we will just use the regular big flat model instead (64KiB code/4GiB data)
2024-10-13 14:50:49 -04:00
963dec5281
unreal gdt tweaks & fixes
2024-10-13 13:22:01 -04:00
a62f3de26f
unreal gdt tweaks & fixes
2024-10-13 13:22:01 -04:00
3d1877d7fe
remove map files as well
2024-10-12 22:16:17 -04:00
0983ec3fd5
remove map files as well
2024-10-12 22:16:17 -04:00
eb97aac673
relocate code sections to end up with stage2 starting at 0x500
2024-10-12 22:14:47 -04:00
bd40d6d324
relocate code sections to end up with stage2 starting at 0x500
2024-10-12 22:14:47 -04:00
c60bad1066
reduced stage2 to 24KiB
2024-10-12 22:13:12 -04:00
3d3bcc6ea5
reduced stage2 to 24KiB
2024-10-12 22:13:12 -04:00