Module Name: src Committed By: pooka Date: Thu Jan 7 22:40:11 UTC 2010
Modified Files: src/lib/libpuffs: puffs.c Log Message: Set high bit on server->kernel requests to better differentiate between the direction of the request. To generate a diff of this commit: cvs rdiff -u -r1.101 -r1.102 src/lib/libpuffs/puffs.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libpuffs/puffs.c diff -u src/lib/libpuffs/puffs.c:1.101 src/lib/libpuffs/puffs.c:1.102 --- src/lib/libpuffs/puffs.c:1.101 Sat Dec 5 20:54:10 2009 +++ src/lib/libpuffs/puffs.c Thu Jan 7 22:40:11 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: puffs.c,v 1.101 2009/12/05 20:54:10 pooka Exp $ */ +/* $NetBSD: puffs.c,v 1.102 2010/01/07 22:40:11 pooka Exp $ */ /* * Copyright (c) 2005, 2006, 2007 Antti Kantee. All Rights Reserved. @@ -31,7 +31,7 @@ #include <sys/cdefs.h> #if !defined(lint) -__RCSID("$NetBSD: puffs.c,v 1.101 2009/12/05 20:54:10 pooka Exp $"); +__RCSID("$NetBSD: puffs.c,v 1.102 2010/01/07 22:40:11 pooka Exp $"); #endif /* !lint */ #include <sys/param.h> @@ -154,7 +154,7 @@ uint64_t rv; PU_LOCK(); - rv = pu->pu_nextreq++; + rv = pu->pu_nextreq++ | 1ULL<<63; PU_UNLOCK(); return rv;