Skip to content

Commit

Permalink
update to riscv-kernel-6.11.0 v25
Browse files Browse the repository at this point in the history
  • Loading branch information
ZLangJIT committed Oct 16, 2024
1 parent 5fe7bdb commit 5a24f20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rvvm.patch
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ index 0000000..9ced2aa
+endif()
diff --git a/src/devices/shm.c b/src/devices/shm.c
new file mode 100644
index 0000000..2bdf3e8
index 0000000..62f744e
--- /dev/null
+++ b/src/devices/shm.c
@@ -0,0 +1,205 @@
Expand Down Expand Up @@ -629,7 +629,7 @@ index 0000000..2bdf3e8
+ rvvm_mmio_dev_t* mmio = rvvm_attach_mmio(machine, &shm_region);
+ if (mmio == NULL) return mmio;
+ #ifdef USE_FDT
+ rvvm_info("Exposing via Device Tree /sys/firmware/devicetree/base/soc/rvvm_shm_data_file@%p", shm_ctx->buffer);
+ rvvm_info("Exposing via Device Tree /sys/firmware/devicetree/base/soc/rvvm_shm_exe_file@%p", shm_ctx->buffer);
+ struct fdt_node* memory = fdt_node_create_reg("rvvm_shm_exe_file", (uint64_t)shm_region.mapping);
+ fdt_node_add_prop_str(memory, "device_type", "memory");
+ fdt_node_add_prop_str(memory, "source", shm_ctx->source);
Expand Down

0 comments on commit 5a24f20

Please sign in to comment.