[syslinux:master] diskio: Support EDD 4 16-byte device paths
syslinux-bot for H. Peter Anvin
hpa at linux.intel.com
Mon Jan 17 11:57:02 PST 2011
Commit-ID: 808d43ea43c9df30a0a6922ef4cb4678634d41ab
Gitweb: http://syslinux.zytor.com/commit/808d43ea43c9df30a0a6922ef4cb4678634d41ab
Author: H. Peter Anvin <hpa at linux.intel.com>
AuthorDate: Mon, 17 Jan 2011 11:54:45 -0800
Committer: H. Peter Anvin <hpa at linux.intel.com>
CommitDate: Mon, 17 Jan 2011 11:54:45 -0800
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 at linux.intel.com>
---
core/fs/diskio.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/core/fs/diskio.c b/core/fs/diskio.c
index 06bbe4f..6683816 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)
More information about the Syslinux-commits
mailing list