
|
[openbeosnetteam]
||
[Date Prev]
[05-2002 Date Index]
[Date Next]
||
[Thread Prev]
[05-2002 Thread Index]
[Thread Next]
[openbeosnetteam] Re: It doesn't look like you will be getting kernel support on ppc
- From: "Nathan Whitehorn" <nathan.whitehorn@xxxxxxxxxxx>
- To: openbeosnetteam@xxxxxxxxxxxxx
- Date: Mon, 06 May 2002 16:13:34 EDT (-0400)
> > > The PowerPC R5 kernel does not export the following symbols,
> > > necessary
> > > for the kernel version of the net stack to build. (It also does
> > > not
> > > seem possible to build a userland version now. Am I missing
> > > something?)
> >
> > I'm not usually one to reply to my own e-mails, but I had to vent
> > my
> > rage at noticing that the kernel *has* these functions, just Be
> > somehow
> > forgot to add them to the export table(!).
>
> So you can access them with some ugly hacks, it's just for testing
> anyway.
> Or you're just open a fixed set of modules; that should be no problem
> atm.
Yes, I discovered the most wonderfully ugly hack of all time. Find a
random kernel function, get a pointer to it, subtract the offset (as
found in the xMAP) to get the relocation offset, and add the offset of
the function you want to call. Cast to the appropriate function type,
and call by pointer. Incredibly ugly, but it works.
-Nathan
--
Fortune Cookie Says:
A Los Angeles judge ruled that "a citizen may snore with immunity in
his own home, even though he may be in possession of unusual and
exceptional ability in that particular field."
|

|