Module Name: src Committed By: reinoud Date: Sat Jan 14 21:23:24 UTC 2012
Modified Files: src/sys/arch/usermode/include: cpu.h Log Message: Define astpending flag and the aston() setter To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/sys/arch/usermode/include/cpu.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/usermode/include/cpu.h diff -u src/sys/arch/usermode/include/cpu.h:1.6 src/sys/arch/usermode/include/cpu.h:1.7 --- src/sys/arch/usermode/include/cpu.h:1.6 Sat Aug 13 10:31:24 2011 +++ src/sys/arch/usermode/include/cpu.h Sat Jan 14 21:23:24 2012 @@ -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 <jmcne...@invisible.ca> @@ -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 @@ usermode_delay(unsigned int ms) 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)