Lines Matching +full:on +full:- +full:module
2 \ Copyright (c) 2011-2015 Devin Teske <dteske@FreeBSD.org>
21 \ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 swap u< if -1 exit then
52 s" arch-i386" environment? [if] [if]
70 include /boot/check-password.4th
74 : maybe-resetcons ( -- )
80 : bootmsg ( -- )
81 loader_color? dup ( -- bool bool )
88 : try-menu-unset
89 \ menu-unset may not be present
91 dup -1 <> if
92 s" YES" compare-insensitive 0= if
98 s" menu-unset"
104 s" menusets-unset"
112 only forth also support-functions also builtins definitions
120 c@ [char] - <> if
124 try-menu-unset
129 try-menu-unset
134 try-menu-unset
139 try-menu-unset
146 \ ***** boot-conf
150 : boot-conf
160 builtin: boot-conf
162 only forth definitions also support-functions
170 : start ( -- ) ( throws: abort & user-defined )
174 \ If the user defined a post-initialize hook, call it now
175 s" post-initialize" sfind if execute else drop then
179 s" loader_delay" getenv -1 = if
185 ." Loading Kernel and Modules (Ctrl-C to Abort)" cr
186 s" also support-functions" evaluate
200 : initialize ( -- flag )
204 \ If the user defined a post-initialize hook, call it now
205 s" post-initialize" sfind if execute else drop then
209 \ ***** read-conf
211 \ Read a configuration file, whose name was specified on the command
212 \ line, if interpreted, or given on the stack, if compiled in.
214 : (read-conf) ( addr len -- )
216 include_conf_files \ Will recurse on new loader_conf_files definitions
219 : read-conf ( <filename> | addr len -- ) ( throws: abort & user-defined )
222 postpone (read-conf)
225 bl parse (read-conf)
229 \ show, enable, disable, toggle module loading. They all take module from
232 : set-module-flag ( module_addr val -- ) \ set and print flag
233 over module.flag !
234 dup module.name strtype
235 module.flag @ if ." will be loaded" else ." will not be loaded" then cr
238 : enable-module find-module ?dup if true set-module-flag then ;
240 : disable-module find-module ?dup if false set-module-flag then ;
242 : toggle-module find-module ?dup if dup module.flag @ 0= set-module-flag then ;
244 \ ***** show-module
246 \ Show loading information about a module.
248 : show-module ( <module> -- ) find-module ?dup if show-one-module then ;
258 over - >r
274 s" boot-conf" s" load kernel and modules, then autoboot" .?
275 s" read-conf" s" read a configuration file" .?
276 s" enable-module" s" enable loading of a module" .?
277 s" disable-module" s" disable loading of a module" .?
278 s" toggle-module" s" toggle loading of a module" .?
279 s" show-module" s" show module load data" .?
280 s" try-include" s" try to load/interpret files" .?
283 : try-include ( -- ) \ see loader.4th(8)
284 ['] include ( -- xt ) \ get the execution token of `include'
285 catch ( xt -- exception# | 0 ) if \ failed
286 LF parse ( c -- s-addr/u ) 2drop \ advance >in to EOL (drop data)