瀏覽代碼

rv32/shutdown: don't want for console to drain

Depending on how the console is being used, the FIFOs might *never*
drain. It isn't even necessary for a soft reboot, since the console
isn't reset in that case.
H. Peter Anvin 1 年之前
父節點
當前提交
d4e593cfe8
共有 12 個文件被更改,包括 4 次插入5 次删除
  1. 二進制
      esp32/output/max80.ino.bin
  2. 2 2
      fpga/max80.qpf
  3. 二進制
      fpga/output/bypass.jic
  4. 二進制
      fpga/output/max80.fw
  5. 二進制
      fpga/output/v1.fw
  6. 二進制
      fpga/output/v1.jic
  7. 二進制
      fpga/output/v1.sof
  8. 二進制
      fpga/output/v2.fw
  9. 二進制
      fpga/output/v2.jic
  10. 二進制
      fpga/output/v2.sof
  11. 1 1
      rv32/checksum.h
  12. 1 2
      rv32/shutdown.c

二進制
esp32/output/max80.ino.bin


+ 2 - 2
fpga/max80.qpf

@@ -19,12 +19,12 @@
 #
 # Quartus Prime
 # Version 22.1std.2 Build 922 07/20/2023 SC Lite Edition
-# Date created = 16:28:19  September 17, 2023
+# Date created = 12:25:52  September 19, 2023
 #
 # -------------------------------------------------------------------------- #
 
 QUARTUS_VERSION = "22.1"
-DATE = "16:28:19  September 17, 2023"
+DATE = "12:25:52  September 19, 2023"
 
 # Revisions
 

二進制
fpga/output/bypass.jic


二進制
fpga/output/max80.fw


二進制
fpga/output/v1.fw


二進制
fpga/output/v1.jic


二進制
fpga/output/v1.sof


二進制
fpga/output/v2.fw


二進制
fpga/output/v2.jic


二進制
fpga/output/v2.sof


+ 1 - 1
rv32/checksum.h

@@ -1,4 +1,4 @@
 #ifndef CHECKSUM_H
 #define CHECKSUM_H
-#define SDRAM_SUM 0x9c04cf95
+#define SDRAM_SUM 0x17cbe205
 #endif

+ 1 - 2
rv32/shutdown.c

@@ -12,6 +12,5 @@ no_return shutdown(unsigned int type)
     disk_ioctl(0, CTRL_SYNC, NULL);
 
     con_puts("Rebooting...\n");
-    con_flush_unconditional();
-    reset(SYS_RESET_SOFT);
+    reset(type);
 }