Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern revert previous fix. it's not 100% correct and som...
details: https://anonhg.NetBSD.org/src/rev/09d1fa646510
branches: trunk
changeset: 762517:09d1fa646510
user: pooka <pooka%NetBSD.org@localhost>
date: Tue Feb 22 13:04:22 2011 +0000
description:
revert previous fix. it's not 100% correct and some compilers setups
complain about the generated code.
pointed out by mrg
diffstat:
sys/kern/makesyscalls.sh | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diffs (25 lines):
diff -r c57ce51734b3 -r 09d1fa646510 sys/kern/makesyscalls.sh
--- a/sys/kern/makesyscalls.sh Tue Feb 22 13:00:05 2011 +0000
+++ b/sys/kern/makesyscalls.sh Tue Feb 22 13:04:22 2011 +0000
@@ -1,5 +1,5 @@
#! /bin/sh -
-# $NetBSD: makesyscalls.sh,v 1.113 2011/02/22 10:33:12 pooka Exp $
+# $NetBSD: makesyscalls.sh,v 1.114 2011/02/22 13:04:22 pooka Exp $
#
# Copyright (c) 1994, 1996, 2000 Christopher G. Demetriou
# All rights reserved.
@@ -815,12 +815,10 @@
argarg, argsize) > rumpcalls
if (type != "NOERR") {
printf("\trsys_seterrno(error);\n") > rumpcalls
- printf("\tif (error) {\n") > rumpcalls
- printf("\t\t*(%s *)rval = (%s)-1;\n\t}\n", \
- returntype, returntype) > rumpcalls
+ printf("\tif (error) {\n\t\trval[0] = -1;\n\t}\n") > rumpcalls
}
if (returntype != "void") {
- printf("\treturn *(%s *)rval;\n", returntype) > rumpcalls
+ printf("\treturn rval[0];\n") > rumpcalls
}
printf("}\n") > rumpcalls
printf("rsys_alias(%s%s,rump_enosys)\n", \
Home |
Main Index |
Thread Index |
Old Index