|
@@ -5,14 +5,13 @@
|
|
*/
|
|
*/
|
|
|
|
|
|
#include <linux/sched.h>
|
|
#include <linux/sched.h>
|
|
|
|
+#include <linux/kbuild.h>
|
|
|
|
|
|
/* Use marker if you need to separate the values later */
|
|
/* Use marker if you need to separate the values later */
|
|
-
|
|
|
|
|
|
+#undef DEFINE
|
|
#define DEFINE(sym, val, marker) \
|
|
#define DEFINE(sym, val, marker) \
|
|
asm volatile("\n->" #sym " %0 " #val " " #marker : : "i" (val))
|
|
asm volatile("\n->" #sym " %0 " #val " " #marker : : "i" (val))
|
|
|
|
|
|
-#define BLANK() asm volatile("\n->" : : )
|
|
|
|
-
|
|
|
|
int main(void)
|
|
int main(void)
|
|
{
|
|
{
|
|
DEFINE(__THREAD_info, offsetof(struct task_struct, stack),);
|
|
DEFINE(__THREAD_info, offsetof(struct task_struct, stack),);
|