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;
23 extern unsigned char syslinux_ldlinux[];
24 extern unsigned int syslinux_ldlinux_len;
25 extern int syslinux_ldlinux_mtime;
27 /* This switches the boot sector to "stupid mode" */
28 void syslinux_make_stupid(void);
30 /* This takes a boot sector and merges in the syslinux fields */
31 void syslinux_make_bootsect(void *);
33 /* Check to see that what we got was indeed an MS-DOS boot sector/superblock */
34 const char *syslinux_check_bootsect(const void *bs);
36 /* This patches the boot sector and ldlinux.sys based on a sector map */
37 int syslinux_patch(const uint32_t *sectors, int nsectors);