(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 <firstname.lastname@example.org>
Reviewed-by: Bill Richardson <email@example.com>
Reviewed-by: Hung-Te Lin <firstname.lastname@example.org>
(cherry picked from commit 09a8447862c7d111d6abdd7891508df1a8f1cc5b)
Reviewed-by: Randall Spangler <email@example.com>
Tested-by: Jay Kim <firstname.lastname@example.org>
2 files changed