parent
96627df4d4
commit
940ba9ba95
|
@ -163,7 +163,7 @@ namespace Nova {
|
||||||
|
|
||||||
unsigned long desc_addr = reinterpret_cast<unsigned long>(this) +
|
unsigned long desc_addr = reinterpret_cast<unsigned long>(this) +
|
||||||
cpu_desc_offset + i * cpu_desc_size;
|
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 {
|
bool is_cpu_enabled(unsigned i) const {
|
||||||
|
|
|
@ -961,7 +961,7 @@ bool Mapped_mem_allocator::_map_local(addr_t virt_addr, addr_t phys_addr,
|
||||||
unsigned size)
|
unsigned size)
|
||||||
{
|
{
|
||||||
/* platform_specific()->core_pd_sel() deadlocks if called from platform constructor */
|
/* 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;
|
Genode::addr_t const core_pd_sel = hip.sel_exc;
|
||||||
|
|
||||||
map_local(core_pd_sel,
|
map_local(core_pd_sel,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user