From owner-svn-src-user@FreeBSD.ORG Mon Aug 2 12:14:17 2010 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 88A871065695; Mon, 2 Aug 2010 12:14:17 +0000 (UTC) (envelope-from nwhitehorn@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 774B78FC16; Mon, 2 Aug 2010 12:14:17 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o72CEHpf018533; Mon, 2 Aug 2010 12:14:17 GMT (envelope-from nwhitehorn@svn.freebsd.org) Received: (from nwhitehorn@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o72CEHOP018522; Mon, 2 Aug 2010 12:14:17 GMT (envelope-from nwhitehorn@svn.freebsd.org) Message-Id: <201008021214.o72CEHOP018522@svn.freebsd.org> From: Nathan Whitehorn Date: Mon, 2 Aug 2010 12:14:17 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r210754 - user/nwhitehorn/ps3/powerpc/powerpc X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Aug 2010 12:14:17 -0000 Author: nwhitehorn Date: Mon Aug 2 12:14:17 2010 New Revision: 210754 URL: http://svn.freebsd.org/changeset/base/210754 Log: Leftover change from the old branch to make multi-platform kernels actually work. The method table of the platform KOBJ needs to be reset in order to reuse it. Modified: user/nwhitehorn/ps3/powerpc/powerpc/platform.c Modified: user/nwhitehorn/ps3/powerpc/powerpc/platform.c ============================================================================== --- user/nwhitehorn/ps3/powerpc/powerpc/platform.c Mon Aug 2 12:13:33 2010 (r210753) +++ user/nwhitehorn/ps3/powerpc/powerpc/platform.c Mon Aug 2 12:14:17 2010 (r210754) @@ -154,9 +154,10 @@ platform_probe_and_attach() } /* - * We can't free the KOBJ, since it is static. Luckily, - * this has no ill effects since it gets reset every time. + * We can't free the KOBJ, since it is static. Reset the ops + * member of this class so that we can come back later. */ + platp->ops = NULL; } if (plat_def_impl == NULL)