]> code.delx.au - refind/blob - include/syslinux_mbr.h
Fixed uninitialized-pointer bug that manifested as a crash with
[refind] / include / syslinux_mbr.h
1 /*
2 * include/syslinux_mbr.h
3 * MBR boot code
4 *
5 * The boot code in this file was taken from syslinux-3.11. It is covered
6 * by the following license:
7 *
8 ; -----------------------------------------------------------------------
9 ;
10 ; Copyright 2003-2004 H. Peter Anvin - All Rights Reserved
11 ;
12 ; Permission is hereby granted, free of charge, to any person
13 ; obtaining a copy of this software and associated documentation
14 ; files (the "Software"), to deal in the Software without
15 ; restriction, including without limitation the rights to use,
16 ; copy, modify, merge, publish, distribute, sublicense, and/or
17 ; sell copies of the Software, and to permit persons to whom
18 ; the Software is furnished to do so, subject to the following
19 ; conditions:
20 ;
21 ; The above copyright notice and this permission notice shall
22 ; be included in all copies or substantial portions of the Software.
23 ;
24 ; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
25 ; EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
26 ; OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
27 ; NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
28 ; HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
29 ; WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
30 ; FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
31 ; OTHER DEALINGS IN THE SOFTWARE.
32 ;
33 ; -----------------------------------------------------------------------
34 *
35 */
36
37 #ifndef __SYSLINUX_MBR_H__
38 #define __SYSLINUX_MBR_H__
39
40
41 #define MBR_BOOTCODE_SIZE (440)
42
43
44 #define SYSLINUX_MBR_SIZE (304)
45
46 static UINT8 syslinux_mbr[SYSLINUX_MBR_SIZE] = {
47 0xfa, 0x31, 0xc0, 0x8e, 0xd8, 0x8e, 0xc0, 0x8e,
48 0xd0, 0xbc, 0x00, 0x7c, 0xfb, 0xfc, 0x89, 0xe6,
49 0xbf, 0x00, 0x06, 0xb9, 0x00, 0x01, 0xf3, 0xa5,
50 0xea, 0x1d, 0x06, 0x00, 0x00, 0x88, 0x16, 0x00,
51 0x08, 0xb4, 0x08, 0xcd, 0x13, 0x31, 0xc0, 0x88,
52 0xf0, 0x40, 0xa3, 0xf0, 0x06, 0x80, 0xe1, 0x3f,
53 0x88, 0x0e, 0xf2, 0x06, 0xbe, 0xbe, 0x07, 0x31,
54 0xc0, 0xb9, 0x04, 0x00, 0xf6, 0x04, 0x80, 0x74,
55 0x03, 0x40, 0x89, 0xf7, 0x83, 0xc6, 0x10, 0xe2,
56 0xf3, 0x83, 0xf8, 0x01, 0x75, 0x73, 0x8a, 0x16,
57 0x00, 0x08, 0xb8, 0x00, 0x41, 0xbb, 0xaa, 0x55,
58 0x31, 0xc9, 0x30, 0xf6, 0xf9, 0xcd, 0x13, 0x72,
59 0x23, 0x81, 0xfb, 0x55, 0xaa, 0x75, 0x1d, 0xf6,
60 0xc1, 0x01, 0x74, 0x18, 0x57, 0xbe, 0xe0, 0x06,
61 0x8b, 0x5d, 0x08, 0x89, 0x5c, 0x08, 0x8b, 0x5d,
62 0x0a, 0x89, 0x5c, 0x0a, 0x8a, 0x16, 0x00, 0x08,
63 0xb4, 0x42, 0xeb, 0x2a, 0x57, 0x8b, 0x45, 0x08,
64 0x8b, 0x55, 0x0a, 0xf7, 0x36, 0xf2, 0x06, 0x42,
65 0x89, 0xd1, 0x31, 0xd2, 0xf7, 0x36, 0xf0, 0x06,
66 0x88, 0xc5, 0xd1, 0xe8, 0xd1, 0xe8, 0x24, 0xc0,
67 0x08, 0xc1, 0x88, 0xd6, 0x8a, 0x16, 0x00, 0x08,
68 0xbb, 0x00, 0x7c, 0xb8, 0x01, 0x02, 0xcd, 0x13,
69 0x72, 0x16, 0x5e, 0x81, 0x3e, 0xfe, 0x7d, 0x55,
70 0xaa, 0x75, 0x08, 0xfa, 0xea, 0x00, 0x7c, 0x00,
71 0x00, 0x77, 0x05, 0xbe, 0xf4, 0x06, 0xeb, 0x03,
72 0xbe, 0x0f, 0x07, 0xac, 0x20, 0xc0, 0x74, 0x0c,
73 0xb4, 0x0e, 0x8a, 0x3e, 0x62, 0x04, 0xb3, 0x07,
74 0xcd, 0x10, 0xeb, 0xef, 0xeb, 0xfe, 0x00, 0x00,
75 0x10, 0x00, 0x01, 0x00, 0x00, 0x7c, 0x00, 0x00,
76 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
77 0x00, 0x00, 0x00, 0x00, 0x4d, 0x69, 0x73, 0x73,
78 0x69, 0x6e, 0x67, 0x20, 0x6f, 0x70, 0x65, 0x72,
79 0x61, 0x74, 0x69, 0x6e, 0x67, 0x20, 0x73, 0x79,
80 0x73, 0x74, 0x65, 0x6d, 0x0d, 0x0a, 0x00, 0x4f,
81 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67,
82 0x20, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x20,
83 0x6c, 0x6f, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x20,
84 0x65, 0x72, 0x72, 0x6f, 0x72, 0x0d, 0x0a, 0x00
85 };
86
87
88 #endif /* __SYSLINUX_MBR_H__ */
89
90 /* EOF */