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:
Reto Buerki 2015-03-12 10:05:23 +01:00 committed by Christian Helmuth
parent 32521cfd71
commit ebfe3d8ff0
1 changed files with 1 additions and 2 deletions

View File

@ -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,