diff --git a/test/kernel.cpp b/test/kernel.cpp index 64892b2..9cb6977 100644 --- a/test/kernel.cpp +++ b/test/kernel.cpp @@ -1,5 +1,5 @@ /* - * lib86cpu cxbxrkrnl app test generator (https://github.com/ergo720/cxbxrkrnl) + * lib86cpu nboxkrnl app test generator (https://github.com/ergo720/nboxkrnl) * Demonstrates running a kernel inside lib86cpu * * ergo720 Copyright (c) 2022 @@ -147,7 +147,7 @@ host_write_handler(addr_t addr, const uint32_t value, void* opaque) { case DBG_STR: // NOTE: get_host_ptr will only work if the string is allocated with a contiguous allocation in physical memory, to avoid - // issues with allocations spanning pages; cxbxrkrnl should guarantee this + // issues with allocations spanning pages; nboxkrnl should guarantee this std::printf("Received a new debug string from kernel:\n%s", get_host_ptr(static_cast(opaque), static_cast(value))); break; @@ -161,7 +161,7 @@ host_write_handler(addr_t addr, const uint32_t value, void* opaque) } bool -gen_cxbxrkrnl_test(const std::string &executable) +gen_nboxkrnl_test(const std::string &executable) { size_t ramsize = 64 * 1024 * 1024; @@ -215,7 +215,7 @@ gen_cxbxrkrnl_test(const std::string &executable) } // Init lib86cpu - if (!LC86_SUCCESS(cpu_new(ramsize, cpu, nullptr, "cxbxrkrnl"))) { + if (!LC86_SUCCESS(cpu_new(ramsize, cpu, nullptr, "nboxkrnl"))) { std::printf("Failed to create cpu!\n"); return false; } diff --git a/test/run.cpp b/test/run.cpp index 24c4bd1..5dccfc7 100644 --- a/test/run.cpp +++ b/test/run.cpp @@ -164,7 +164,7 @@ main(int argc, char **argv) break; case 3: - if (gen_cxbxrkrnl_test(executable) == false) { + if (gen_nboxkrnl_test(executable) == false) { if (cpu) { cpu_free(cpu); } diff --git a/test/run.h b/test/run.h index bfe0a6d..a41cb4e 100644 --- a/test/run.h +++ b/test/run.h @@ -10,5 +10,5 @@ inline cpu_t *cpu = nullptr; bool gen_test386asm_test(const std::string &executable); bool gen_hook_test(); bool gen_dbg_test(); -bool gen_cxbxrkrnl_test(const std::string &executable); +bool gen_nboxkrnl_test(const std::string &executable); void gen_test80186_test(const std::string &path, int syntax, int use_dbg);