mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-27 20:14:27 +01:00
userland: scope every header identifier with lkmc_
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
#include "common.h"
|
||||
|
||||
ENTRY
|
||||
LKMC_ENTRY
|
||||
|
||||
/* Save sp before push. */
|
||||
mov r4, sp
|
||||
@@ -19,13 +19,13 @@ ENTRY
|
||||
mov r7, 0
|
||||
mov r8, 0
|
||||
pop {r7, r8}
|
||||
ASSERT_EQ(r7, 1)
|
||||
ASSERT_EQ(r8, 2)
|
||||
LKMC_ASSERT_EQ(r7, 1)
|
||||
LKMC_ASSERT_EQ(r8, 2)
|
||||
|
||||
/* Check that stack pointer moved down by 8 bytes
|
||||
* (2 registers x 4 bytes each).
|
||||
*/
|
||||
sub r4, r5
|
||||
ASSERT_EQ(r4, 8)
|
||||
LKMC_ASSERT_EQ(r4, 8)
|
||||
|
||||
EXIT
|
||||
LKMC_EXIT
|
||||
|
||||
Reference in New Issue
Block a user