Annotation of /tags/mkinitrd-6_1_5/isolinux/cmdline.inc
Parent Directory | Revision Log
Revision 899 -
(hide annotations)
(download)
Wed Aug 5 17:52:52 2009 UTC (15 years, 1 month ago) by niro
File size: 1055 byte(s)
Wed Aug 5 17:52:52 2009 UTC (15 years, 1 month ago) by niro
File size: 1055 byte(s)
tagged 'mkinitrd-6_1_5'
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 |