summaryrefslogtreecommitdiff
path: root/scripts/env2string.awk
diff options
context:
space:
mode:
authorJ. Neuschäfer <[email protected]>2026-01-01 17:41:55 +0100
committerTom Rini <[email protected]>2026-01-13 09:42:44 -0600
commit0b97991fa0e706ca4d9ba274ba9d06f43e4ee9ad (patch)
tree1bb51c9f155f235b85f0d4e6d05025934c42f4cb /scripts/env2string.awk
parent84fac64026556a0aba359fb10aa7875ed30ce6b1 (diff)
powerpc: mpc83xx: Check the size of peripheral structs
Peripheral registers on MPC83xx-series chips are declared in immap_83xx.h as a set of structs that ultimately fill the entire MMIO space of 1 MiB. This patch introduces a compile-time check of the size of each peripheral struct. The purpose of these checks is two-fold: 1. To quickly tell readers of the code the total size of each struct 2. To verify that the size does not change when a struct is edited If the size of a peripheral struct were to change by a few bytes due to an editing error, the result would be mayhem for all following peripherals, because all offsets would shift by the amount of the error. All new checks have been compile-tested. Signed-off-by: J. Neuschäfer <[email protected]>
Diffstat (limited to 'scripts/env2string.awk')
0 files changed, 0 insertions, 0 deletions