-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Richard Weinberger <richard@nod.at>
- Loading branch information
Al Viro
authored and
Richard Weinberger
committed
Nov 2, 2011
1 parent
c75361b
commit 7095850
Showing
3 changed files
with
21 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,21 @@ | ||
#ifdef __i386__ | ||
#include "kernel-offsets_32.h" | ||
#else | ||
#include "kernel-offsets_64.h" | ||
#endif | ||
#include <linux/stddef.h> | ||
#include <linux/sched.h> | ||
#include <linux/elf.h> | ||
#include <linux/crypto.h> | ||
#include <asm/mman.h> | ||
|
||
#define DEFINE(sym, val) \ | ||
asm volatile("\n->" #sym " %0 " #val : : "i" (val)) | ||
|
||
#define STR(x) #x | ||
#define DEFINE_STR(sym, val) asm volatile("\n->" #sym " " STR(val) " " #val: : ) | ||
|
||
#define BLANK() asm volatile("\n->" : : ) | ||
|
||
#define OFFSET(sym, str, mem) \ | ||
DEFINE(sym, offsetof(struct str, mem)); | ||
|
||
void foo(void) | ||
{ | ||
#include <common-offsets.h> | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.