From fbb5526f3fd58dec4a33bdf43802bbe2a94a8373 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Georges=20Dup=C3=A9ron?= Date: Fri, 27 Jul 2018 21:01:44 +0200 Subject: [PATCH] Use a smaller partition in the dummy partition table created in assembly, to avoid gdisk warning gdisk was giving the following warning with the previous size: Secondary partition table overlaps the last partition by 72 blocks! --- example-os/os.asm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example-os/os.asm b/example-os/os.asm index 2726599..744ce5f 100644 --- a/example-os/os.asm +++ b/example-os/os.asm @@ -55,7 +55,7 @@ db "ExOSxx" ;; 0x1b8 unique disk ID (4-6 bytes? Can be any value) ;;; 4 bytes LBA length ;;;0x1be 0x1c1 0x1c2 0x1c5 0x1c6 0x1c9 0x1ca 0x1cd ;;; This is filled with dummy values, and later patched with gdisk. -db 0x80, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0xa0, 0x05, 0x00, 0x00, 0x9b, 0x05, 0x00, 0x00 ;; 0x1be p1 +db 0x80, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0xa0, 0x05, 0x00, 0x00, 0x53, 0x05, 0x00, 0x00 ;; 0x1be p1 db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 ;; 0x1ce p2 db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 ;; 0x1de p3 db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 ;; 0x1ee p4