-
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.
m32r: Autogenerate offsets in struct thread_info
Maintaining offsets by hand is no fun. Signed-off-by: Richard Weinberger <richard@nod.at>
- Loading branch information
Richard Weinberger
committed
Apr 12, 2015
1 parent
7bd8301
commit 37f078f
Showing
4 changed files
with
17 additions
and
13 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
#include <generated/asm-offsets.h> |
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
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 +1,14 @@ | ||
/* Dummy asm-offsets.c file. Required by kbuild and ready to be used - hint! */ | ||
#include <linux/thread_info.h> | ||
#include <linux/kbuild.h> | ||
|
||
int foo(void) | ||
{ | ||
OFFSET(TI_TASK, thread_info, task); | ||
OFFSET(TI_FLAGS, thread_info, flags); | ||
OFFSET(TI_STATUS, thread_info, status); | ||
OFFSET(TI_CPU, thread_info, cpu); | ||
OFFSET(TI_PRE_COUNT, thread_info, preempt_count); | ||
OFFSET(TI_ADDR_LIMIT, thread_info, addr_limit); | ||
|
||
return 0; | ||
} |
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