mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-19 21:57:55 +00:00
hw: Use mtc_size from Cpu class for mtc::SIZE
This decouples the size of the mode transition control region from the minimal mapping size of the page tables implementation. Rather, the CPU architecture is able to specify the actual size. Rationale: For x86_64, we need the mtc region to span two pages in order to store all the tables required to perform the mode switch.
This commit is contained in:
parent
32521cfd71
commit
ebfe3d8ff0
@ -151,8 +151,7 @@ class Kernel::Mode_transition_control
|
||||
public:
|
||||
|
||||
enum {
|
||||
SIZE_LOG2 = Genode::Translation_table::MIN_PAGE_SIZE_LOG2,
|
||||
SIZE = 1 << SIZE_LOG2,
|
||||
SIZE = Cpu::mtc_size,
|
||||
VIRT_BASE = Cpu::exception_entry,
|
||||
ALIGN_LOG2 = Genode::Translation_table::ALIGNM_LOG2,
|
||||
ALIGN = 1 << ALIGN_LOG2,
|
||||
|
Loading…
Reference in New Issue
Block a user