Date: Thu, 31 Jul 2025 08:05:33 -0700
On Thursday, 31 July 2025 08:08:51 Pacific Daylight Time zxuiji wrote:
> So we're designing for lala land where any and all silly systems exist are
> we? Just define a minimum based on real world standards which as far as I'm
> aware is 512 minimum which is reasonable enough for a `MIN_PAGE_SIZE 512`
> macro and certainly reasonable for a `MAX_INVALID_ADDRESS ((void*)512)`
> macro
Why do we need to change anything? What's the motivation?
We know that effectively the first and last pages are unavailable for any
system. So if you need to do some pointer math and know they are invalid, you
can.
But why does the *standard* need that?
> So we're designing for lala land where any and all silly systems exist are
> we? Just define a minimum based on real world standards which as far as I'm
> aware is 512 minimum which is reasonable enough for a `MIN_PAGE_SIZE 512`
> macro and certainly reasonable for a `MAX_INVALID_ADDRESS ((void*)512)`
> macro
Why do we need to change anything? What's the motivation?
We know that effectively the first and last pages are unavailable for any
system. So if you need to do some pointer math and know they are invalid, you
can.
But why does the *standard* need that?
-- Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org Principal Engineer - Intel Platform & System Engineering
Received on 2025-07-31 15:05:39