mirror of
https://github.com/Qortal/Brooklyn.git
synced 2025-01-30 23:02:18 +00:00
a94b3d14aa
Changes included (and more): 1. Dynamic RAM merge 2. Real-time page scan and allocation 3. Cache compression 4. Real-time IRQ checks 5. Dynamic I/O allocation for Java heap 6. Java page migration 7. Contiguous memory allocation 8. Idle pages tracking 9. Per CPU RAM usage tracking 10. ARM NEON scalar multiplication library 11. NEON/ARMv8 crypto extensions 12. NEON SHA, Blake, RIPEMD crypto extensions 13. Parallel NEON crypto engine for multi-algo based CPU stress reduction
25 lines
538 B
C
25 lines
538 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
#include <linux/linkage.h>
|
|
#include <linux/error-injection.h>
|
|
#include <linux/kprobes.h>
|
|
#include <linux/objtool.h>
|
|
|
|
asmlinkage void just_return_func(void);
|
|
|
|
asm(
|
|
".text\n"
|
|
".type just_return_func, @function\n"
|
|
".globl just_return_func\n"
|
|
"just_return_func:\n"
|
|
ANNOTATE_NOENDBR
|
|
ASM_RET
|
|
".size just_return_func, .-just_return_func\n"
|
|
);
|
|
|
|
void override_function_with_return(struct pt_regs *regs)
|
|
{
|
|
regs->ip = (unsigned long)&just_return_func;
|
|
}
|
|
NOKPROBE_SYMBOL(override_function_with_return);
|