(release-R23)crossystem devsw_cur returns devsw_boot if virtual dev switch
devsw_cur is really a meaningless concept on systems with virtual dev
switches; it exists primarily to support factory test of physical
developer switches. However, some plugins use this instead of the
preferred devsw_boot, and it's easier to modify crossystem than the
plugins at this point in time.
BRANCH=none (affects all current products, but is an OS-level change, not FW)
- On link, 'crossystem devsw_cur devsw_boot' with dev switch on -> '1 1'
- On link, 'crossystem devsw_cur devsw_boot' with dev switch off -> '0 0'
- On lumpy or earlier, 'crossystem devsw_cur' should return current dev
switch position; check this by toggling the physical switch without
rebooting and see that the reported value follows the switch value.
Signed-off-by: Randall Spangler <email@example.com>
Reviewed-by: Bill Richardson <firstname.lastname@example.org>
Reviewed-by: Hung-Te Lin <email@example.com>
(cherry picked from commit 09a8447862c7d111d6abdd7891508df1a8f1cc5b)
Reviewed-by: Randall Spangler <firstname.lastname@example.org>
Tested-by: Jay Kim <email@example.com>
2 files changed