base-nova: fix compile errors with GCC 8.3.0

Fixes #3325
This commit is contained in:
Christian Prochaska 2019-05-06 14:09:26 +02:00 committed by Christian Helmuth
parent 96627df4d4
commit 940ba9ba95
2 changed files with 2 additions and 2 deletions

View File

@ -163,7 +163,7 @@ namespace Nova {
unsigned long desc_addr = reinterpret_cast<unsigned long>(this) +
cpu_desc_offset + i * cpu_desc_size;
return reinterpret_cast<Cpu_desc const * const>(desc_addr);
return reinterpret_cast<Cpu_desc const *>(desc_addr);
}
bool is_cpu_enabled(unsigned i) const {

View File

@ -961,7 +961,7 @@ bool Mapped_mem_allocator::_map_local(addr_t virt_addr, addr_t phys_addr,
unsigned size)
{
/* platform_specific()->core_pd_sel() deadlocks if called from platform constructor */
Hip const &hip = *(Hip const * const)__initial_sp;
Hip const &hip = *(Hip const *)__initial_sp;
Genode::addr_t const core_pd_sel = hip.sel_exc;
map_local(core_pd_sel,