#define _SYSLINUX_BOOTPM_H
#include <stdint.h>
+#include <syslinux/movebits.h>
struct syslinux_pm_regs {
uint32_t eax; /* Offset 0 */
uint32_t eip; /* Offset 32 */
};
+int syslinux_shuffle_boot_pm(struct syslinux_movelist *fraglist,
+ struct syslinux_memmap *memmap,
+ uint16_t bootflags,
+ struct syslinux_pm_regs *regs);
+
+
#endif /* _SYSLINUX_BOOTPM_H */
#include <stdint.h>
#include <com32.h>
+#include <syslinux/movebits.h>
/* This register set is used by the shuffle and boot interface. It is
a completely different structure from what the __intcall() and
uint16_t cs; /* Offset 46 */
};
+int syslinux_shuffle_boot_rm(struct syslinux_movelist *fraglist,
+ struct syslinux_memmap *memmap,
+ uint16_t bootflags,
+ struct syslinux_rm_regs *regs);
#endif /* _SYSLINUX_BOOTRM_H */
};
-/* Defined in <syslinux/bootpm.h> and <syslinux/bootrm.h> respectively */
-struct syslinux_pm_regs;
-struct syslinux_rm_regs;
-
/*
* moves is computed from "fraglist" and "memmap". Areas that are
* to be zeroed should be marked as such in the memmap, not in the
addr_t dst, addr_t len);
int syslinux_prepare_shuffle(struct syslinux_movelist *fraglist,
struct syslinux_memmap *memmap);
-int syslinux_shuffle_boot_rm(struct syslinux_movelist *fraglist,
- struct syslinux_memmap *memmap,
- uint16_t bootflags,
- struct syslinux_rm_regs *regs);
-int syslinux_shuffle_boot_pm(struct syslinux_movelist *fraglist,
- struct syslinux_memmap *memmap,
- uint16_t bootflags,
- struct syslinux_pm_regs *regs);
/* Operatons on struct syslinux_memmap */
struct syslinux_memmap *syslinux_init_memmap(void);