[syslinux:disklib] chain.c32, libcom32: Move guid_le_walk_map

syslinux-bot for Shao Miller shao.miller at yrdsb.edu.on.ca
Sun Jul 25 17:33:15 PDT 2010


Commit-ID:  f1753d9c93e7237ccd8fe587fa3aa28290f11b4d
Gitweb:     http://syslinux.zytor.com/commit/f1753d9c93e7237ccd8fe587fa3aa28290f11b4d
Author:     Shao Miller <shao.miller at yrdsb.edu.on.ca>
AuthorDate: Mon, 28 Jun 2010 03:34:55 -0400
Committer:  Shao Miller <shao.miller at yrdsb.edu.on.ca>
CommitDate: Sat, 10 Jul 2010 01:03:06 -0400

chain.c32, libcom32: Move guid_le_walk_map

Moving portions of chain.c32 into libcom32.
There might be a better header for guid_le_walk_map to belong to.

Signed-off-by: Shao Miller <shao.miller at yrdsb.edu.on.ca>


---
 com32/include/syslinux/disk.h |   13 +++++++++++++
 com32/modules/chain.c         |   12 ------------
 2 files changed, 13 insertions(+), 12 deletions(-)

diff --git a/com32/include/syslinux/disk.h b/com32/include/syslinux/disk.h
index 221b6a9..af9bf7b 100644
--- a/com32/include/syslinux/disk.h
+++ b/com32/include/syslinux/disk.h
@@ -102,6 +102,19 @@ struct guid {
     uint64_t data4;
 } __attribute__ ((packed));
 
+/**
+ * This walk-map effectively reverses the little-endian
+ * portions of a GPT disk/partition GUID for a string representation.
+ * There might be a better header for this...
+ */
+static const char guid_le_walk_map[] = {
+    3, -1, -1, -1, 0,
+    5, -1, 0,
+    3, -1, 0,
+    2, 1, 0,
+    1, 1, 1, 1, 1, 1
+};
+
 extern int disk_int13_retry(const com32sys_t * inreg, com32sys_t * outreg);
 extern int disk_get_params(int disk, struct disk_info *const diskinfo);
 extern void *disk_read_sectors(const struct disk_info *const diskinfo,
diff --git a/com32/modules/chain.c b/com32/modules/chain.c
index 1d3f7ba..1b41ba2 100644
--- a/com32/modules/chain.c
+++ b/com32/modules/chain.c
@@ -348,18 +348,6 @@ err_alloc:
     return NULL;
 }
 
-    /*
-     * This walk-map effectively reverses the little-endian
-     * portions of the GUID in the output text
-     */
-static const char guid_le_walk_map[] = {
-    3, -1, -1, -1, 0,
-    5, -1, 0,
-    3, -1, 0,
-    2, 1, 0,
-    1, 1, 1, 1, 1, 1
-};
-
 #if DEBUG
 /*
  * Fill a buffer with a textual GUID representation.



More information about the Syslinux-commits mailing list