2 /* ----------------------------------------------------------------------- *
4 * Copyright 1998-2004 H. Peter Anvin - All Rights Reserved
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, Inc., 53 Temple Place Ste 330,
9 * Boston MA 02111-1307, USA; either version 2 of the License, or
10 * (at your option) any later version; incorporated herein by reference.
12 * ----------------------------------------------------------------------- */
19 /* The standard boot sector and ldlinux image */
20 extern unsigned char syslinux_bootsect
[];
21 extern unsigned int syslinux_bootsect_len
;
22 extern int syslinux_bootsect_mtime
;
24 extern unsigned char syslinux_ldlinux
[];
25 extern unsigned int syslinux_ldlinux_len
;
26 extern int syslinux_ldlinux_mtime
;
28 extern unsigned char syslinux_mbr
[];
29 extern unsigned int syslinux_mbr_len
;
30 extern int syslinux_mbr_mtime
;
32 /* This switches the boot sector to "stupid mode" */
33 void syslinux_make_stupid(void);
35 /* This takes a boot sector and merges in the syslinux fields */
36 void syslinux_make_bootsect(void *);
38 /* Check to see that what we got was indeed an MS-DOS boot sector/superblock */
39 const char *syslinux_check_bootsect(const void *bs
);
41 /* This patches the boot sector and ldlinux.sys based on a sector map */
42 int syslinux_patch(const uint32_t *sectors
, int nsectors
);