Annotation of /tags/mkinitrd-6_1_1/isolinux/layout.inc
Parent Directory | Revision Log
Revision 841 -
(hide annotations)
(download)
Mon May 4 16:31:54 2009 UTC (15 years, 4 months ago) by niro
File size: 1928 byte(s)
Mon May 4 16:31:54 2009 UTC (15 years, 4 months ago) by niro
File size: 1928 byte(s)
tagged 'mkinitrd-6_1_1'
1 | niro | 532 | ; $Id: layout.inc,v 1.1 2007-09-01 22:44:05 niro Exp $ |
2 | ; ----------------------------------------------------------------------- | ||
3 | ; | ||
4 | ; Copyright 1994-2004 H. Peter Anvin - All Rights Reserved | ||
5 | ; | ||
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 | ; Bostom MA 02111-1307, USA; either version 2 of the License, or | ||
10 | ; (at your option) any later version; incorporated herein by reference. | ||
11 | ; | ||
12 | ; ----------------------------------------------------------------------- | ||
13 | |||
14 | ; | ||
15 | ; layout.inc | ||
16 | ; | ||
17 | ; Memory layout of segments | ||
18 | ; | ||
19 | |||
20 | |||
21 | ; Memory below 0800h is reserved for the BIOS and the MBR. | ||
22 | BSS_START equ 0800h | ||
23 | |||
24 | ; Text starts at the load address of 07C00h. | ||
25 | TEXT_START equ 7C00h | ||
26 | |||
27 | ; The secondary BSS section, above the text; we really wish we could | ||
28 | ; just make it follow .bcopy32 or hang off the end, | ||
29 | ; but it doesn't seem to work that way. | ||
30 | LATEBSS_START equ 0B000h | ||
31 | |||
32 | ; Reserve memory for the stack. This causes checkov to abort the | ||
33 | ; compile if we violate this space. | ||
34 | STACK_SIZE equ 4096 | ||
35 | STACK_START equ TEXT_START-STACK_SIZE | ||
36 | |||
37 | %ifdef MAP | ||
38 | [map all MAP] | ||
39 | %endif | ||
40 | |||
41 | ; | ||
42 | ; The various sections and their relationship | ||
43 | ; | ||
44 | org TEXT_START | ||
45 | |||
46 | ; NASM BUG: refers to hacks to handle NASM 0.98.38 bugs; might need | ||
47 | ; conditional compilation | ||
48 | |||
49 | section .earlybss nobits start=BSS_START | ||
50 | section .bcopy32 align=4 valign=16 follows=.data vfollows=.earlybss | ||
51 | ; NASM BUG: follows= here should be vfollows= | ||
52 | section .bss nobits align=256 follows=.bcopy32 | ||
53 | |||
54 | section .text start=TEXT_START | ||
55 | ; NASM BUG: follows=.text not accepted here | ||
56 | section .data align=16 ; follows=.text | ||
57 | |||
58 | ; NASM BUG: We would like to do follows=.bcopy32 | ||
59 | section .latebss nobits align=16 start=LATEBSS_START | ||
60 | |||
61 | ; Reserve space for stack | ||
62 | section .stack nobits align=16 start=STACK_START | ||
63 | Stack resb STACK_SIZE | ||
64 |