wok diff syslinux/stuff/iso2exe/bootiso.S @ rev 25682

Up libqcow (20240308)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Mar 24 18:25:46 2024 +0000 (7 weeks ago)
parents 5c1ce90eb1d6
children
line diff
     1.1 --- a/syslinux/stuff/iso2exe/bootiso.S	Tue Jan 12 07:47:12 2021 +0000
     1.2 +++ b/syslinux/stuff/iso2exe/bootiso.S	Sun Mar 24 18:25:46 2024 +0000
     1.3 @@ -600,4 +600,25 @@
     1.4  	.ascii	"This program cannot be run in DOS mode.$"
     1.5  	.org	0x0778,0xEE
     1.6  
     1.7 +	.macro	apple_partition	count=2, start=1, size=2, name, namesz, type, typesz, start_data, size_data, status
     1.8 +	.byte	0x50, 0x4D, 0, 0	/* PM */
     1.9 +#define BE(x) (((x)>>24)|((((x)>>16)&255)<<8)|((((x)>>8)&255)<<16)|(((x)&255)<<24))
    1.10 +	.long	BE(\count)
    1.11 +	.long	BE(\start)
    1.12 +	.long	BE(\size)
    1.13 +	.ascii	"\name"
    1.14 +	.ds.b	32-\namesz, 0
    1.15 +	.ascii	"\type"
    1.16 +	.ds.b	32-\typesz, 0
    1.17 +	.long	BE(\start_data)
    1.18 +	.long	BE(\size_data)
    1.19 +	.long	BE(\status)
    1.20 +	.ds.b	44,0			/* boot code & processor info */
    1.21 +	.endm
    1.22 +
    1.23 +	.org	0x800,0
    1.24 +	apple_partition 2, 1, 2, "Apple", 5, "Apple_partition_map", 19, 0, 2, 3 /* valid, allocated */
    1.25 +	.org	0x1000,0
    1.26 +	apple_partition 2, 1, 2, "EFI", 3, "Apple_HFS", 9, 0, 0, 0x40000013 /* valid, allocated, readable, automatically mount at startup */
    1.27 +
    1.28  	.end