Magellan Linux

Annotation of /trunk/mkinitrd-magellan/isolinux/cmdline.inc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 532 - (hide annotations) (download)
Sat Sep 1 22:45:15 2007 UTC (16 years, 8 months ago) by niro
File size: 1055 byte(s)
-import if magellan mkinitrd; it is a fork of redhats mkinitrd-5.0.8 with all magellan patches and features; deprecates magellan-src/mkinitrd

1 niro 532 ;; $Id: cmdline.inc,v 1.1 2007-09-01 22:44:04 niro Exp $
2     ;; -----------------------------------------------------------------------
3     ;;
4     ;; Copyright 2003 H. Peter Anvin - All Rights Reserved
5     ;;
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.
11     ;;
12     ;; -----------------------------------------------------------------------
13    
14     ;;
15     ;; cmdline.inc
16     ;;
17     ;; Common routine to assemble [null-terminated] command line into
18     ;; real_mode_seg:cmd_line_here.
19     ;; Not used by plain kernel due to BOOT_IMAGE= etc.
20     ;;
21    
22     ;
23     ; Assumes DS == CS
24     make_plain_cmdline:
25     push es
26     ; ui.inc has already copied any APPEND options
27     mov ax,real_mode_seg
28     mov es,ax
29    
30     mov si,[CmdOptPtr]
31     mov di,[CmdLinePtr]
32    
33     call strcpy
34    
35     dec di
36     mov [CmdLinePtr],di
37    
38     pop es
39     ret
40    
41