We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93fcba1 commit 08bd587Copy full SHA for 08bd587
qiling/os/uefi/protocols/EfiSmmSwDispatch2Protocol.py
@@ -61,7 +61,7 @@ def hook_Register(ql: Qiling, address: int, params):
61
62
# a value of -1 indicates that the swsmi index for this handler is flexible and
63
# should be assigned by the protocol
64
- if idx == 0xffffffff:
+ if idx == ((1 << ql.archbit) - 1):
65
idx = next((i for i in range(1, MAXIMUM_SWI_VALUE) if i not in handlers), None)
66
67
if idx is None:
0 commit comments