From 7e970c18f85f99acc678d90128b6e01dce1bf273 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Fri, 01 Nov 2024 02:40:12 +0000
Subject: [PATCH] gmac get mac form eeprom
---
kernel/arch/x86/include/asm/thread_info.h | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/kernel/arch/x86/include/asm/thread_info.h b/kernel/arch/x86/include/asm/thread_info.h
index 012c8ee..ecd2701 100644
--- a/kernel/arch/x86/include/asm/thread_info.h
+++ b/kernel/arch/x86/include/asm/thread_info.h
@@ -52,16 +52,20 @@
struct task_struct;
#include <asm/cpufeature.h>
#include <linux/atomic.h>
+#include <dovetail/thread_info.h>
struct thread_info {
unsigned long flags; /* low level flags */
u32 status; /* thread synchronous flags */
+ struct oob_thread_state oob_state; /* co-kernel thread state */
};
#define INIT_THREAD_INFO(tsk) \
{ \
.flags = 0, \
}
+
+#define ti_local_flags(__ti) ((__ti)->status)
#else /* !__ASSEMBLY__ */
@@ -97,8 +101,10 @@
#define TIF_MEMDIE 20 /* is terminating due to OOM killer */
#define TIF_POLLING_NRFLAG 21 /* idle is polling for TIF_NEED_RESCHED */
#define TIF_IO_BITMAP 22 /* uses I/O bitmap */
+#define TIF_RETUSER 23 /* INBAND_TASK_RETUSER is pending */
#define TIF_FORCED_TF 24 /* true if TF in eflags artificially */
#define TIF_BLOCKSTEP 25 /* set when we want DEBUGCTLMSR_BTF */
+#define TIF_MAYDAY 26 /* emergency trap pending */
#define TIF_LAZY_MMU_UPDATES 27 /* task is updating the mmu lazily */
#define TIF_SYSCALL_TRACEPOINT 28 /* syscall tracepoint instrumentation */
#define TIF_ADDR32 29 /* 32-bit address space on 64 bits */
@@ -126,7 +132,9 @@
#define _TIF_SLD (1 << TIF_SLD)
#define _TIF_POLLING_NRFLAG (1 << TIF_POLLING_NRFLAG)
#define _TIF_IO_BITMAP (1 << TIF_IO_BITMAP)
+#define _TIF_RETUSER (1 << TIF_RETUSER)
#define _TIF_FORCED_TF (1 << TIF_FORCED_TF)
+#define _TIF_MAYDAY (1 << TIF_MAYDAY)
#define _TIF_BLOCKSTEP (1 << TIF_BLOCKSTEP)
#define _TIF_LAZY_MMU_UPDATES (1 << TIF_LAZY_MMU_UPDATES)
#define _TIF_SYSCALL_TRACEPOINT (1 << TIF_SYSCALL_TRACEPOINT)
@@ -226,6 +234,16 @@
* have to worry about atomic accesses.
*/
#define TS_COMPAT 0x0002 /* 32bit syscall active (64BIT)*/
+/* bits 2 and 3 reserved for compat */
+#define TS_OOB 0x0010 /* Thread is running out-of-band */
+#define TS_DOVETAIL 0x0020 /* Dovetail notifier enabled */
+#define TS_OFFSTAGE 0x0040 /* Thread is in-flight to OOB context */
+#define TS_OOBTRAP 0x0080 /* Handling a trap from OOB context */
+
+#define _TLF_OOB TS_OOB
+#define _TLF_DOVETAIL TS_DOVETAIL
+#define _TLF_OFFSTAGE TS_OFFSTAGE
+#define _TLF_OOBTRAP TS_OOBTRAP
#ifndef __ASSEMBLY__
#ifdef CONFIG_COMPAT
--
Gitblit v1.6.2