Changeset 2690
- Timestamp:
- Nov 15, 2011 5:21:53 AM (19 months ago)
- File:
-
- 1 edited
-
ofw/core/ofwcore.fth (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ofw/core/ofwcore.fth
r2688 r2690 3279 3279 3280 3280 : most-tests ( -- exit? ) 3281 " selftest" current-device (search-wordlist) if ( xt )3282 3283 drop ( )3281 " selftest" current-device (search-wordlist) if ( xt ) 3282 3283 drop ( ) 3284 3284 3285 3285 \ We only want to execute the selftest routine if the device has … … 3287 3287 \ routines for "wildcard" devices like st and sd. 3288 3288 3289 " reg" get-property if exit then 2drop ()3289 " reg" get-property if false exit then 2drop ( ) 3290 3290 3291 3291 \ We sometimes want to skip the testing of certain devices. 3292 current-device skip-test? if exit then( )3292 current-device skip-test? if false exit then ( ) 3293 3293 3294 3294 ??cr ." Testing " pwd … … 3318 3318 ; 3319 3319 3320 \ "action-acf" is executed for each device node in the subtree3321 \ rooted at dev-addr,len , with current-device set to the3322 \ node in question. "action-acf" can perform arbitrary tests3323 \ on the node to determine if that node is appropriate for3324 \ the action that it wished to undertake.3325 3326 3320 : test-subtree ( dev-addr,len -- ) 3327 3321 current-device >r ( dev-addr,len r: phandle ) 3328 find-device ( r: phandle xt)3329 ['] most-tests ['] (search-preorder) catch 2drop ( r: phandle xt)3322 find-device ( r: phandle ) 3323 ['] most-tests ['] (search-preorder) catch 2drop ( r: phandle ) 3330 3324 r> push-device ( ) 3331 3325 ;
Note: See TracChangeset
for help on using the changeset viewer.
