menu-commands.4th (238431) | menu-commands.4th (241310) |
---|---|
1\ Copyright (c) 2006-2011 Devin Teske <dteske@FreeBSD.org> | 1\ Copyright (c) 2006-2012 Devin Teske <dteske@FreeBSD.org> |
2\ All rights reserved. 3\ 4\ Redistribution and use in source and binary forms, with or without 5\ modification, are permitted provided that the following conditions 6\ are met: 7\ 1. Redistributions of source code must retain the above copyright 8\ notice, this list of conditions and the following disclaimer. 9\ 2. Redistributions in binary form must reproduce the above copyright --- 7 unchanged lines hidden (view full) --- 17\ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18\ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19\ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20\ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21\ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22\ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23\ SUCH DAMAGE. 24\ | 2\ All rights reserved. 3\ 4\ Redistribution and use in source and binary forms, with or without 5\ modification, are permitted provided that the following conditions 6\ are met: 7\ 1. Redistributions of source code must retain the above copyright 8\ notice, this list of conditions and the following disclaimer. 9\ 2. Redistributions in binary form must reproduce the above copyright --- 7 unchanged lines hidden (view full) --- 17\ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18\ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19\ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20\ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21\ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22\ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23\ SUCH DAMAGE. 24\ |
25\ $FreeBSD: head/sys/boot/forth/menu-commands.4th 238431 2012-07-14 01:45:35Z dteske $ | 25\ $FreeBSD: head/sys/boot/forth/menu-commands.4th 241310 2012-10-07 15:37:30Z dteske $ |
26 27marker task-menu-commands.4th 28 29: acpi_enable ( -- ) 30 s" set acpi_load=YES" evaluate \ XXX deprecated but harmless 31 s" set hint.acpi.0.disabled=0" evaluate 32 s" loader.acpi_disabled_by_user" unsetenv 33; --- 105 unchanged lines hidden (view full) --- 139 \ Now we're going to make the change effective 140 141 s" cycle_stateN" \ base name of array state var 142 -rot 2dup 11 + c! rot \ replace 'N' with ASCII numeral 143 evaluate \ translate name into address 144 @ \ dereference address into value 145 48 + \ convert to ASCII numeral 146 | 26 27marker task-menu-commands.4th 28 29: acpi_enable ( -- ) 30 s" set acpi_load=YES" evaluate \ XXX deprecated but harmless 31 s" set hint.acpi.0.disabled=0" evaluate 32 s" loader.acpi_disabled_by_user" unsetenv 33; --- 105 unchanged lines hidden (view full) --- 139 \ Now we're going to make the change effective 140 141 s" cycle_stateN" \ base name of array state var 142 -rot 2dup 11 + c! rot \ replace 'N' with ASCII numeral 143 evaluate \ translate name into address 144 @ \ dereference address into value 145 48 + \ convert to ASCII numeral 146 |
147 \ Since we are [in this file] going to override the standard `boot' 148 \ routine with a custom one, you should know that we use $kernel 149 \ when referencing the desired kernel. Set $kernel below. 150 | |
151 s" set kernel=${kernel_prefix}${kernel[N]}${kernel_suffix}" 152 \ command to assemble full kernel-path 153 -rot tuck 36 + c! swap \ replace 'N' with array index value 154 evaluate \ sets $kernel to full kernel-path 155 156 TRUE \ loop menu again 157; 158 --- 4 unchanged lines hidden (view full) --- 163 \ Now we're going to make the change effective 164 165 s" cycle_stateN" \ base name of array state var 166 -rot 2dup 11 + c! rot \ replace 'N' with ASCII numeral 167 evaluate \ translate name into address 168 @ \ dereference address into value 169 48 + \ convert to ASCII numeral 170 | 147 s" set kernel=${kernel_prefix}${kernel[N]}${kernel_suffix}" 148 \ command to assemble full kernel-path 149 -rot tuck 36 + c! swap \ replace 'N' with array index value 150 evaluate \ sets $kernel to full kernel-path 151 152 TRUE \ loop menu again 153; 154 --- 4 unchanged lines hidden (view full) --- 159 \ Now we're going to make the change effective 160 161 s" cycle_stateN" \ base name of array state var 162 -rot 2dup 11 + c! rot \ replace 'N' with ASCII numeral 163 evaluate \ translate name into address 164 @ \ dereference address into value 165 48 + \ convert to ASCII numeral 166 |
171 \ Since we are [in this file] going to override the standard `boot' 172 \ routine with a custom one, you should know that we use $root when 173 \ booting. Set $root below. 174 | |
175 s" set root=${root_prefix}${root[N]}${root_prefix}" 176 \ command to assemble full kernel-path 177 -rot tuck 30 + c! swap \ replace 'N' with array index value 178 evaluate \ sets $kernel to full kernel-path 179 180 TRUE \ loop menu again 181; | 167 s" set root=${root_prefix}${root[N]}${root_prefix}" 168 \ command to assemble full kernel-path 169 -rot tuck 30 + c! swap \ replace 'N' with array index value 170 evaluate \ sets $kernel to full kernel-path 171 172 TRUE \ loop menu again 173; |