mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-19 23:53:55 +00:00
Move context area definition to native_type
This commit is contained in:
committed by
Norman Feske
parent
62d81ae487
commit
ea38aad30e
@ -46,7 +46,7 @@ class Context_area_rm_session : public Genode::Rm_session
|
||||
|
||||
/* convert context-area-relative to absolute virtual address */
|
||||
addr_t addr = local_addr;
|
||||
addr += Thread_base::CONTEXT_AREA_VIRTUAL_BASE;
|
||||
addr += Native_config::context_area_virtual_base();
|
||||
|
||||
/* use anonymous mmap for allocating stack backing store */
|
||||
int flags = MAP_FIXED | MAP_ANONYMOUS | MAP_PRIVATE;
|
||||
|
@ -30,8 +30,8 @@ static inline void main_thread_bootstrap()
|
||||
using namespace Genode;
|
||||
|
||||
/* reserve context area */
|
||||
Genode::addr_t base = Thread_base::CONTEXT_AREA_VIRTUAL_BASE;
|
||||
Genode::size_t size = Thread_base::CONTEXT_AREA_VIRTUAL_SIZE;
|
||||
Genode::addr_t base = Native_config::context_area_virtual_base();
|
||||
Genode::size_t size = Native_config::context_area_virtual_size();
|
||||
if (lx_vm_reserve(base, size) != base)
|
||||
PERR("reservation of context area [%lx,%lx) failed",
|
||||
(unsigned long) base, (unsigned long) base + size);
|
||||
|
Reference in New Issue
Block a user