mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-14 13:18:19 +00:00
base: introduce caching attributes (fix #1184)
On ARM it's relevant to not only distinguish between ordinary cached memory and write-combined one, but also having non-cached memory too. To insert the appropriated page table entries e.g.: in the base-hw kernel, we need to preserve the information about the kind of memory from allocation until the pager resolves a page fault. Therefore, this commit introduces a new Cache_attribute type, and replaces the write_combined boolean with the new type where necessary.
This commit is contained in:
committed by
Norman Feske
parent
9580954d81
commit
786fe805da
@ -58,6 +58,15 @@ extern void *memcpy(void *dest, const void *src, __SIZE_TYPE__);
|
||||
#undef max
|
||||
#endif
|
||||
#undef printf
|
||||
|
||||
/*
|
||||
* Turn '#define cacheable' (as defined in the codezero headers) into an enum
|
||||
* value. Otherwise, the define will conflict with variables named 'cacheable'.
|
||||
*/
|
||||
enum { _codezero_cacheable = cacheable /* #define value */ };
|
||||
#undef cacheable
|
||||
enum { cacheable = _codezero_cacheable };
|
||||
|
||||
} }
|
||||
|
||||
namespace Codezero {
|
||||
|
Reference in New Issue
Block a user