From 58b54606c85b342b90ce7c512334fc13f6200dc4 Mon Sep 17 00:00:00 2001 From: reinoud Date: Sat, 14 Jan 2012 21:23:24 +0000 Subject: [PATCH] Define astpending flag and the aston() setter --- sys/arch/usermode/include/cpu.h | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/sys/arch/usermode/include/cpu.h b/sys/arch/usermode/include/cpu.h index cc346e693b23..383013b00bf0 100644 --- a/sys/arch/usermode/include/cpu.h +++ b/sys/arch/usermode/include/cpu.h @@ -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 @@ -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)