summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMichal Simek <[email protected]>2026-07-08 08:53:53 +0200
committerMichal Simek <[email protected]>2026-08-12 06:54:37 +0200
commitfcf44934dfdd0d43eb8f08f413590a44cab3169d (patch)
treeca7a5d4925dc42f1d825795c8ebb9956a8322f08 /include
parent77bc0326456d9d6a83aa7adac201d1c97a008b61 (diff)
arm64: versal2: Make hardware.h assembly safe
The register address and bootmode defines in this header are useful from early assembly (e.g. lowlevel_init reading PMC_TAP_IDCODE), but the file could not be included from .S because the C-only declarations were not guarded. Reorder the header so all plain address/value defines are visible to both C and assembly, and move every C-only construct (the linux/bitops.h include, the register structs, the base pointer-cast macros and the platform enum) into a single #ifndef __ASSEMBLY__ block. No functional change for C consumers. Signed-off-by: Michal Simek <[email protected]> Link: https://patch.msgid.link/de4de47ea457b285c5870e7ba25b4baf554561e7.1783493630.git.michal.simek@amd.com
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions