diff options
Diffstat (limited to 'lib/libbootmsg/bootmsg.code')
-rw-r--r-- | lib/libbootmsg/bootmsg.code | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/libbootmsg/bootmsg.code b/lib/libbootmsg/bootmsg.code index e43afa1..ae370af 100644 --- a/lib/libbootmsg/bootmsg.code +++ b/lib/libbootmsg/bootmsg.code @@ -1,5 +1,5 @@ /****************************************************************************** - * Copyright (c) 2004, 2007 IBM Corporation + * Copyright (c) 2004, 2008 IBM Corporation * All rights reserved. * This program and the accompanying materials * are made available under the terms of the BSD License @@ -47,7 +47,15 @@ PRIM(bootmsg_X2d_setlevel) bootmsg_setlevel(area, lvl); MIRP -// : bootmsg-setlevel ( -- ) +// : bootmsg-checklevel ( area lvl -- [true|false] ) +PRIM(bootmsg_X2d_checklevel) + char lvl = TOS.n; POP; + short area = TOS.n; POP; + PUSH; + TOS.n = (bootmsg_checklevel(area, lvl)) ? -1 : 0; +MIRP + +// : bootmsg-nvupdate ( -- ) PRIM(bootmsg_X2d_nvupdate) bootmsg_nvupdate(); MIRP |