Skip to content

xtensa: remove unnecessary padding in arch_mem_domain #71896

@ldmstm

Description

@ldmstm

Is your enhancement proposal related to a problem? Please describe.
The current definition of arch_mem_domain for the xtensa architecture (

uint32_t *ptables __aligned(CONFIG_MMU_PAGE_SIZE);
) forcefully aligns one of its members to a page boundary, adding unnecessary padding.

I suspect the intention behind this alignment is to indicate the pointer points to an MMU page-size aligned address, but instead it aligns the pointer storage itself.

Describe the solution you'd like
The __aligned directive needs to be removed.

Metadata

Metadata

Assignees

Labels

area: XtensaXtensa ArchitecturebugThe issue is a bug, or the PR is fixing a bugpriority: lowLow impact/importance bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions