hw: get rid of kernel_support.cc

ref #935
This commit is contained in:
Martin Stein 2013-11-05 11:08:05 +01:00 committed by Norman Feske
parent f4b46fe55c
commit d24ed9783b
12 changed files with 26 additions and 44 deletions

View File

@ -15,6 +15,7 @@
#include <board.h>
#include <platform.h>
#include <pic.h>
#include <cpu.h>
#include <timer.h>
#include <kernel/irq.h>
@ -83,3 +84,6 @@ Native_region * Platform::_core_only_mmio_regions(unsigned const i)
};
return i < sizeof(_regions)/sizeof(_regions[0]) ? &_regions[i] : 0;
}
Cpu::User_context::User_context() { cpsr = Psr::init_user(); }

View File

@ -15,6 +15,7 @@
#include <platform.h>
#include <board.h>
#include <pic.h>
#include <cpu.h>
#include <kernel/irq.h>
using namespace Genode;
@ -97,3 +98,5 @@ Native_region * Platform::_core_only_mmio_regions(unsigned const i)
return i < sizeof(_regions)/sizeof(_regions[0]) ? &_regions[i] : 0;
}
Cpu::User_context::User_context() { cpsr = Psr::init_user(); }

View File

@ -15,6 +15,7 @@
#include <platform.h>
#include <board.h>
#include <pic.h>
#include <cpu.h>
#include <kernel/irq.h>
using namespace Genode;
@ -102,3 +103,5 @@ Native_region * Platform::_core_only_mmio_regions(unsigned const i)
return i < sizeof(_regions)/sizeof(_regions[0]) ? &_regions[i] : 0;
}
Cpu::User_context::User_context() { cpsr = Psr::init_user(); }

View File

@ -1,20 +0,0 @@
/*
* \brief Kernel function implementations specific for Cortex A9 CPUs
* \author Stefan Kalkowski
* \date 2012-10-11
*/
/*
* Copyright (C) 2012-2013 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 <cpu.h>
using namespace Genode;
Cpu::User_context::User_context() { cpsr = Psr::init_user(); }

View File

@ -95,3 +95,6 @@ Native_region * Platform::_core_only_mmio_regions(unsigned const i)
};
return i < sizeof(_regions)/sizeof(_regions[0]) ? &_regions[i] : 0;
}
Cpu::User_context::User_context() { cpsr = Psr::init_user(); }

View File

@ -91,3 +91,6 @@ Native_region * Platform::_core_only_mmio_regions(unsigned const i)
};
return i < sizeof(_regions)/sizeof(_regions[0]) ? &_regions[i] : 0;
}
Cpu::User_context::User_context() { cpsr = Psr::init_user(); }

View File

@ -14,6 +14,7 @@
/* core includes */
#include <platform.h>
#include <board.h>
#include <cpu.h>
#include <kernel/irq.h>
using namespace Genode;
@ -83,3 +84,5 @@ Native_region * Platform::_core_only_mmio_regions(unsigned const i)
return i < sizeof(_regions)/sizeof(_regions[0]) ? &_regions[i] : 0;
}
Cpu::User_context::User_context() { cpsr = Psr::init_user(); }

View File

@ -52,7 +52,6 @@ SRC_CC += console.cc \
kernel/signal_receiver.cc \
kernel/irq.cc \
rm_session_support.cc \
kernel_support.cc \
trustzone.cc \
pager.cc \
_main.cc

View File

@ -94,3 +94,6 @@ Native_region * Platform::_core_only_mmio_regions(unsigned const i)
};
return i < sizeof(_regions)/sizeof(_regions[0]) ? &_regions[i] : 0;
}
Cpu::User_context::User_context() { cpsr = Psr::init_user(); }

View File

@ -1,21 +0,0 @@
/*
* \brief Kernel-specific implementations for Versatile Express with TZ
* \author Stefan Kalkowski
* \date 2012-10-11
*/
/*
* Copyright (C) 2012-2013 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 <cpu.h>
using namespace Genode;
Cpu::User_context::User_context() {
cpsr = Psr::init_user_with_trustzone(); }

View File

@ -13,9 +13,9 @@
/* core includes */
#include <board.h>
#include <cpu.h>
#include <platform.h>
#include <pic/vea9x4_trustzone.h>
#include <cpu/cortex_a9.h>
#include <kernel/irq.h>
using namespace Genode;
@ -93,3 +93,6 @@ Native_region * Platform::_core_only_mmio_regions(unsigned const i)
};
return i < sizeof(_regions)/sizeof(_regions[0]) ? &_regions[i] : 0;
}
Cpu::User_context::User_context() { cpsr = Psr::init_user_with_trustzone(); }

View File

@ -20,7 +20,6 @@ SRC_CC += vm_session_component.cc
# declare source paths
vpath platform_support.cc $(REP_DIR)/src/core/vea9x4/trustzone
vpath platform_services.cc $(REP_DIR)/src/core/vea9x4/trustzone
vpath kernel_support.cc $(REP_DIR)/src/core/vea9x4/trustzone
vpath trustzone.cc $(REP_DIR)/src/core/vea9x4/trustzone
vpath vm_session_component.cc $(REP_DIR)/src/core