Skip to content

Commit

Permalink
vm_arm: inline memory initializtion module
Browse files Browse the repository at this point in the history
Signed-off-by: Axel Heider <[email protected]>
  • Loading branch information
Axel Heider committed Mar 10, 2023
1 parent 0be86c6 commit 3f866b9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 22 deletions.
1 change: 0 additions & 1 deletion arm_vm_helpers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ function(DeclareCAmkESARMVM init_component)
)

list(APPEND vm_src ${ARM_VM_PROJECT_DIR}/components/VM_Arm/src/modules/map_frame_hack.c)
list(APPEND vm_src ${ARM_VM_PROJECT_DIR}/components/VM_Arm/src/modules/init_ram.c)

if(VmVirtUart)
list(APPEND vm_src ${ARM_VM_PROJECT_DIR}/components/VM_Arm/src/modules/vuart_init.c)
Expand Down
4 changes: 4 additions & 0 deletions components/VM_Arm/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1175,6 +1175,10 @@ int main_continued(void)
return -1;
}

/* Install and initialize guest memory. */
err = vm_ram_register_at(&vm, ram_base, ram_size, vm.mem.map_one_to_one);
assert(!err);

/* Load system images */
err = load_vm(&vm, _kernel_name, _dtb_name, _initrd_name);
if (err) {
Expand Down
21 changes: 0 additions & 21 deletions components/VM_Arm/src/modules/init_ram.c

This file was deleted.

0 comments on commit 3f866b9

Please sign in to comment.