Skip to content

Commit cf94046

Browse files
committed
feat(MPU): Change default memory domain to D1 for buffer allocations
1 parent 2e19ce0 commit cf94046

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Inc/HALAL/Models/MPU.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,10 @@ struct MPUDomain {
121121
* @brief Constructs a Buffer entry for a type T.
122122
* @tparam T The type for which the buffer is requested. Must be a POD type.
123123
* @param type The memory type (Cached or NonCached).
124-
* @param domain The memory domain where the buffer should be allocated.
124+
* @param domain The memory domain where the buffer should be allocated (Defaults to D1, since it is the largest and fastest).
125125
* @param force_cache_alignment If true, forces the buffer to be cache line aligned (32 bytes, takes the rest as padding).
126126
*/
127-
consteval Buffer(MemoryType type = MemoryType::NonCached, MemoryDomain domain = MemoryDomain::D2, bool force_cache_alignment = false)
127+
consteval Buffer(MemoryType type = MemoryType::NonCached, MemoryDomain domain = MemoryDomain::D1, bool force_cache_alignment = false)
128128
: e{
129129
domain,
130130
type,

0 commit comments

Comments
 (0)