arch: Check RSDP address does not go past memory

The setup_mptables() call which is not used on ACPI builds has a side
effect of testing whether there was enough RAM which one of the unit
tests was relying on. Add a similar check for the RSDP address.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford
2020-05-11 16:55:38 +01:00
parent 1c44e917f9
commit bb8d19bbd6
2 changed files with 10 additions and 1 deletions

View File

@@ -45,6 +45,8 @@ pub enum Error {
InitramfsAddress,
/// Error writing module entry to guest memory.
ModlistSetup(vm_memory::GuestMemoryError),
/// RSDP Beyond Guest Memory
RSDPPastRamEnd,
}
pub type Result<T> = result::Result<T, Error>;