Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using unsupported exports from 8.0.0 and 8.1.0 kernels



On 5/18/05, Terry Greeniaus <email@hidden> wrote:

> I work for one of the upgrade card companies and our KEXT requires
> access to a few of the in-kernel globals that no longer seem to be
> exported without linking directly against com.apple.kernel (they aren't
> even in com.apple.kpi.unsupported).  Specifically, we need access to the
> following globals:
> 
> _PerProcTable
> _cpu_number
> _real_ncpus (*)
> _thread_bind
> _thread_block_reason

If you look at <osfmk/ppc/lowmem_vectors.s>, it appears that there is
a pointer to the PerProcTable permanently located at 0x5010 in memory.
So you could probably pick it up dynamically from there (rather than
trying to link to it). Note that this is new in Tiger (at least, I
didn't see it in Panther).

It also used to be that SPRG 0 and SPRG 2 stored a pointer to some
processor-specific structures, but I haven't checked Tiger yet to see
if that is still the case.

I don't know how to deal with the other ones ...
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-drivers mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-drivers/email@hidden

This email sent to email@hidden

References: 
 >Using unsupported exports from 8.0.0 and 8.1.0 kernels (From: Terry Greeniaus <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.