Re: [RFC V2 3/3] mm: Replace pgtable entry prints with new format
From: David Hildenbrand (Arm)
Date: Thu Jul 02 2026 - 05:51:54 EST
On 7/2/26 11:04, Anshuman Khandual wrote:
>
> On 02/07/26 1:02 PM, David Hildenbrand (Arm) wrote:
>> On 7/2/26 06:29, Anshuman Khandual wrote:
>>>
>>>
>>>
>>> Could this be made sizeof(u128) instead ? But overall this
>>> approach looks good.
>>
>> The would be cleaner. We might have to protect this case by something like
>>
>> #defined(__SIZEOF_INT128__)
>> case sizeof(u128):
>> ...
>> break;
>> #endif
>> default:
>
> Right - realized that just a bit later :) Not all
> platforms and corresponding tool chains might not
> support u128.
If we actually go for u128, could that make printing easier?
Like, cast the buffer to an u128 and then simply shift the u64 values into place?
I wasn't quite sure if what I do in my patch is actually correct.
--
Cheers,
David