From a3575558670cb6e97142efd1da989df08407b768 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Wed, 23 Apr 2003 08:04:30 +0000 Subject: [PATCH] Introduce a #define for the length of the bootloader code. --- sys/sys/sun_disklabel.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sys/sys/sun_disklabel.h b/sys/sys/sun_disklabel.h index e97ad27eb66..784aa308e96 100644 --- a/sys/sys/sun_disklabel.h +++ b/sys/sys/sun_disklabel.h @@ -60,6 +60,14 @@ #define SUN_NPART 8 #define SUN_RAWPART 2 #define SUN_SIZE 512 +/* + * XXX: I am actually not sure if this should be "16 sectors" or "8192 bytes". + * XXX: Considering that Sun went to the effort of getting 512 byte compatible + * XXX: CDROM drives produced my guess is that Sun computers stand little or + * XXX: even no chance of running, much less booting on !=512 byte media. + * XXX: Define this is in terms of bytes since that is easier for us. + */ +#define SUN_BOOTSIZE 8192 /* partition info */ struct sun_dkpart {