about summary refs log tree commit diff stats
path: root/shell
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-03-23 00:32:49 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-03-23 00:32:49 -0700
commit62a244211024a8367332541c571621883c05bcce (patch)
tree6bd560d3d44ef21b9c4eee5de7b644875652793b /shell
parentbc79a190ec8366215d67110db08a25c7f8c8bf84 (diff)
downloadmu-62a244211024a8367332541c571621883c05bcce.tar.gz
writes to disk now working
Tested by inserting a call into the shell, but we can't leave it in because
every test ends up clobbering the disk. So it's now time to think about
a testable interface for the disk.
Diffstat (limited to 'shell')
-rw-r--r--shell/sandbox.mu3
1 files changed, 3 insertions, 0 deletions
diff --git a/shell/sandbox.mu b/shell/sandbox.mu
index 46dc21f1..5278e708 100644
--- a/shell/sandbox.mu
+++ b/shell/sandbox.mu
@@ -130,6 +130,9 @@ fn edit-sandbox _self: (addr sandbox), key: byte {
     var trace/eax: (addr trace) <- lookup *trace-ah
     clear-trace trace
     run data, value, trace
+    # testing write to disk
+#?     rewind-stream value
+#?     store-first-sector-to-primary-bus-secondary-drive value
     return
   }
   # tab