Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc64/sparc64 Set CPU_UPAID when enabling timer i...
details: https://anonhg.NetBSD.org/src/rev/393b1e58374e
branches: trunk
changeset: 553357:393b1e58374e
user: petrov <petrov%NetBSD.org@localhost>
date: Wed Oct 15 05:16:36 2003 +0000
description:
Set CPU_UPAID when enabling timer interrupts.
diffstat:
sys/arch/sparc64/sparc64/clock.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 62a475044993 -r 393b1e58374e sys/arch/sparc64/sparc64/clock.c
--- a/sys/arch/sparc64/sparc64/clock.c Wed Oct 15 03:49:57 2003 +0000
+++ b/sys/arch/sparc64/sparc64/clock.c Wed Oct 15 05:16:36 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: clock.c,v 1.63 2003/08/30 04:07:56 nakayama Exp $ */
+/* $NetBSD: clock.c,v 1.64 2003/10/15 05:16:36 petrov Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -55,7 +55,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.63 2003/08/30 04:07:56 nakayama Exp $");
+__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.64 2003/10/15 05:16:36 petrov Exp $");
#include "opt_multiprocessor.h"
@@ -727,7 +727,7 @@
stxa((vaddr_t)&timerreg_4u.t_timer[0].t_limit, ASI_NUCLEUS,
tmr_ustolim(tick)|TMR_LIM_IEN|TMR_LIM_PERIODIC|TMR_LIM_RELOAD);
stxa((vaddr_t)&timerreg_4u.t_mapintr[0], ASI_NUCLEUS,
- timerreg_4u.t_mapintr[0]|INTMAP_V);
+ timerreg_4u.t_mapintr[0]|INTMAP_V|(CPU_UPAID << INTMAP_TID_SHIFT));
#ifdef DEBUG
if (intrdebug)
@@ -739,7 +739,7 @@
stxa((vaddr_t)&timerreg_4u.t_timer[1].t_limit, ASI_NUCLEUS,
tmr_ustolim(statint)|TMR_LIM_IEN|TMR_LIM_RELOAD);
stxa((vaddr_t)&timerreg_4u.t_mapintr[1], ASI_NUCLEUS,
- timerreg_4u.t_mapintr[1]|INTMAP_V);
+ timerreg_4u.t_mapintr[1]|INTMAP_V|(CPU_UPAID << INTMAP_TID_SHIFT));
statmin = statint - (statvar >> 1);
Home |
Main Index |
Thread Index |
Old Index