mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
dir command cleanup
git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@635 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
@@ -308,20 +308,18 @@ variable bootinfo-size
|
||||
;
|
||||
|
||||
: dir ( "{paths}<cr>" -- )
|
||||
linefeed parse 2dup
|
||||
linefeed parse
|
||||
open-dev dup 0= if
|
||||
3drop
|
||||
drop
|
||||
exit
|
||||
then
|
||||
dup >r
|
||||
dup ihandle>phandle " dir" rot find-method ( xt 0|1 )
|
||||
dup
|
||||
" dir" rot ['] $call-method catch
|
||||
if
|
||||
swap call-package
|
||||
else
|
||||
3drop
|
||||
cr ." Cannot find dir for this package"
|
||||
then
|
||||
r> close-dev
|
||||
close-dev
|
||||
;
|
||||
|
||||
: go ( -- )
|
||||
|
||||
Reference in New Issue
Block a user