Skip to content

Commit

Permalink
xtensa: remove mem_domain excess padding
Browse files Browse the repository at this point in the history
The ptables field in arch_mem_domain for Xtensa has excessive
padding as it is incorrectly marked with needing page size
alignment. This is simply a pointer and not the actual page
table so there is no need for that alignment. So remove it.

Fixes #71896

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
(cherry picked from commit eb9fc64)
  • Loading branch information
dcpleung authored and nashif committed Nov 14, 2024
1 parent 558658e commit 8bae4f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/zephyr/arch/xtensa/arch.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ extern "C" {

struct arch_mem_domain {
#ifdef CONFIG_XTENSA_MMU
uint32_t *ptables __aligned(CONFIG_MMU_PAGE_SIZE);
uint32_t *ptables;
uint8_t asid;
bool dirty;
#endif
Expand Down

0 comments on commit 8bae4f2

Please sign in to comment.