mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
When "load" is used, correctly set bootpath and bootargs.
Signed-off-by: Laurent Vivier <Laurent@Vivier.eu> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@583 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
committed by
Laurent Vivier
parent
ebf7e3f6da
commit
1f31d2f057
@@ -276,16 +276,19 @@ variable xcoff-entry
|
||||
then
|
||||
;
|
||||
|
||||
: encode-bootpath ( str len -- )
|
||||
\ FIXME: need to extract bootargs from bootpath and set it in /chosen
|
||||
: (encode-bootpath) ( "{params}<cr>" -- bootpath-str bootpath-len)
|
||||
bl parse 2dup
|
||||
" /chosen" (find-dev) if
|
||||
" bootpath" rot (property)
|
||||
then
|
||||
linefeed parse
|
||||
" /chosen" (find-dev) if
|
||||
" bootargs" rot (property)
|
||||
then
|
||||
;
|
||||
|
||||
: load ( "{params}<cr>" -- )
|
||||
linefeed parse ( str len )
|
||||
2dup encode-bootpath
|
||||
(encode-bootpath)
|
||||
open-dev ( ihandle )
|
||||
dup 0= if
|
||||
drop
|
||||
|
||||
Reference in New Issue
Block a user