]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - arch/sandbox/cpu/cpu.c
sandbox: Allow reading/writing of RAM buffer
[people/ms/u-boot.git] / arch / sandbox / cpu / cpu.c
index bc7641a8081f07a6a8778a493ccaa7a5835bb58a..38019e0b48e57585b0e89f23ab929c9cad5f2edc 100644 (file)
@@ -5,11 +5,15 @@
 
 #include <common.h>
 #include <os.h>
+#include <asm/state.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
 void reset_cpu(ulong ignored)
 {
+       if (state_uninit())
+               os_exit(2);
+
        /* This is considered normal termination for now */
        os_exit(0);
 }