Lines Matching +full:n +full:-
1 \ Copyright (c) 2006-2015 Devin Teske <dteske@FreeBSD.org>
26 marker task-menu-commands.4th
37 also menu-namespace also menu-command-helpers
43 : init_boot ( N -- N )
45 s" boot_single" getenv -1 <> if
46 drop ( n n c-addr -- n n ) \ unused
47 toggle_menuitem ( n n -- n n )
48 s" set menu_keycode[N]=115" \ base command to execute
50 s" set menu_keycode[N]=98" \ base command to execute
52 17 +c! \ replace 'N' with ASCII numeral
60 : init_altboot ( N -- N )
62 s" boot_single" getenv -1 <> if
63 drop ( n c-addr -- n ) \ unused
64 toggle_menuitem ( n -- n )
65 s" set menu_keycode[N]=109" \ base command to execute
67 s" set menu_keycode[N]=115" \ base command to execute
69 17 +c! \ replace 'N' with ASCII numeral
73 : altboot ( N -- NOTREACHED )
74 s" boot_single" 2dup getenv -1 <> if
75 drop ( c-addr/u c-addr -- c-addr/u ) \ unused
76 unsetenv ( c-addr/u -- )
78 2drop ( c-addr/u -- ) \ unused
81 0 boot ( state -- )
88 : acpi_enable ( -- )
94 : acpi_disable ( -- )
100 : toggle_acpi ( N -- N TRUE )
102 \ Make changes effective _before_ calling menu-redraw
110 menu-redraw
119 : safemode_enabled? ( -- flag )
120 s" kern.smp.disabled" getenv -1 <> dup if
121 swap drop ( c-addr flag -- flag )
125 : safemode_enable ( -- )
133 : safemode_disable ( -- )
141 : init_safemode ( N -- N )
143 toggle_menuitem ( n -- n )
147 : toggle_safemode ( N -- N TRUE )
158 menu-redraw
167 : singleuser_enabled? ( -- flag )
168 s" boot_single" getenv -1 <> dup if
169 swap drop ( c-addr flag -- flag )
173 : singleuser_enable ( -- )
177 : singleuser_disable ( -- )
181 : init_singleuser ( N -- N )
183 toggle_menuitem ( n -- n )
187 : toggle_singleuser ( N -- N TRUE )
189 menu-redraw
206 : verbose_enabled? ( -- flag )
207 s" boot_verbose" getenv -1 <> dup if
208 swap drop ( c-addr flag -- flag )
212 : verbose_enable ( -- )
216 : verbose_disable ( -- )
220 : init_verbose ( N -- N )
222 toggle_menuitem ( n -- n )
226 : toggle_verbose ( N -- N TRUE )
228 menu-redraw
245 : goto_prompt ( N -- N FALSE )
261 : init_cyclestate ( N K -- N )
262 over cycle_stateN ( n k -- n k addr )
264 tuck @ ( n k addr -- n addr k c )
265 over <> ( n addr k c -- n addr k 0|-1 )
267 rot ( n addr k -- addr k n )
269 swap rot ( addr k n -- n k addr )
271 2drop ( n k addr -- n )
278 : init_kernel ( N -- N )
279 kernel_state @ ( n -- n k )
280 init_cyclestate ( n k -- n )
283 : activate_kernel ( N -- N )
284 dup cycle_stateN @ ( n -- n n2 )
285 dup kernel_state ! ( n n2 -- n n2 ) \ copy for re-initialization
286 48 + ( n n2 -- n n2' ) \ kernel_state to ASCII num
288 s" set kernel=${kernel_prefix}${kernel[N]}${kernel_suffix}"
289 36 +c! ( n n2 c-addr/u -- n c-addr/u ) \ 'N' to ASCII num
290 evaluate ( n c-addr/u -- n ) \ sets $kernel to full kernel-path
293 : cycle_kernel ( N -- N TRUE )
296 menu-redraw \ redraw menu
304 : init_root ( N -- N )
305 root_state @ ( n -- n k )
306 init_cyclestate ( n k -- n )
309 : activate_root ( N -- N )
310 dup cycle_stateN @ ( n -- n n2 )
311 dup root_state ! ( n n2 -- n n2 ) \ copy for re-initialization
312 48 + ( n n2 -- n n2' ) \ root_state to ASCII num
314 s" set root=${root_prefix}${root[N]}${root_suffix}"
315 30 +c! ( n n2 c-addr/u -- n c-addr/u ) \ 'N' to ASCII num
316 evaluate ( n c-addr/u -- n ) \ sets $root to full kernel-path
319 : cycle_root ( N -- N TRUE )
322 menu-redraw \ redraw menu
330 : goto_menu ( N M -- N TRUE )
331 menu-unset
332 menuset-loadsetnum ( n m -- n )
333 menu-redraw
341 : set_default_boot_options ( N -- N TRUE )
353 : init_bootenv ( -- )
368 print_version \ print version string (bottom-right; see version.4th)
369 draw-beastie \ Draw FreeBSD logo at right (in beastie.4th)
370 draw-brand \ Draw brand.4th logo at top (in brand.4th)
371 menu-init \ Initialize menu and draw bounding box (in menu.4th)
378 : set_bootenv ( N -- N TRUE )
382 free-module-options
383 s" /boot/defaults/loader.conf" read-conf
384 s" /boot/loader.conf" read-conf
385 s" /boot/loader.conf.local" read-conf
388 menu-redraw
396 : set_be_page ( N -- N TRUE )
397 s" zfs_be_currpage" getenv dup -1 = if
401 >number ( ud caddr/u -- ud' caddr'/u' ) \ convert string to numbers
403 1 um/mod ( ud u1 -- u2 u3 ) \ convert double ud' to single u3' and remainder u2
404 swap drop ( ud2 u3 -- u3 ) \ drop the remainder u2