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 6bf7cd9 commit f08ee12
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 12 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
2 changes: 1 addition & 1 deletion sm/src/platform/mpfs/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ struct platform_enclave_data{
#define NUM_DISABLED_DEVS 0

// Search for FPGA devices
#define DEV_SEARCH_BASE "fabric-bus@40000000"
#define DEV_SEARCH_BASE "/fabric-bus@40000000"
#define DEV_IGNORED { "microchip,mpfs-ccc", "microchip,mpfs-qspi" }

// Initialization functions
Expand Down

0 comments on commit f08ee12

Please sign in to comment.