From 9406bf169c89c541ce50caeb9bce1e31913d3c70 Mon Sep 17 00:00:00 2001 From: Amlal EL Mahrouss Date: Sat, 7 Sep 2024 20:24:02 +0200 Subject: Update Hang test. Signed-off-by: Amlal EL Mahrouss --- dev/ZBA/amd64-efi.make | 2 +- dev/ZKA/Sources/ExeMain.cxx | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'dev') diff --git a/dev/ZBA/amd64-efi.make b/dev/ZBA/amd64-efi.make index 0e159c41..8da2b05a 100644 --- a/dev/ZBA/amd64-efi.make +++ b/dev/ZBA/amd64-efi.make @@ -36,7 +36,7 @@ EMU_FLAGS=-net none -m 8G -M q35 \ file=fat:rw:Sources/Root/,index=2,format=raw \ -drive id=disk_2,file=$(IMG_2),if=none \ -device ahci,id=ahci \ - -device ide-hd,drive=disk_2,bus=ahci.0 -d int -no-reboot -no-shutdown + -device ide-hd,drive=disk_2,bus=ahci.0 -no-reboot -no-shutdown LD_FLAGS=-e Main --subsystem=10 diff --git a/dev/ZKA/Sources/ExeMain.cxx b/dev/ZKA/Sources/ExeMain.cxx index 4497d5b3..5535e4dd 100644 --- a/dev/ZKA/Sources/ExeMain.cxx +++ b/dev/ZKA/Sources/ExeMain.cxx @@ -157,10 +157,13 @@ EXTERN_C Kernel::Void ke_dll_entrypoint(Kernel::Void) CG::CGDrawStringToWnd(cKernelWnd, "Running System Component: ", 10, 10, RGB(0, 0, 0)); CG::CGDrawStringToWnd(cKernelWnd, kSysDrv, 10, 10 + (FONT_SIZE_X * Kernel::rt_string_len("Running System Component: ")), RGB(0, 0, 0)); - CG::CGDrawStringToWnd(cKernelWnd, "Starting ZKA System...", 20, 10, RGB(0, 0, 0)); - Kernel::UserProcessHelper::StartScheduling(); - Kernel::sched_execute_thread(HangCPU, "HANG TEST"); + + Kernel::UInt8* hang_proc = (Kernel::UInt8*)Kernel::mm_new_ke_heap(sizeof(Kernel::UInt8) * 512, Yes, Yes); + Kernel::rt_set_memory((Kernel::VoidPtr)HangCPU, 0x90, 512); + + + Kernel::sched_execute_thread((Kernel::MainKind)hang_proc, "HANG TEST"); while (Yes) { -- cgit v1.2.3