Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/arm32 KERNEL_TEXT_BASE is not defined for ARM32...



details:   https://anonhg.NetBSD.org/src/rev/2199ddfddbf4
branches:  trunk
changeset: 546458:2199ddfddbf4
user:      scw <scw%NetBSD.org@localhost>
date:      Tue Apr 29 13:27:21 2003 +0000

description:
KERNEL_TEXT_BASE is not defined for ARM32_NEW_VM_LAYOUT.

diffstat:

 sys/arch/arm/arm32/db_interface.c |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (23 lines):

diff -r 74ac511e49fa -r 2199ddfddbf4 sys/arch/arm/arm32/db_interface.c
--- a/sys/arch/arm/arm32/db_interface.c Tue Apr 29 13:13:10 2003 +0000
+++ b/sys/arch/arm/arm32/db_interface.c Tue Apr 29 13:27:21 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db_interface.c,v 1.24 2003/04/28 01:54:49 briggs Exp $ */
+/*     $NetBSD: db_interface.c,v 1.25 2003/04/29 13:27:21 scw Exp $    */
 
 /* 
  * Copyright (c) 1996 Scott K. Stevens
@@ -313,7 +313,12 @@
        size_t loop;
 
        /* If any part is in kernel text, use db_write_text() */
-       if (addr >= KERNEL_TEXT_BASE && addr < (vaddr_t) etext) {
+#ifndef ARM32_NEW_VM_LAYOUT
+       if (addr >= KERNEL_TEXT_BASE && addr < (vaddr_t) etext)
+#else
+       if (addr >= KERNEL_BASE && addr < (vaddr_t) etext)
+#endif
+       {
                db_write_text(addr, size, data);
                return;
        }



Home | Main Index | Thread Index | Old Index