From 34baf2cd22bc9fad670d987aa84199f92a55f30a Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Tue, 12 Feb 2008 16:39:17 -0800 Subject: [PATCH] Move the prototypes for syslinux_shuffle_boot_*() Move the prototypes for syslinux_shuffle_boot_[pr]m() from to , which anyway has the required structure definitions. #include in those files instead of relying on forward structure definitions. --- com32/include/syslinux/bootpm.h | 7 +++++++ com32/include/syslinux/bootrm.h | 5 +++++ com32/include/syslinux/movebits.h | 12 ------------ 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/com32/include/syslinux/bootpm.h b/com32/include/syslinux/bootpm.h index be0d178..a52d992 100644 --- a/com32/include/syslinux/bootpm.h +++ b/com32/include/syslinux/bootpm.h @@ -35,6 +35,7 @@ #define _SYSLINUX_BOOTPM_H #include +#include struct syslinux_pm_regs { uint32_t eax; /* Offset 0 */ @@ -49,4 +50,10 @@ struct syslinux_pm_regs { 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 */ diff --git a/com32/include/syslinux/bootrm.h b/com32/include/syslinux/bootrm.h index 6454129..3688a92 100644 --- a/com32/include/syslinux/bootrm.h +++ b/com32/include/syslinux/bootrm.h @@ -36,6 +36,7 @@ #include #include +#include /* This register set is used by the shuffle and boot interface. It is a completely different structure from what the __intcall() and @@ -61,5 +62,9 @@ struct syslinux_rm_regs { 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 */ diff --git a/com32/include/syslinux/movebits.h b/com32/include/syslinux/movebits.h index 60fcebd..f35ef22 100644 --- a/com32/include/syslinux/movebits.h +++ b/com32/include/syslinux/movebits.h @@ -43,10 +43,6 @@ struct syslinux_memmap { }; -/* Defined in and 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 @@ -65,14 +61,6 @@ int syslinux_allocate_from_list(struct syslinux_movelist **freelist, 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); -- 2.7.4