COM32 module to load a Microsoft System Deployment Image
[syslinux.git] / init.inc
blob0b213ace12ac8f5ffd9fe69e93b39213691c2fee
1 ; -*- fundamental -*-
2 ; -----------------------------------------------------------------------
4 ;   Copyright 2004-2008 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 ; -----------------------------------------------------------------------
15 ; init.inc
17 ; Common initialization code (inline)
20                 section .text
21 common_init:
22                 ; Now set up screen parameters
23                 call adjust_screen
26 ; Initialize configuration information
28                 call reset_config
31 ; Clear Files structures
33                 mov di,Files
34                 mov cx,(MAX_OPEN*open_file_t_size)/4
35                 xor eax,eax
36                 rep stosd
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...