change test kernel stage name

also pointed up a bug in memory.inc
This commit is contained in:
2024-10-04 22:17:35 -04:00
parent fdbfd811d5
commit 62f036b645
4 changed files with 7 additions and 6 deletions

View File

@@ -243,6 +243,7 @@ endstruc
; STACK BOTTOM ; STACK BOTTOM
; ;
; first argument == starting offset from bp for lower 16bits ; first argument == starting offset from bp for lower 16bits
; BUG: needs fixed for cdecl16
%macro MOV_DWORD_EAX 1 %macro MOV_DWORD_EAX 1
mov ax, [bp+(%1+2)] mov ax, [bp+(%1+2)]
shl eax, 16 shl eax, 16

View File

@@ -29,7 +29,7 @@ fi
mbr_file=build/mbr.bin mbr_file=build/mbr.bin
vbr_file=build/vbr.bin vbr_file=build/vbr.bin
stage2_file=build/stage2.bin stage2_file=build/stage2.bin
boottest_file=build/BOOT_386.bin boottest_file=build/BOOTi686.bin
# Disk creation options # Disk creation options
@@ -38,7 +38,7 @@ disk_tmp_file=/tmp/disk.img
disk_file_final=./disk.img.gz disk_file_final=./disk.img.gz
# $disk_sector_size * $disk_size = total bytes, default is 256MiB # $disk_sector_size * $disk_size = total bytes, default is 256MiB
disk_size=524288 disk_size=(524288 * 2)
disk_sector_size=512 disk_sector_size=512
if ! [ -e $disk_tmp_file ]; then if ! [ -e $disk_tmp_file ]; then
@@ -66,7 +66,7 @@ if [[ "$OSTYPE" == "linux-gnu"* ]]; then
# get first partition, this is sloppy might need to review this... # get first partition, this is sloppy might need to review this...
firstpart=$(lsblk -ilp -o NAME $ld | tr '\n' ' ' | awk '{print $3}') firstpart=$(lsblk -ilp -o NAME $ld | tr '\n' ' ' | awk '{print $3}')
mkfs.fat -v -F32 $firstpart mkfs.fat -v -n 'STEVIAFS' $firstpart
# copy MBR while preserving partition table # copy MBR while preserving partition table
dd if=$mbr_file of=$ld bs=1 count=440 dd if=$mbr_file of=$ld bs=1 count=440
@@ -89,9 +89,9 @@ if [[ "$OSTYPE" == "linux-gnu"* ]]; then
mkdir $mount_point mkdir $mount_point
fi fi
mount $firstpart $mount_point mount $firstpart $mount_point
mkdir -p $mount_point/STEVIA
if [ -e $boottest_file ]; then if [ -e $boottest_file ]; then
cp -v $boottest_file $mount_point cp -v $boottest_file $mount_point/STEVIA/BOOTi686.BIN
else else
echo "unable to find boot32.bin!" echo "unable to find boot32.bin!"
exit 3 exit 3

View File

@@ -829,7 +829,7 @@ IntToHex_table:
NewLine_cstr: NewLine_cstr:
db StrCRLF_NUL db StrCRLF_NUL
BootTarget_str: BootTarget_str:
db "BOOT_386BIN" db "BOOTI686BIN"
; ############# ; #############
; ;