1 ;; -----------------------------------------------------------------------
3 ;; Copyright 2003-2009 H. Peter Anvin - All Rights Reserved
4 ;; Copyright 2009 Intel Corporation; author: H. Peter Anvin
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.
12 ;; -----------------------------------------------------------------------
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.
29 ; ui.inc has already copied any APPEND options
42 mov byte [es:di],0 ; Null-terminate
48 ; Actual IPAppend strings...
51 extern IPOption, BOOTIFStr, SYSUUIDStr
52 global IPAppends, numIPAppends
59 numIPAppends equ ($-IPAppends)/2
66 ; Handle "ipappend" strings, if applicable
68 ; Assumes DS == CS; pushes output to ES:DI
81 and cx,(1 << numIPAppends)-1
91 mov byte [es:di-1],' ' ; Replace final null with space