Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/usermode/include Define astpending flag and the ast...



details:   https://anonhg.NetBSD.org/src/rev/ab8826bf8bc5
branches:  trunk
changeset: 772741:ab8826bf8bc5
user:      reinoud <reinoud%NetBSD.org@localhost>
date:      Sat Jan 14 21:23:24 2012 +0000

description:
Define astpending flag and the aston() setter

diffstat:

 sys/arch/usermode/include/cpu.h |  17 +++++++++++------
 1 files changed, 11 insertions(+), 6 deletions(-)

diffs (38 lines):

diff -r 63cf05326935 -r ab8826bf8bc5 sys/arch/usermode/include/cpu.h
--- a/sys/arch/usermode/include/cpu.h   Sat Jan 14 21:21:48 2012 +0000
+++ b/sys/arch/usermode/include/cpu.h   Sat Jan 14 21:23:24 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.h,v 1.6 2011/08/13 10:31:24 jmcneill Exp $ */
+/* $NetBSD: cpu.h,v 1.7 2012/01/14 21:23:24 reinoud Exp $ */
 
 /*-
  * Copyright (c) 2007 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -36,6 +36,16 @@
 
 extern void    cpu_signotify(struct lwp *);
 extern void    cpu_need_proftick(struct lwp *);
+extern void    userret(struct lwp *);
+
+#define        curcpu()        usermode_curcpu()
+#define cpu_number()   0
+
+#define cpu_proc_fork(p1, p2)
+
+extern int     astpending;
+#define aston(ci) (astpending++)
+
 
 struct cpu_info {
        device_t        ci_dev;
@@ -66,11 +76,6 @@
        thunk_usleep(ms);
 }
 
-#define        curcpu()        usermode_curcpu()
-#define cpu_number()   0
-
-#define cpu_proc_fork(p1, p2)
-
 #define delay(ms)      usermode_delay(ms)
 #define DELAY(ms)      usermode_delay(ms)
 



Home | Main Index | Thread Index | Old Index