diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2022-06-29 20:36:39 -0400 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2022-10-06 21:00:54 +0200 |
commit | 11e1cbbdbde8269e7cdb0e150f25639223bdd3e6 (patch) | |
tree | c3e1c99cb4502c2c5f02af7eb601de6a358d7177 /src/common/address_space.h | |
parent | fa342cae227666c861806b9bf63e4286aff1e4d7 (diff) |
address_space: Rename va_start to virt_start
Avoids conflicting with the va_start macro
Diffstat (limited to 'src/common/address_space.h')
-rw-r--r-- | src/common/address_space.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/address_space.h b/src/common/address_space.h index bf649018c..9222b2fdc 100644 --- a/src/common/address_space.h +++ b/src/common/address_space.h @@ -116,7 +116,7 @@ private: using Base = FlatAddressSpaceMap<VaType, UnmappedVa, bool, false, false, AddressSpaceBits>; public: - explicit FlatAllocator(VaType va_start, VaType va_limit = Base::VaMaximum); + explicit FlatAllocator(VaType virt_start, VaType va_limit = Base::VaMaximum); /** * @brief Allocates a region in the AS of the given size and returns its address @@ -134,12 +134,12 @@ public: void Free(VaType virt, VaType size); VaType GetVAStart() const { - return va_start; + return virt_start; } private: /// The base VA of the allocator, no allocations will be below this - VaType va_start; + VaType virt_start; /** * The end address for the initial linear allocation pass |