Module Name: src
Committed By: matt
Date: Tue Jul 26 03:42:21 UTC 2011
Modified Files:
src/sys/arch/powerpc/booke [matt-nb5-pq3]: trap.c
Log Message:
netbsd-5 uses pool_put, not kmem_free for ucontexts
To generate a diff of this commit:
cvs rdiff -u -r1.1.2.3 -r1.1.2.4 src/sys/arch/powerpc/booke/trap.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/powerpc/booke/trap.c
diff -u src/sys/arch/powerpc/booke/trap.c:1.1.2.3 src/sys/arch/powerpc/booke/trap.c:1.1.2.4
--- src/sys/arch/powerpc/booke/trap.c:1.1.2.3 Mon Jan 17 07:45:58 2011
+++ src/sys/arch/powerpc/booke/trap.c Tue Jul 26 03:42:21 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: trap.c,v 1.1.2.3 2011/01/17 07:45:58 matt Exp $ */
+/* $NetBSD: trap.c,v 1.1.2.4 2011/07/26 03:42:21 matt Exp $ */
/*-
* Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -39,7 +39,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: trap.c,v 1.1.2.3 2011/01/17 07:45:58 matt Exp $");
+__KERNEL_RCSID(1, "$NetBSD: trap.c,v 1.1.2.4 2011/07/26 03:42:21 matt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -849,6 +849,6 @@
int error = cpu_setmcontext(l, &uc->uc_mcontext, uc->uc_flags);
KASSERT(error);
(void)error;
- kmem_free(uc, sizeof(ucontext_t));
+ pool_put(&lwp_uc_pool, uc);
upcallret(l);
}