Skip to contentSkip to conversation

FRV-arch nommu changes

PATCH New David Howells 1 participant 1 message Nov 16, 2004 ptrace support

lore
Share & tools
lore
#0 lore raw

PATCH 3/3 FRV-arch nommu changes

The attached patch changes the nommu bits of the FRV arch to incorporate the name changes made to the nommu core stuff.

---
warthog>diffstat nommu-frv-2610rc2mm1.diff

 arch/frv/kernel/ptrace.c |    6 +++---
 include/asm-frv/mmu.h    |    2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)
arch/frv/kernel/ptrace.c renamed from warthog/kernels/linux-2.6.10-rc2-mm1/arch/frv/kernel/ptrace.c +3 -3
diff -uNrp /warthog/kernels/linux-2.6.10-rc2-mm1/arch/frv/kernel/ptrace.c linux-2.6.10-rc2-mm1-frv/arch/frv/kernel/ptrace.c
@@ -87,10 +87,10 @@ static inline int is_user_addr_valid(str
 		return -EIO;
 	return 0;
 #else
-	struct mm_tblock_struct *tblock;
+	struct vm_list_struct *vml;
 
-	for (tblock = child->mm->context.tblock; tblock; tblock = tblock->next)
-		if (start >= tblock->vma->vm_start && start + len <= tblock->vma->vm_end)
+	for (vml = child->mm->context.vmlist; vml; vml = vml->next)
+		if (start >= vml->vma->vm_start && start + len <= vml->vma->vm_end)
 			return 0;
 
 	return -EIO;
include/asm-frv/mmu.h renamed from warthog/kernels/linux-2.6.10-rc2-mm1/include/asm-frv/mmu.h +1 -1
diff -uNrp /warthog/kernels/linux-2.6.10-rc2-mm1/include/asm-frv/mmu.h linux-2.6.10-rc2-mm1-frv/include/asm-frv/mmu.h
@@ -22,7 +22,7 @@ typedef struct {
 	unsigned long	dtlb_ptd_mapping;	/* [DAMR5] PTD mapping for dtlb cached PGE */
 
 #else
-	struct mm_tblock_struct	*tblock;
+	struct vm_list_struct	*vmlist;
 	unsigned long		end_brk;
 
 #endif