mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-30 05:24:25 +01:00
userland x86_64: implement ASSERT_MEMCMP
This commit is contained in:
12
userland/arch/x86_64/lkmc_assert_memcmp_fail.S
Normal file
12
userland/arch/x86_64/lkmc_assert_memcmp_fail.S
Normal file
@@ -0,0 +1,12 @@
|
||||
/* https://github.com/cirosantilli/linux-kernel-module-cheat#userland-assembly */
|
||||
|
||||
#include "common.h"
|
||||
|
||||
.data
|
||||
var0: .long 0x11111111, 0x22222222, 0x33333333, 0x44444444
|
||||
var1: .long 0x11111111, 0x22222222, 0x33333333, 0x44444444
|
||||
var2: .long 0x11111111, 0x22222223, 0x23333333, 0x44444444
|
||||
ENTRY
|
||||
ASSERT_MEMCMP(var0, var1, $0x10)
|
||||
ASSERT_MEMCMP(var0, var2, $0x10)
|
||||
EXIT
|
||||
Reference in New Issue
Block a user