aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2011-01-17 11:54:45 -0800
committerH. Peter Anvin <hpa@linux.intel.com>2011-01-17 11:54:45 -0800
commit808d43ea43c9df30a0a6922ef4cb4678634d41ab (patch)
tree0e31164d2c9dc59a89f19a4600ed846979423698
parent435b86cb288b9020d66ddd82c41bda14a4df5ccc (diff)
downloadsyslinux-808d43ea43c9df30a0a6922ef4cb4678634d41ab.tar.gz
syslinux-808d43ea43c9df30a0a6922ef4cb4678634d41ab.tar.xz
syslinux-808d43ea43c9df30a0a6922ef4cb4678634d41ab.zip
diskio: Support EDD 4 16-byte device paths
EDD 4 has 16-byte device path information. Make the EDD buffer big enough to capture that. Note that the location of the device path checksum actually depends on the device path length information field! Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
-rw-r--r--core/fs/diskio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/fs/diskio.c b/core/fs/diskio.c
index 06bbe4f9..66838161 100644
--- a/core/fs/diskio.c
+++ b/core/fs/diskio.c
@@ -280,9 +280,9 @@ struct edd_disk_params {
char bus_type[4];
char if_type[8];
uint8_t if_path[8];
- uint8_t dev_path[8];
+ uint8_t dev_path[16];
uint8_t _pad2;
- uint8_t devpath_csum;
+ uint8_t devpath_csum; /* Depends on devpath_len! */
} __attribute__((packed));
static inline bool is_power_of_2(uint32_t x)