Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/arch/sh3/gen Took me some time to figure that getco...



details:   https://anonhg.NetBSD.org/src/rev/2f3d8d41b2e5
branches:  trunk
changeset: 586885:2f3d8d41b2e5
user:      uwe <uwe%NetBSD.org@localhost>
date:      Wed Jan 04 20:47:24 2006 +0000

description:
Took me some time to figure that getcontext does _UC_MACHINE_INTRV(oucp) = 0
for us, so add a comment.  While here use official _UC_MACHINE_SET_PC
macro in another comment.

diffstat:

 lib/libc/arch/sh3/gen/swapcontext.S |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r 2bc80112939f -r 2f3d8d41b2e5 lib/libc/arch/sh3/gen/swapcontext.S
--- a/lib/libc/arch/sh3/gen/swapcontext.S       Wed Jan 04 20:44:57 2006 +0000
+++ b/lib/libc/arch/sh3/gen/swapcontext.S       Wed Jan 04 20:47:24 2006 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: swapcontext.S,v 1.4 2006/01/04 19:13:48 uwe Exp $      */
+/*     $NetBSD: swapcontext.S,v 1.5 2006/01/04 20:47:24 uwe Exp $      */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
 
 #include <machine/asm.h>
 #if defined(SYSLIBC_SCCS) && !defined(lint)
-       RCSID("$NetBSD: swapcontext.S,v 1.4 2006/01/04 19:13:48 uwe Exp $")
+       RCSID("$NetBSD: swapcontext.S,v 1.5 2006/01/04 20:47:24 uwe Exp $")
 #endif /* SYSLIBC_SCCS and not lint */
 
 /*
@@ -55,8 +55,9 @@
        tst     r0, r0
        bf      3f                      /* return error from getcontext */
 
+       /* Note: getcontext does _UC_MACHINE_INTRV(oucp) = 0 for us */
        mov.l   @sp, r0
-       mov.l   r0, @(36 + 1 * 4, r1)   /* _UC_MACHINE_PC(oucp) = pr */
+       mov.l   r0, @(36 + 1 * 4, r1)   /* _UC_MACHINE_SET_PC(oucp, pr) */
        mov.l   .L_setcontext, r2
 2:     CALL    r2                      /* setcontext(ucp) */
         mov.l  @(4, sp), r4



Home | Main Index | Thread Index | Old Index