[prev in list] [next in list] [prev in thread] [next in thread] 

List:       haiku-commits
Subject:    [haiku-commits] Re: BRANCH xyzzy-github.x86_64 - src/system/boot/platform/bios_ia32 src/system/kerne
From:       Axel Dörfler <axeld () pinc-software ! de>
Date:       2012-06-28 14:21:28
Message-ID: 4FEC6868.7010408 () pinc-software ! de
[Download RAW message or body]

On 27.06.2012 21:02, Ingo Weinhold wrote:
> Axel Dörfler wrote:
> > Either that, or have the architecture dependent code set a static offset
> > that applies to all FixedWidthPointers. That would have the surprising
> > element that you'd have to set it twice, in the boot loader, and the
> > kernel, as the static code changes in between, though.
> I don't quite understand what you mean. What I had in mind was to change the \
> implementation of FixedWidthPointer::Pointer() to something like:

Yes, and that's probably the better idea, too :-)

What I meant was something like (in pseudo code):
	FixedWidthPointer::SetPointerOffset(x)
	{
		sOffset = x;
	}

	FixedWidthPointer::Pointer()
	{
		return fValue + sOffset;
	}

> > Besides that, it's almost certain that there will be other 64 bit
> > architectures in the future, indeed :-)
> Sure. I expect a 32 bit boot loader and 64 bit kernel to be the exception, though.

Definitely, though they will all share the FixedWidthPointer.

Bye,
    Axel.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic