Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libpuffs Set high bit on server->kernel requests to bett...
details: https://anonhg.NetBSD.org/src/rev/9dc7114d57e0
branches: trunk
changeset: 750596:9dc7114d57e0
user: pooka <pooka%NetBSD.org@localhost>
date: Thu Jan 07 22:40:11 2010 +0000
description:
Set high bit on server->kernel requests to better differentiate
between the direction of the request.
diffstat:
lib/libpuffs/puffs.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 6f9c88962d11 -r 9dc7114d57e0 lib/libpuffs/puffs.c
--- a/lib/libpuffs/puffs.c Thu Jan 07 22:39:52 2010 +0000
+++ b/lib/libpuffs/puffs.c Thu Jan 07 22:40:11 2010 +0000
@@ -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;
Home |
Main Index |
Thread Index |
Old Index