mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-24 14:33:38 +00:00
dm: added fix-me for guest e820 initialization
Added a fix-me for guest e820 initialization. Tracked-On: #5330 Signed-off-by: Qian Wang <qian1.wang@intel.com> Signed-off-by: Li Fei1 <fei1.li@intel.com>
This commit is contained in:
parent
8dfd59de5e
commit
57a6d35188
@ -268,6 +268,9 @@ acrn_create_e820_table(struct vmctx *ctx, struct e820_entry *e820)
|
|||||||
removed++;
|
removed++;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
/* Fix-Me: e820[LOWRAM_E820_ENTRY+2] can be used as RAM
|
||||||
|
only when ctx->lowmem is higher than PSRAM area.
|
||||||
|
also, the length should be adjusted to ctx->lowmem-baseaddr */
|
||||||
e820[LOWRAM_E820_ENTRY+2].type = E820_TYPE_RAM;
|
e820[LOWRAM_E820_ENTRY+2].type = E820_TYPE_RAM;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
14
devicemodel/include/ptct.h
Normal file
14
devicemodel/include/ptct.h
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (C) 2020 Intel Corporation. All rights reserved.
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef PTCT_H
|
||||||
|
#define PTCT_H
|
||||||
|
|
||||||
|
#define PSRAM_BASE_HPA 0x40080000UL
|
||||||
|
#define PSRAM_BASE_GPA 0x40080000UL
|
||||||
|
#define PSRAM_MAX_SIZE 0x00800000UL
|
||||||
|
|
||||||
|
#endif /* PTCT_H */
|
Loading…
Reference in New Issue
Block a user