ppc(4) as module

Kostik Belousov kostikbel at gmail.com
Thu Jun 8 18:25:10 UTC 2006


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20060608/8548e3ce/attachment.pgp


More information about the freebsd-hackers mailing list