Magellan Linux

Diff of /trunk/mkinitrd-magellan/isolinux/init.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 532 by niro, Sat Sep 1 22:45:15 2007 UTC revision 1133 by niro, Thu Aug 19 09:50:43 2010 UTC
# Line 1  Line 1 
1  ; -*- fundamental -*-  ; -*- fundamental -*-
2  ; -----------------------------------------------------------------------  ; -----------------------------------------------------------------------
3  ;    ;
4  ;   Copyright 2004 H. Peter Anvin - All Rights Reserved  ;   Copyright 2004-2008 H. Peter Anvin - All Rights Reserved
5  ;  ;
6  ;   This program is free software; you can redistribute it and/or modify  ;   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  ;   it under the terms of the GNU General Public License as published by
# Line 10  Line 10 
10  ;   (at your option) any later version; incorporated herein by reference.  ;   (at your option) any later version; incorporated herein by reference.
11  ;  ;
12  ; -----------------------------------------------------------------------  ; -----------------------------------------------------------------------
 ; $Id: init.inc,v 1.1 2007-09-01 22:44:04 niro Exp $  
13    
14  ;  ;
15  ; init.inc  ; init.inc
# Line 23  common_init: Line 22  common_init:
22   ; Now set up screen parameters   ; Now set up screen parameters
23   call adjust_screen   call adjust_screen
24    
25   ; Wipe the F-key area  ;
26   mov al,NULLFILE  ; Initialize configuration information
27   mov di,FKeyName  ;
28   mov cx,10*(1 << FILENAME_MAX_LG2)   call reset_config
  rep stosb  
   
  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  
29    
30  ;  ;
31  ; Clear Files structures  ; Clear Files structures
# Line 58  mkkeymap: stosb Line 44  mkkeymap: stosb
44   add ax,PKTBUF_SIZE   add ax,PKTBUF_SIZE
45   loop .setbufptr   loop .setbufptr
46  %endif  %endif
   
  section .data  
 linuxauto_cmd db 'linux auto',0  
 linuxauto_len   equ $-linuxauto_cmd  
   
47   section .text ; This is an inline file...   section .text ; This is an inline file...
   

Legend:
Removed from v.532  
changed lines
  Added in v.1133