userland x86_64: implement ASSERT_MEMCMP

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-05-08 00:00:10 +00:00
parent 8e1fd9991b
commit 53ef7281a4
6 changed files with 36 additions and 28 deletions

View 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