diff options
author | H. Peter Anvin <hpa@zytor.com> | 2006-09-22 23:30:51 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2006-09-22 23:30:51 -0700 |
commit | f58c9cef28a9b6517e27dfb5f9909be4afa54bc6 (patch) | |
tree | b6b4529791890acfe9bb242a43015afb3b03f846 /configinit.inc | |
parent | 82dda42dc288d206d8815483112e8272a5b82759 (diff) | |
download | syslinux-f58c9cef28a9b6517e27dfb5f9909be4afa54bc6.tar.gz |
Add files missing from previous checkins
Diffstat (limited to 'configinit.inc')
-rw-r--r-- | configinit.inc | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/configinit.inc b/configinit.inc new file mode 100644 index 00000000..222a0497 --- /dev/null +++ b/configinit.inc @@ -0,0 +1,56 @@ +;; ----------------------------------------------------------------------- +;; +;; Copyright 1994-2006 H. Peter Anvin - All Rights Reserved +;; +;; This program is free software; you can redistribute it and/or modify +;; it under the terms of the GNU General Public License as published by +;; the Free Software Foundation, Inc., 53 Temple Place Ste 330, +;; Boston MA 02111-1307, USA; either version 2 of the License, or +;; (at your option) any later version; incorporated herein by reference. +;; +;; ----------------------------------------------------------------------- + +;; +;; configinit.inc +;; +;; Initialize the configuration section +;; + + section .text + +reset_config: + xor eax,eax + + ; Initialize the .config section + mov si,section..config.start + mov di,section..config.vstart + mov cx,section..config.end.start + sub cx,di + shr cx,2 + rep movsd + +%if NULLFILE != 0 + mov al,NULLFILE + mov di,FKeyName + mov cx,10*(1 << FILENAME_MAX_LG2) + rep stosb +%endif + + mov si,linuxauto_cmd ; Default command: "linux auto" + mov di,default_cmd + mov cx,linuxauto_len + rep movsb + + mov di,KbdMap ; Default keymap 1:1 + xor al,al + inc ch ; CX <- 256 +mkkeymap: stosb + inc al + loop mkkeymap + + ret + + section .data +linuxauto_cmd db 'linux auto',0 +linuxauto_len equ $-linuxauto_cmd + |