site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com On May 8, 2005, at 8:37 AM, Markus Hitter wrote: The offending line is always similar: 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: calculates out as (3 - (12 - 5 + 3)))), or -1. Oooh. William Kucharski kucharsk@mac.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... 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. #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)) 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. :-) This email sent to site_archiver@lists.apple.com