Re: Problems building xnu-792
Re: Problems building xnu-792
- Subject: Re: Problems building xnu-792
- From: Markus Hitter <email@hidden>
- Date: Mon, 9 May 2005 21:52:54 +0200
To answer a second time ...
Am 09.05.2005 um 05:49 schrieb William Kucharski:
This specific line translates to this line in osfmk/ppc/hw_vm.s:
rlwinm r12,r11,GV_HPAGE_SHIFT,GV_HPAGE_MASK
which SHOULD assemble to:
rlwinm r12,r11,31,23,28
according to the 10.4 mach_kernel.
[...]
#define GV_HPAGE_SHIFT (GV_PGIDX_SZ_LG2 - GV_GRPS_PPG_LG2)
[...]
calculates out as (3 - (12 - 5 + 3)))), or -1. Oooh.
After finally diving into Motorola's multi-thousand-pages PPC manuals,
I found rlwinm to be a bit shift operator and the third parameter is
the number of bits to be shifted.
This is a 5-bit parameter, so 31 == -1. It's a compiler missing
feature/bug.
After redefining GV_HPAGE_SHIFT in osfmk/ppc/mappings.h to 31 (works
for now) and a "make clean; make" the compile completed. Two missing
symbols in the final link stage left for enjoyment tomorrow.
Cheers,
Markus
- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden