:: commit f993a2302588f46c67dd095d315158d5822fcf5a

mintsuki <mintsuki@protonmail.com> — 2020-03-27 04:08

parents: 573b3308e1

Fix overlapping memory bug and sizeof cmdline bug

diff --git a/src/fs/echfs.c b/src/fs/echfs.c
index 99f719f6..6f8698c0 100644
--- a/src/fs/echfs.c
+++ b/src/fs/echfs.c
@@ -16,7 +16,7 @@ struct echfs_identity_table {
 #define END_OF_CHAIN (~((uint64_t)0))
 #define FILE_TYPE    0
 
-#define CACHE_ADDR   ((uint8_t *)(0x20000))
+#define CACHE_ADDR   ((uint8_t *)(0x30000))
 
 static int cache_block(struct echfs_file_handle *file, uint64_t block) {
     // Load the file.
diff --git a/src/protos/stivale.c b/src/protos/stivale.c
index 9bf393ad..a6d02400 100644
--- a/src/protos/stivale.c
+++ b/src/protos/stivale.c
@@ -21,7 +21,7 @@ struct stivale_module {
 } __attribute__((packed));
 
 struct stivale_struct {
-    char    *cmdline;
+    uint64_t cmdline;
     uint64_t memory_map_addr;
     uint64_t memory_map_entries;
     uint64_t framebuffer_addr;
tab: 248 wrap: offon