Small Fixes

This commit is contained in:
TheBrokenRail 2024-06-08 18:00:30 -04:00
parent a0f32a15a7
commit 69a9613e4f
3 changed files with 5 additions and 3 deletions

View File

@ -13,4 +13,6 @@ endif()
add_subdirectory(src) add_subdirectory(src)
# Install # Install
if(COMMAND install_runtime)
install_runtime("${MCPI_BIN_DIR}" "${MCPI_LEGAL_DIR}") install_runtime("${MCPI_BIN_DIR}" "${MCPI_LEGAL_DIR}")
endif()

@ -1 +1 @@
Subproject commit e6839074fd2eec91c5bb2e08705f2f235a568f74 Subproject commit 790e7918b1d63102b7a7f39dc1db006b2a5abf48

View File

@ -58,7 +58,7 @@ void bootstrap() {
print_debug_information(); print_debug_information();
// Check Page Size (Not Needed When Using QEMU) // Check Page Size (Not Needed When Using QEMU)
#ifndef MCPI_USE_QEMU #ifndef MCPI_RUNTIME_IS_QEMU
long page_size = sysconf(_SC_PAGESIZE); long page_size = sysconf(_SC_PAGESIZE);
if (page_size != REQUIRED_PAGE_SIZE) { if (page_size != REQUIRED_PAGE_SIZE) {
ERR("Invalid page size! A page size of %ld bytes is required, but the system size is %ld bytes.", (long) REQUIRED_PAGE_SIZE, page_size); ERR("Invalid page size! A page size of %ld bytes is required, but the system size is %ld bytes.", (long) REQUIRED_PAGE_SIZE, page_size);