forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-11 297b60346df8beafee954a0fd7c2d64f33f3b9bc
kernel/arch/x86/um/ptrace_64.c
....@@ -52,14 +52,6 @@
5252
5353 int putreg(struct task_struct *child, int regno, unsigned long value)
5454 {
55
-#ifdef TIF_IA32
56
- /*
57
- * Some code in the 64bit emulation may not be 64bit clean.
58
- * Don't take any chances.
59
- */
60
- if (test_tsk_thread_flag(child, TIF_IA32))
61
- value &= 0xffffffff;
62
-#endif
6355 switch (regno) {
6456 case R8:
6557 case R9:
....@@ -137,10 +129,7 @@
137129 unsigned long getreg(struct task_struct *child, int regno)
138130 {
139131 unsigned long mask = ~0UL;
140
-#ifdef TIF_IA32
141
- if (test_tsk_thread_flag(child, TIF_IA32))
142
- mask = 0xffffffff;
143
-#endif
132
+
144133 switch (regno) {
145134 case R8:
146135 case R9: