Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump/librump Generate scheduling points in rump_pub calls.
details: https://anonhg.NetBSD.org/src/rev/297b10003388
branches: trunk
changeset: 748158:297b10003388
user: pooka <pooka%NetBSD.org@localhost>
date: Thu Oct 15 00:29:19 2009 +0000
description:
Generate scheduling points in rump_pub calls.
diffstat:
sys/rump/librump/makerumpif.sh | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diffs (49 lines):
diff -r 1afb7e1d52ef -r 297b10003388 sys/rump/librump/makerumpif.sh
--- a/sys/rump/librump/makerumpif.sh Thu Oct 15 00:28:46 2009 +0000
+++ b/sys/rump/librump/makerumpif.sh Thu Oct 15 00:29:19 2009 +0000
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: makerumpif.sh,v 1.3 2009/10/14 18:14:48 pooka Exp $
+# $NetBSD: makerumpif.sh,v 1.4 2009/10/15 00:29:19 pooka Exp $
#
# Copyright (c) 2009 Antti Kantee. All rights reserved.
#
@@ -67,9 +67,9 @@
' ${1} | awk -F\| -v rumptop=${RUMPTOP} '
function fileheaders(file, srcstr)
{
- printf("/*\t$NetBSD: makerumpif.sh,v 1.3 2009/10/14 18:14:48 pooka Exp $\t*/\n\n") > file
+ printf("/*\t$NetBSD: makerumpif.sh,v 1.4 2009/10/15 00:29:19 pooka Exp $\t*/\n\n") > file
printf("/*\n * Automatically generated. DO NOT EDIT.\n") > file
- genstr = "$NetBSD: makerumpif.sh,v 1.3 2009/10/14 18:14:48 pooka Exp $"
+ genstr = "$NetBSD: makerumpif.sh,v 1.4 2009/10/15 00:29:19 pooka Exp $"
gsub("\\$", "", genstr)
printf(" * from: %s\n", srcstr) > file
printf(" * by: %s\n", genstr) > file
@@ -138,6 +138,7 @@
printf("#include <sys/systm.h>\n") > gencalls
printf("\n#include <rump/rump.h>\n") > gencalls
printf("#include <rump/%s>\n\n", pubfile) > gencalls
+ printf("#include \"rump_private.h\"\n", privfile) > gencalls
printf("#include \"%s\"\n\n", privfile) > gencalls
printf("void __dead rump_%s_unavailable(void);\n", \
myname) > gencalls
@@ -187,7 +188,7 @@
if (!voidret) {
printf("\t%s rv;\n", funtype) > gencalls
}
- printf("\n\t") > gencalls
+ printf("\n\trump_schedule();\n\t") > gencalls
if (!voidret)
printf("rv = ") > gencalls
printf("rump_%s(", funname) > gencalls
@@ -196,7 +197,7 @@
if (i < narg)
printf(", ") > gencalls
}
- printf(");\n") > gencalls
+ printf(");\n\trump_unschedule();\n") > gencalls
if (!voidret)
printf("\n\treturn rv;\n") > gencalls
printf("}\n") > gencalls
Home |
Main Index |
Thread Index |
Old Index