aboutsummaryrefslogtreecommitdiffstats
path: root/com32/modules
diff options
context:
space:
mode:
authorShao Miller <shao.miller@yrdsb.edu.on.ca>2010-06-28 00:31:08 -0400
committerShao Miller <shao.miller@yrdsb.edu.on.ca>2010-07-10 01:00:47 -0400
commite2bba11e4aabeada9e4b8bb184ffadbdf14add3c (patch)
treea6ed31b1b7ce9278d20f40f18515f89b5ab952dd /com32/modules
parent0ee50473e37cbc22ef1b2f9897bce48c41be8f5e (diff)
downloadsyslinux-e2bba11e4aabeada9e4b8bb184ffadbdf14add3c.tar.gz
syslinux-e2bba11e4aabeada9e4b8bb184ffadbdf14add3c.tar.xz
syslinux-e2bba11e4aabeada9e4b8bb184ffadbdf14add3c.zip
libcom32: Introduce disk header and module
An effort to move significant portions out of chain.c32 and into library is underway. We begin by simply moving SECTOR into a header and building a disk module. Note that some of this work will essentially duplicate some of what's found in Pierre-Alexandre Meyer's fine work in com32/gpllib/disk/. A difference would be the licensing, of course. Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
Diffstat (limited to 'com32/modules')
-rw-r--r--com32/modules/chain.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/com32/modules/chain.c b/com32/modules/chain.c
index 48a83d2a..d6005e28 100644
--- a/com32/modules/chain.c
+++ b/com32/modules/chain.c
@@ -117,10 +117,9 @@
#include <syslinux/loadfile.h>
#include <syslinux/bootrm.h>
#include <syslinux/config.h>
+#include <syslinux/disk.h>
#include <syslinux/video.h>
-#define SECTOR 512 /* bytes/sector */
-
static struct options {
const char *loadfile;
uint16_t keeppxe;