runkernel: remove debugging code
[syslinux.git] / configinit.inc
bloba5eaf1b38d7bbb2b471e9772549111e67ff0f62d
1 ;; -----------------------------------------------------------------------
2 ;;
3 ;;   Copyright 1994-2008 H. Peter Anvin - All Rights Reserved
4 ;;
5 ;;   This program is free software; you can redistribute it and/or modify
6 ;;   it under the terms of the GNU General Public License as published by
7 ;;   the Free Software Foundation, Inc., 53 Temple Place Ste 330,
8 ;;   Boston MA 02111-1307, USA; either version 2 of the License, or
9 ;;   (at your option) any later version; incorporated herein by reference.
11 ;; -----------------------------------------------------------------------
14 ;; configinit.inc
16 ;; Initialize the configuration section
19                 section .text
21 reset_config:
22                 call highmemsize
24                 ; Initialize the .config section
25                 xor eax,eax
26                 mov si,section..config.start
27                 mov di,section..config.vstart
28                 mov cx,section..config.end.start
29                 sub cx,di
30                 shr cx,2
31                 rep movsd
33 %ifndef DEPEND
34 %if NULLFILE != 0
35                 mov al,NULLFILE
36                 mov di,FKeyName
37                 mov cx,MAX_FKEYS*(1 << FILENAME_MAX_LG2)
38                 rep stosb
39 %endif
40 %endif
42                 mov si,linuxauto_cmd            ; Default command: "linux auto"
43                 mov di,default_cmd
44                 mov cx,linuxauto_len
45                 rep movsb
47                 mov di,KbdMap                   ; Default keymap 1:1
48                 xor al,al
49                 inc ch                          ; CX <- 256
50 mkkeymap:       stosb
51                 inc al
52                 loop mkkeymap
54                 mov eax,[HighMemSize]
55                 mov [VKernelEnd],eax
57                 ret
59                 section .data
60 linuxauto_cmd   db 'linux auto',0
61 linuxauto_len   equ $-linuxauto_cmd