Skip to contentSkip to conversation

Fixes to allow ARM to build in Linus' tree

PATCH New Russell King 1 participant 1 message Sep 5, 2003

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fixes to allow ARM to build in Linus' tree

Hi,

In addition to the MODULE_ALIAS_LDISC patch, the following changes to generic code are needed to allow ARM to build in Linus' tree.

The first is to add PT_SINGLESTEP to ptrace.h so we do the right thing when adding/removing breakpoint instructions into processes (see arch/arm/kernel/{signal.c,ptrace.c} for usage.)

The second is needed because pmd_clear() needs to flush the pmd. However, we can't include tlbflush.h into pgtable.h without causing a circular dependency (tlbflush.h needs vm_area_struct and mm_struct which are in mm.h, which needs pgtable.h.) swapfile.c seems to be the only file affected.

===== include/linux/ptrace.h 1.10 vs edited =====

include/linux/ptrace.h +1 -0
@@ -65,6 +65,7 @@
 #define PT_TRACE_EXIT	0x00000200
 
 #define PT_TRACE_MASK	0x000003f4
+#define PT_SINGLESTEP	0x80000000	/* single stepping (used on ARM) */
 
 #include <linux/compiler.h>		/* For unlikely.  */
 #include <linux/sched.h>		/* For struct task_struct.  */

===== mm/swapfile.c 1.83 vs edited =====

mm/swapfile.c +1 -0
@@ -25,6 +25,7 @@
 #include <linux/security.h>
 
 #include <asm/pgtable.h>
+#include <asm/tlbflush.h>
 #include <linux/swapops.h>
 
 spinlock_t swaplock = SPIN_LOCK_UNLOCKED;
Signature · 5 lines
Russell King ([email protected])	http://www.arm.linux.org.uk/personal/
Maintainer of:
  2.6 ARM Linux   - http://www.arm.linux.org.uk/
  2.6 PCMCIA      - http://pcmcia.arm.linux.org.uk/
  2.6 Serial core