• M
    efi: Pass boot services variable info to runtime code · cc5a080c
    Matthew Garrett 提交于
    EFI variables can be flagged as being accessible only within boot services.
    This makes it awkward for us to figure out how much space they use at
    runtime. In theory we could figure this out by simply comparing the results
    from QueryVariableInfo() to the space used by all of our variables, but
    that fails if the platform doesn't garbage collect on every boot. Thankfully,
    calling QueryVariableInfo() while still inside boot services gives a more
    reliable answer. This patch passes that information from the EFI boot stub
    up to the efi platform code.
    Signed-off-by: NMatthew Garrett <matthew.garrett@nebula.com>
    Signed-off-by: NMatt Fleming <matt.fleming@intel.com>
    cc5a080c
efi.h 4.6 KB