mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Correctly encode strings of bootpath and bootargs properties.
Signed-off-by: Laurent Vivier <Laurent@vivier.eu> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@602 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
@@ -282,11 +282,11 @@ variable bootinfo-size
|
|||||||
;
|
;
|
||||||
|
|
||||||
: (encode-bootpath) ( "{params}<cr>" -- bootpath-str bootpath-len)
|
: (encode-bootpath) ( "{params}<cr>" -- bootpath-str bootpath-len)
|
||||||
bl parse 2dup
|
bl parse 2dup encode-string
|
||||||
" /chosen" (find-dev) if
|
" /chosen" (find-dev) if
|
||||||
" bootpath" rot (property)
|
" bootpath" rot (property)
|
||||||
then
|
then
|
||||||
linefeed parse
|
linefeed parse encode-string
|
||||||
" /chosen" (find-dev) if
|
" /chosen" (find-dev) if
|
||||||
" bootargs" rot (property)
|
" bootargs" rot (property)
|
||||||
then
|
then
|
||||||
|
|||||||
Reference in New Issue
Block a user