Date: Thu, 29 Aug 2002 17:29:53 -0700 (PDT) From: Peter Wemm <peter@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/sys param.h Message-ID: <200208300029.g7U0TrrW006459@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
peter 2002/08/29 17:29:53 PDT Modified files: sys/sys param.h Log: AARGH! btoc() is used in the MI buffer sizing routines to calculate the minimum of either physmem or KVA. But.. btoc() casts the address to (unsigned int). This is NOT GOOD on 64 bit machines and on alpha and ia64, this results in a buffer limit of around 500K (not megs). This causes extreme disk access problems on alpha and ia64. Since this cast is simply to ensure that it is unsigned, use 'vm_offset_t' instead. This is available because it is already defined in types.h. Alpha has been suffering from this for ages. It always felt like the caching wasn't working, and unfortunately it turned out that way. :-( Revision Changes Path 1.133 +1 -1 src/sys/sys/param.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200208300029.g7U0TrrW006459>