mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/2] MN10300: Don't set the dirty bit in the DTLB entries in the TLB-miss handler
@ 2009-06-11 12:08 David Howells
  2009-06-11 12:08 ` [PATCH 2/2] MN10300: Add utrace/tracehooks support David Howells
  0 siblings, 1 reply; 2+ messages in thread
From: David Howells @ 2009-06-11 12:08 UTC (permalink / raw)
  To: torvalds, akpm; +Cc: linux-kernel, linux-am33-list, David Howells

Remove the special handling for the Data TLB entry dirty bit in the TLB-miss
handler.  As the code stands, all that it does is to cause us to take a second
data address exception to set the dirty bit.  Instead, we can just let
pte_mkdirty() set the bit.

Signed-off-by: David Howells <dhowells@redhat.com>
---

 arch/mn10300/mm/tlb-mn10300.S |   18 ------------------
 1 files changed, 0 insertions(+), 18 deletions(-)


diff --git a/arch/mn10300/mm/tlb-mn10300.S b/arch/mn10300/mm/tlb-mn10300.S
index 7892080..7095147 100644
--- a/arch/mn10300/mm/tlb-mn10300.S
+++ b/arch/mn10300/mm/tlb-mn10300.S
@@ -165,24 +165,6 @@ ENTRY(itlb_aerror)
 ENTRY(dtlb_aerror)
 	and	~EPSW_NMID,epsw
 	add	-4,sp
-	mov	d1,(sp)
-
-	movhu	(MMUFCR_DFC),d1			# is it the initial valid write
-						# to this page?
-	and	MMUFCR_xFC_INITWR,d1
- 	beq	dtlb_pagefault			# jump if not
-
-	mov	(DPTEL),d1			# set the dirty bit
-						# (don't replace with BSET!)
-	or	_PAGE_DIRTY,d1
-	mov	d1,(DPTEL)
-	mov	(sp),d1
-	add	4,sp
- 	rti
-
-	ALIGN
-dtlb_pagefault:
-	mov	(sp),d1
 	SAVE_ALL
 	add	-4,sp				# need to pass three params
 


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-06-11 12:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-11 12:08 [PATCH 1/2] MN10300: Don't set the dirty bit in the DTLB entries in the TLB-miss handler David Howells
2009-06-11 12:08 ` [PATCH 2/2] MN10300: Add utrace/tracehooks support David Howells

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®