Thanks to both Albert and Andrew for your solutions. A simple -xmodel=kernel 
solved the problem. Did I miss this in the documentation someplace?

On 23-Feb-2010, at 10:24 PM, Albert Lee wrote:

> On Tue, 23 Feb 2010 16:50:15 -0700, Rick McNeal <[email protected]>
> wrote:
>> I've got a driver which I'm trying to load and it's failing.
>> /var/adm/messages has many similar messages like the following:
>> 
>> Feb 23 22:18:29 opensolaris genunix: [ID 370954 kern.notice] symbol
>> shared_umem_cookie: 
>> Feb 23 22:18:29 opensolaris genunix: [ID 780480 kern.notice] value
>> 0xffffffffc0075f38 does not fit
>> Feb 23 22:18:29 opensolaris genunix: [ID 286029 kern.notice] relocation
>> error: R_AMD64_32: 
>> Feb 23 22:18:29 opensolaris genunix: [ID 720415 kern.notice] file
>> /platform/i86hvm/kernel/drv/amd64/ivm: 
>> 
>> I figure this has got to be something related to how I'm building the
>> driver. I started looking around and nothing indicates that any special
>> flags must be used other than the obvious like the following
>> 
> 
> Yup, AMD64 kernel code needs to be built with -xmodel=kernel to use the
> right address ranges.
> 
> -Albert
> 

----
Rick McNeal
[email protected]

“Never blame a legislative body for not doing something. When they do nothing, 
they don’t hurt anybody. When they do something is when they become dangerous.” 
—Will Rogers


_______________________________________________
driver-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/driver-discuss

Reply via email to