Skip to content

Commit

Permalink
bugfixes from rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
grg-haas committed Jan 25, 2024
1 parent 645f5f3 commit 58cfb86
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 11 deletions.
11 changes: 3 additions & 8 deletions examples/devshare/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,8 @@ set(eapp_src eapp/devshare.c)
set(host_bin devshare-runner)
set(host_src host/host.cpp)
set(package_name "devshare.ke")
set(package_script "./devshare-runner devshare eyrie-rt")

if(RISCV32)
set(eyrie_plugins "freemem io_syscall linux_syscall env_setup rv32")
else()
set(eyrie_plugins "freemem io_syscall linux_syscall env_setup")
endif()
set(package_script "./devshare-runner devshare eyrie-rt loader.bin")
set(eyrie_plugins "freemem io_syscall linux_syscall env_setup")

# eapp

Expand All @@ -23,7 +18,7 @@ target_link_libraries(${host_bin} ${KEYSTONE_LIB_HOST} ${KEYSTONE_LIB_EDGE})

# add target for Eyrie runtime (see keystone.cmake)

set(eyrie_files_to_copy .options_log eyrie-rt)
set(eyrie_files_to_copy .options_log eyrie-rt loader.bin)
add_eyrie_runtime(${eapp_bin}-eyrie
${eyrie_plugins}
${eyrie_files_to_copy})
Expand Down
4 changes: 2 additions & 2 deletions examples/devshare/host/host.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ int main(int argc, char **argv) {
Params params;

params.setFreeMemSize(1024 * 1024);
params.setUntrustedMem(DEFAULT_UNTRUSTED_PTR, 1024 * 1024);
params.setUntrustedSize(1024 * 1024);

enclave.init(argv[1], argv[2], params);
enclave.init(argv[1], argv[2], argv[3], params);

enclave.registerOcallDispatch(incoming_call_dispatch);
edge_call_init_internals(
Expand Down
2 changes: 1 addition & 1 deletion runtime/loader-binary/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set(LOADER_SOURCES loader.S loader-binary.c)
set(LOADER_LINK_SCRIPT ${CMAKE_CURRENT_SOURCE_DIR}/loader.lds)

add_executable(loader ${LOADER_SOURCES})
target_link_libraries(loader rt_call ld_mm rt_util rt_loader gcc)
target_link_libraries(loader rt_call ld_mm rt_util rt_tmplib rt_loader gcc)
target_link_options(loader PRIVATE -static -nostdlib -T ${LOADER_LINK_SCRIPT})

add_custom_target(loader.bin ALL
Expand Down
1 change: 1 addition & 0 deletions runtime/mm/mm.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include "mm/vm.h"
#include "mm/freemem.h"
#include "mm/paging.h"
#include "util/rt_util.h"

/* Page table utilities */
static pte*
Expand Down

0 comments on commit 58cfb86

Please sign in to comment.