1
0
Fork 0
mirror of https://gitlab.com/bztsrc/bootboot.git synced 2023-02-13 20:54:32 -05:00

Fixed printing number of cores on bios

This commit is contained in:
bzt 2022-01-23 20:51:22 +01:00
parent b67cafc273
commit 9d57db51c7
4 changed files with 8 additions and 14 deletions

BIN
dist/bootboot.bin vendored

Binary file not shown.

File diff suppressed because one or more lines are too long

View file

@ -3,7 +3,7 @@
#define sizeof_boot_bin 512
extern unsigned char binary_boot_bin[512];
#define sizeof_bootboot_bin 13312
extern unsigned char binary_bootboot_bin[9293];
extern unsigned char binary_bootboot_bin[9285];
#define sizeof_bootboot_efi 103614
extern unsigned char binary_bootboot_efi[46348];
#define sizeof_bootboot_img 35344

View file

@ -2087,12 +2087,8 @@ if BBDEBUG eq 1
mov bx, word [bootboot.numcores]
mov di, gpt_ptr
cmp bx, 1000
jl @f
mov al, '1'
stosb
sub bx, 1000
@@: mov cx, 100
mov cx, 100
mov dx, bx
cmp bx, cx
jl @f
mov ax, bx
@ -2100,17 +2096,15 @@ if BBDEBUG eq 1
div cx
add al, '0'
stosb
mov bx, dx
@@: mov cx, 10
cmp bx, cx
jl @f
mov ax, bx
mov ax, dx
xor dx, dx
div cx
cmp bx, cx
jl @f
add al, '0'
stosb
mov bx, dx
@@: mov al, bl
@@: mov al, dl
add al, '0'
stosb
xor al, al