From a056ab5960241b0fcbe5b1a23361bcff17a04770 Mon Sep 17 00:00:00 2001 From: Laurent Vivier Date: Fri, 4 Feb 2005 00:42:29 +0000 Subject: [PATCH] Add DD_MAX_DRIVER, the maximum driver number in block0 --- libemile/partition.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libemile/partition.h b/libemile/partition.h index 7297efa..95a0427 100644 --- a/libemile/partition.h +++ b/libemile/partition.h @@ -33,6 +33,8 @@ struct DriverInfo { int16_t Type; } __attribute__((packed)); +#define DD_MAX_DRIVER 61 + struct DriverDescriptor { int16_t Sig; int16_t BlkSize; @@ -41,7 +43,7 @@ struct DriverDescriptor { int16_t DevId; int32_t Data; int16_t DrvrCount; - struct DriverInfo DrvInfo[61]; + struct DriverInfo DrvInfo[DD_MAX_DRIVER]; int8_t Pad[6]; } __attribute__((packed)); #define ASSERT_DD(a) if ( sizeof(struct DriverDescriptor) != 512 ) { a }