diff options
| author | Amlal EL Mahrouss <amlalelmahrouss@icloud.com> | 2024-09-07 20:24:02 +0200 |
|---|---|---|
| committer | Amlal EL Mahrouss <amlalelmahrouss@icloud.com> | 2024-09-07 20:24:02 +0200 |
| commit | 9406bf169c89c541ce50caeb9bce1e31913d3c70 (patch) | |
| tree | b1ef67e6215be170de2bdf5fab9ea4fe155d4e6c /dev | |
| parent | 82e5b65b604c0cc74e82a366ba53df8b68d3ed3d (diff) | |
Update Hang test.
Signed-off-by: Amlal EL Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'dev')
| -rw-r--r-- | dev/ZBA/amd64-efi.make | 2 | ||||
| -rw-r--r-- | dev/ZKA/Sources/ExeMain.cxx | 9 |
2 files changed, 7 insertions, 4 deletions
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) { |
