Re: [PATCH] sparc32: support atomic64_t

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Sam Ravnborg <sam@xxxxxxxxxxxx>
Date: Thu, 29 Dec 2011 12:09:13 +0100

> Without atomic64_t support .data had address xxx47000.
> This address is nicely aligned to a page boundary.
> But SPARC32 require that the thread data are aligned to a 2*PAGE_SIZE boundary,
> so therefore this is rounded up to xxx48000 - thus wasting 1000=4096 bytes.
> 
> When I applied the patch to enable atomic64_t then .data got address xx48000
> which is aligned to a 2*PAGE_SIZE - and no extra page wasted for alignment.
> 
> .data had a higher address because .rodata had a higher address in the atomic64_t case.
> This expalins why we used less data despite using more data!

Thanks for figuring this out.

We probably have some strange alignment gaps that could be less
consistently wasteful, both for sparc32 and sparc64, with some careful
work.

But this is pretty low priority stuff. :)

--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux