mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-04-06 04:16:53 +00:00
Some firmware (e.g. UEFI) uses RTC CMOS to fetch the system's memory configuration. Put lowmem / highmem info in the designated area. This is a port of Bhyve vRTC's user-space logic. v1 -> v2: * move KB/MB/GB to macros.h * move nvram offset definitions to rtc.h Tracked-On: #1390 Signed-off-by: Peter Fang <peter.fang@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
21 lines
334 B
C
21 lines
334 B
C
/*
|
|
* Copyright (C) 2018 Intel Corporation. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*
|
|
*/
|
|
|
|
#ifndef _MACROS_H_
|
|
#define _MACROS_H_
|
|
|
|
#undef __CONCAT
|
|
|
|
#define _CONCAT_(a, b) a ## b
|
|
#define __CONCAT(a, b) _CONCAT_(a, b)
|
|
|
|
#define KB (1024UL)
|
|
#define MB (1024 * 1024UL)
|
|
#define GB (1024 * 1024 * 1024UL)
|
|
|
|
#endif
|