Annotation of /trunk/mkinitrd-magellan/isolinux/init.inc
Parent Directory | Revision Log
Revision 1133 -
(hide annotations)
(download)
Thu Aug 19 09:50:43 2010 UTC (14 years, 1 month ago) by niro
File size: 1109 byte(s)
Thu Aug 19 09:50:43 2010 UTC (14 years, 1 month ago) by niro
File size: 1109 byte(s)
-updated to isolinux-3.86
1 | niro | 532 | ; -*- fundamental -*- |
2 | ; ----------------------------------------------------------------------- | ||
3 | ; | ||
4 | niro | 1133 | ; Copyright 2004-2008 H. Peter Anvin - All Rights Reserved |
5 | ; | ||
6 | niro | 532 | ; 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. | ||
11 | ; | ||
12 | ; ----------------------------------------------------------------------- | ||
13 | |||
14 | ; | ||
15 | ; init.inc | ||
16 | ; | ||
17 | ; Common initialization code (inline) | ||
18 | ; | ||
19 | |||
20 | section .text | ||
21 | common_init: | ||
22 | ; Now set up screen parameters | ||
23 | call adjust_screen | ||
24 | |||
25 | niro | 1133 | ; |
26 | ; Initialize configuration information | ||
27 | ; | ||
28 | call reset_config | ||
29 | niro | 532 | |
30 | ; | ||
31 | ; Clear Files structures | ||
32 | ; | ||
33 | mov di,Files | ||
34 | mov cx,(MAX_OPEN*open_file_t_size)/4 | ||
35 | xor eax,eax | ||
36 | rep stosd | ||
37 | |||
38 | %if IS_PXELINUX | ||
39 | mov di,Files+tftp_pktbuf | ||
40 | mov cx,MAX_OPEN | ||
41 | .setbufptr: | ||
42 | mov [di],ax | ||
43 | add di,open_file_t_size | ||
44 | add ax,PKTBUF_SIZE | ||
45 | loop .setbufptr | ||
46 | %endif | ||
47 | section .text ; This is an inline file... |