Re: Problems building xnu-792
Re: Problems building xnu-792
- Subject: Re: Problems building xnu-792
- From: William Kucharski <email@hidden>
- Date: Sun, 8 May 2005 21:49:39 -0600
On May 8, 2005, at 8:37 AM, Markus Hitter wrote:
The offending line is always similar:
1362: rlwinm r12,r11,-1,504
There's a bug remaining in the source somewhere, as the "-1" is an
illegal
third parameter to rlwinm.
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.
The "504" is correct, but the "-1" obviously is not.
GV_HPAGE_SHIFT is defined in osfmk/ppc/mappings.h as:
#define GV_HPAGE_SHIFT (GV_PGIDX_SZ_LG2 - GV_GRPS_PPG_LG2)
which according to:
#define GV_PGIDX_SZ_LG2 3 /* 64-bit Hash-table-page
physical-addrress index entry size */
#define GV_SLOT_SZ_LG2 5 /* 32 bytes per slot (mapping size) */
#define GV_PGIDX_SZ_LG2 3 /* 64-bit Hash-table-page
physical-addrress index entry size */
#define GV_PAGE_SZ_LG2 12 /* 4k-byte hash-table-page size */
#define GV_GRPS_PPG_LG2 (GV_PAGE_SZ_LG2 - (GV_SLOT_SZ_LG2 +
GV_SLOTS_LG2))
calculates out as (3 - (12 - 5 + 3)))), or -1. Oooh.
I dug through the source and found the only place GV_PGIDX_SZ_LG2 is
used directly,
and it IS supposed to be 3, so there's obviously something wonky
somewhere here. :-)
William Kucharski
email@hidden
_______________________________________________
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