Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Oct 2001 11:05:56 -0700 (PDT)
From:      Matt Dillon <dillon@earth.backplane.com>
To:        Julian Elischer <julian@elischer.org>
Cc:        hackers@FreeBSD.ORG, developers@FreeBSD.ORG
Subject:   Re: Patch to allow 4.2 driver .o to run on 4.4
Message-ID:  <200110121805.f9CI5uY34981@earth.backplane.com>
References:   <Pine.BSF.4.21.0110111604380.37124-100000@InterJet.elischer.org>

next in thread | previous in thread | raw e-mail | index | archive | help

:Sorry about the crosspost but I estimate that this reaches those who need
:to see this..
:
:There was a change in the 4.x kernel.h on June 15 that broke backwards
:compatibility for binary distributed driver files
:(distributed as .o files)  It was an MFC of a patch by peter..
:but we didn't understand the ramifications in 4.x.

    This seems very reasonable to me... a nice quick and easy solution.

					-Matt


:my fix (a reversion in part) is as follows:
:
:Index: kernel.h
:===================================================================
:RCS file: /repos/cvs/mod/freebsd/src/sys/sys/kernel.h,v
:retrieving revision 1.63.2.5
:diff -u -r1.63.2.5 kernel.h
:--- kernel.h	2001/07/26 23:27:53	1.63.2.5
:+++ kernel.h	2001/10/11 21:30:03
:@@ -113,13 +113,13 @@
: 	SI_SUB_VM		= 0x1000000,	/* virtual memory system
:init*/
: 	SI_SUB_KMEM		= 0x1800000,	/* kernel memory*/
: 	SI_SUB_KVM_RSRC		= 0x1A00000,	/* kvm operational
:limits*/
:-	SI_SUB_CPU		= 0x2000000,	/* CPU resource(s)*/
:-	SI_SUB_KLD		= 0x2100000,	/* KLD and module setup */
:...
:
:The result of this was that old .o  drivers are initialise at sequence 
:0x2400000 but the device framework is not initialised until 0x3100000.
:
:my patch shifts all the numbers back to below that that binary
:...
:Julian

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200110121805.f9CI5uY34981>