mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-15 21:58:24 +00:00
Don't memcpy the parent capability. Fix #144.
To give the platform developer more freedom in how the Native_capability class is internally implemented (e.g. turning it into a smart-pointer), this patch removes the memcpy operation, when transfering the parent-capability to a new process from the generic code, and let the implementation of the platform-specific Native_capability decide how the transfer has to be done. Please refer to issue #144.
This commit is contained in:
committed by
Norman Feske
parent
fa377f0df5
commit
9992efed03
@ -122,7 +122,7 @@ static addr_t _setup_elf(Parent_capability parent_cap,
|
||||
* data segment
|
||||
*/
|
||||
if (!parent_info) {
|
||||
memcpy(ptr, &parent_cap, sizeof(parent_cap));
|
||||
parent_cap.copy_to(ptr);
|
||||
parent_info = true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user