25 lines
617 B
C++
25 lines
617 B
C++
|
/*
|
||
|
* \brief Kernel cpu context specific implementation
|
||
|
* \author Stefan Kalkowski
|
||
|
* \date 2015-02-11
|
||
|
*/
|
||
|
|
||
|
/*
|
||
|
* Copyright (C) 2015 Genode Labs GmbH
|
||
|
*
|
||
|
* This file is part of the Genode OS framework, which is distributed
|
||
|
* under the terms of the GNU General Public License version 2.
|
||
|
*/
|
||
|
|
||
|
/* core includes */
|
||
|
#include <kernel/cpu.h>
|
||
|
|
||
|
void Kernel::Cpu_context::_init(size_t const stack_size, addr_t const table)
|
||
|
{
|
||
|
r12 = stack_size;
|
||
|
cpu_exception = Genode::Cpu::Ttbr0::init(table);
|
||
|
sctlr = Cpu::Sctlr::init_virt_kernel();
|
||
|
ttbrc = Cpu::Ttbcr::init_virt_kernel();
|
||
|
mair0 = Cpu::Mair0::init_virt_kernel();
|
||
|
}
|