summaryrefslogtreecommitdiff
path: root/BaseTools/Source/Python
diff options
context:
space:
mode:
authorDjordje Nedic <djordje.nedic@nextsilicon.com>2026-09-29 16:35:01 +0300
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2026-10-07 12:36:02 +0300
commitd97995e99cc52615feea79990fdf6f7dd50f2027 (patch)
tree3dca206610c480bc6e9a8c8fd0ec7e9546baaf48 /BaseTools/Source/Python
parent3278ad66117e1d0a4530ac411a644cb3624915bf (diff)
downloadedk2-d97995e99cc52615feea79990fdf6f7dd50f2027.tar.xz
DynamicTablesPkg/RiscV: Support IMSICs without guest interrupt files
ACPI 6.6 Table 5.57 requires NumGuestIds to be zero when no guest interrupt files are implemented. The FDT parser currently defaults the count to NumIds even when no guest index bits are present, and the MADT generator asserts on a zero count. Parse and validate the guest index width before deriving NumGuestIds. An absent riscv,guest-index-bits property defaults to zero, so emit zero guest identities for an absent or zero width without reading the unused riscv,num-guest-ids property. For a nonzero width, preserve the explicit guest identity count or its default from riscv,num-ids. Validate explicit counts before narrowing, including rejecting zero as required by the DT binding. Allow zero in the MADT generator while preserving the bounds and granularity checks for nonzero counts. The existing RINTC size calculation already yields one supervisor page for zero guest index bits and remains bounded by the DT reg extent. Signed-off-by: Djordje Nedic <djordje.nedic@nextsilicon.com>
Diffstat (limited to 'BaseTools/Source/Python')
0 files changed, 0 insertions, 0 deletions