Date: Thu, 8 Jun 2006 19:28:14 +0300 From: Kostik Belousov <kostikbel@gmail.com> To: freebsd-hackers@freebsd.org Subject: ppc(4) as module Message-ID: <20060608162814.GF54415@deviant.kiev.zoral.com.ua>
next in thread | raw e-mail | index | archive | help
--UBnjLfzoMQYIXCvq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Is there a reason for ppc(4) being only statically compiled in kernel driver ? It looks like it is trivial to modularize it. Some time ago I saw the thread about the ppc/acpi related troubles, that resolves into the acpi being the module, and ppc compiled into the kernel. I propose to make the ppc module. Below is the Makefile that "works for me". Index: sys/modules/Makefile =================================================================== RCS file: /usr/local/arch/ncvs/src/sys/modules/Makefile,v retrieving revision 1.490 diff -u -r1.490 Makefile --- sys/modules/Makefile 28 Apr 2006 05:23:10 -0000 1.490 +++ sys/modules/Makefile 8 Jun 2006 16:23:46 -0000 @@ -190,6 +190,7 @@ ${_pmc} \ portalfs \ ppbus \ + ppc \ ppi \ pps \ procfs \ After the patch, create the sys/modules/ppc directory and place there the Makefile: =========================== # $FreeBSD: src/sys/modules/ppc/Makefile,v 1.1 2003/11/19 05:08:26 kib Exp $ .PATH: ${.CURDIR}/../../dev/ppc KMOD= ppc SRCS= bus_if.h device_if.h ppbus_if.h isa_if.h pci_if.h serdev_if.h \ opt_ppc.h opt_isa.h \ ppc_acpi.c ppc_pci.c \ ppc.c ppc_isa.c ppc_puc.c .include <bsd.kmod.mk> =========================== Please, comment. --UBnjLfzoMQYIXCvq Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQFEiFAdC3+MBN1Mb4gRAj+jAJ0aaBMHYVn6KmDj7swG01PL5pZ/qwCgg5GD nY1DutbYn9L1XXQMe5LkVRQ= =MRTX -----END PGP SIGNATURE----- --UBnjLfzoMQYIXCvq--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060608162814.GF54415>