Skip to contentSkip to conversation

sandbox: "Reset Status: WARM Reset Status: COLD"

DISCUSSION Heinrich Schuchardt 2 participants 2 messages Dec 29, 2022

lore
Share & tools
lore
#0 lore raw

Hello Simon,

the sandbox prints the following line when started:
"Reset Status: WARM Reset Status: COLD"

This does not make much sense. Either the last reset was WARM or COLD but not both.

sandbox_sysreset_get_status() and sandbox_warm_sysreset_get_status() should determine the reset status before printing anything incorrect.

After executing the reset command

state->last_sysreset == 4

This cannot be correct. It seems to be due to:

arch/sandbox/cpu/state.c:365: state->last_sysreset = SYSRESET_COUNT;

state_reset_for_test() should only be called in tests.

Best regards

Heinrich

#1 lore raw

Hi Heinrich,

Quoted 5 lines · Heinrich Schuchardt

Hello Simon,

the sandbox prints the following line when started:
"Reset Status: WARM Reset Status: COLD"

This seems to be when you use the -T flag.

Quoted 4 lines

This does not make much sense. Either the last reset was WARM or COLD but not both.

Indeed!

Quoted 5 lines

sandbox_sysreset_get_status() and sandbox_warm_sysreset_get_status() should determine the reset status before printing anything incorrect.

After executing the reset command

Quoted 7 lines
    state->last_sysreset == 4

This cannot be correct. It seems to be due to:

arch/sandbox/cpu/state.c:365: state->last_sysreset = SYSRESET_COUNT;

state_reset_for_test() should only be called in tests.

It needs to be called at init also. But actually the name is confusing. How about state_reset_common() or something like that?

For testing we have two sysreset devices. Perhaps print_resetinfo() should only print the first?

Regards,
Simon