Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/usermode/usermode make sure splraise doesn't lower ...
details: https://anonhg.NetBSD.org/src/rev/fa0783d0bae2
branches: trunk
changeset: 769267:fa0783d0bae2
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Mon Sep 05 11:12:51 2011 +0000
description:
make sure splraise doesn't lower spl, and spllower doesn't raise it
diffstat:
sys/arch/usermode/usermode/intr.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r b420c6b44ef2 -r fa0783d0bae2 sys/arch/usermode/usermode/intr.c
--- a/sys/arch/usermode/usermode/intr.c Mon Sep 05 11:10:36 2011 +0000
+++ b/sys/arch/usermode/usermode/intr.c Mon Sep 05 11:12:51 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: intr.c,v 1.1 2011/09/04 21:08:18 jmcneill Exp $ */
+/* $NetBSD: intr.c,v 1.2 2011/09/05 11:12:51 jmcneill Exp $ */
/*-
* Copyright (c) 2011 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.1 2011/09/04 21:08:18 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.2 2011/09/05 11:12:51 jmcneill Exp $");
#include <sys/types.h>
@@ -47,7 +47,8 @@
usermode_sigalrm_blocked = true;
}
- usermode_x = x;
+ if (x > usermode_x)
+ usermode_x = x;
return oldx;
}
@@ -60,5 +61,6 @@
usermode_sigalrm_blocked = false;
}
- usermode_x = x;
+ if (usermode_x > x)
+ usermode_x = x;
}
Home |
Main Index |
Thread Index |
Old Index