mirror of
https://github.com/HyperDbg/HyperDbg.git
synced 2026-08-26 08:53:21 +00:00
The kernel module now links and compiles, there are still a lot of empty TODOs left, there are empty stubs for hypertrace, assembly files and kdserial etc. these can be introduced one by one. My first step will be loading the kernel module from the userspace cli. Big step forward! :)
33 lines
1.4 KiB
ArmAsm
33 lines
1.4 KiB
ArmAsm
/* SPDX-License-Identifier: GPL-3.0 */
|
|
/*
|
|
* AsmDebugger-linux.S -- Linux (GAS) port of AsmDebugger.asm
|
|
*
|
|
* STUB ONLY. Every symbol below is an EMPTY placeholder that just returns, so
|
|
* the module links while the real debugger assembly is ported. The Windows
|
|
* build keeps using AsmDebugger.asm (MASM) verbatim -- this file is Kbuild-only
|
|
* and is never added to any .vcxproj. The "-linux" suffix keeps the GAS port
|
|
* visibly distinct from the MASM original, matching the hyperhv Asm*-linux.S
|
|
* stubs and symbol-linux.cpp etc.
|
|
*
|
|
* TODO(Linux): translate the real bodies from AsmDebugger.asm (MASM to GAS/AT&T).
|
|
* - AsmDebuggerCustomCodeHandler / AsmDebuggerConditionCodeHandler dispatch to
|
|
* a user-supplied code buffer and marshal 3-4 args; a bare ret only satisfies
|
|
* the linker and returns garbage in %rax.
|
|
* - AsmDebuggerSpinOnThread is the halted-core spin loop; the stub returns
|
|
* immediately instead of spinning.
|
|
*/
|
|
#include <linux/linkage.h>
|
|
|
|
.text
|
|
|
|
SYM_FUNC_START(AsmDebuggerCustomCodeHandler)
|
|
ret /* TODO(Linux): port from AsmDebugger.asm */
|
|
SYM_FUNC_END(AsmDebuggerCustomCodeHandler)
|
|
|
|
SYM_FUNC_START(AsmDebuggerConditionCodeHandler)
|
|
ret /* TODO(Linux): port from AsmDebugger.asm */
|
|
SYM_FUNC_END(AsmDebuggerConditionCodeHandler)
|
|
|
|
SYM_FUNC_START(AsmDebuggerSpinOnThread)
|
|
ret /* TODO(Linux): port from AsmDebugger.asm */
|
|
SYM_FUNC_END(AsmDebuggerSpinOnThread)
|