[apps] Shift return value to include valid bit
@@ -89,13 +89,17 @@ reset_vector:
eoc:
la t0, eoc_reg
- sw a0, 0(t0)
+ slli t1, a0, 1
+ addi t1, t1, 1
+ sw t1, 0(t0)
la ra, BOOT_BASE
ret
fail:
la t0, eoc_reg
- sw a0, 0(t0)
+ slli t1, a0, 1
+ addi t1, t1, 1
+ sw t1, 0(t0)
la ra, BOOT_BASE
ret
