From 15faf75456d86dff2cf2e51961871e9c808216ea Mon Sep 17 00:00:00 2001
From: Kevin Bracey <kbracey@gitlab.riscosopen.org>
Date: Mon, 23 Oct 2000 10:22:11 +0000
Subject: [PATCH] More touchscreen tuning. Screen memory increase crash fixed.

---
 s/ARM600 | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/s/ARM600 b/s/ARM600
index 1f18f8d0..851dffe0 100644
--- a/s/ARM600
+++ b/s/ARM600
@@ -297,7 +297,10 @@ BangCam ROUT
         ADD     r6, r6, r4, LSR #12     ; put back the ones which were too many
         ADD     r0, r0, r6, LSL #12     ; move on address by the number of pages left
 BangCamAltEntry
+        LDR     r4, =DuffEntry          ; check for requests to map a page to nowhere
         ADR     r1, PPLTrans
+        TEQ     r4, r3                  ; don't actually map anything to nowhere
+        MOVEQ   pc, lr
         AND     r4, r11, #3             ; first use PPL bits
         LDR     r1, [r1, r4, LSL #2]    ; get PPL bits and SmallPage indicator
 
-- 
GitLab