Skip to content

Generic function for obtaining the privilege stack bounds for x86 #26865

@maksimmasalski

Description

@maksimmasalski

Describe the bug
arch.priv_stack_start is implemented only for ARM and ARC. Necessary to have a generic function for obtaining the privilege stack bounds for x86 too.
In other words, necessary to have an arch-neutral API for getting a pointer to the privilege mode stack, then there would not need to be any arch-specific code in this test case and it could be entirely cross-platform.

To Reproduce
Steps to reproduce the behavior:

  1. Try to use thread->arch.priv_stack_start somewhere in the code
  2. Build it for x86
  3. It can't build for x86, because that feature not implemented for x86

Expected behavior
Obtaining the privilege stack bounds must be implemented for all architectures.

Impact
For x86 no generic function for obtaining the privilege stack bounds

Environment (please complete the following information):

  • OS: Linux
  • Toolchain Zephyr SDK 0.11.4
  • Commit SHA d1f4a91

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions