mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-23 01:24:47 +07:00
fa41b1c7df
Signed-off-by: Richard Weinberger <richard@nod.at>
25 lines
660 B
C
25 lines
660 B
C
/*
|
|
* Generate definitions needed by assembly language modules.
|
|
* This code generates raw asm output which is post-processed
|
|
* to extract and format the required data.
|
|
*/
|
|
|
|
#include <linux/mm.h>
|
|
#include <linux/sched.h>
|
|
#include <linux/thread_info.h>
|
|
#include <linux/kbuild.h>
|
|
|
|
void foo(void)
|
|
{
|
|
OFFSET(TI_task, thread_info, task);
|
|
OFFSET(TI_flags, thread_info, flags);
|
|
OFFSET(TI_cpu, thread_info, cpu);
|
|
OFFSET(TI_preempt_count, thread_info, preempt_count);
|
|
OFFSET(TI_rar_saved, thread_info, rar_saved);
|
|
OFFSET(TI_rsr_saved, thread_info, rsr_saved);
|
|
BLANK();
|
|
OFFSET(TSK_active_mm, task_struct, active_mm);
|
|
BLANK();
|
|
OFFSET(MM_pgd, mm_struct, pgd);
|
|
}
|