mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-18 02:40:08 +00:00
parent
98bf2dadb8
commit
eab8db228b
@ -30,7 +30,7 @@ namespace Genode {
|
||||
|
||||
static inline Parent_capability parent_cap()
|
||||
{
|
||||
Cap_index::id_t const local_name = (Cap_index::id_t)_parent_cap;
|
||||
Cap_index::id_t const local_name = (Cap_index::id_t)_parent_cap[0];
|
||||
|
||||
static Cap_index *i = cap_map().insert(local_name, Foc::PARENT_CAP);
|
||||
/*
|
||||
|
@ -111,6 +111,7 @@ namespace Genode {
|
||||
/**
|
||||
* Return length of null-terminated string in bytes
|
||||
*/
|
||||
__attribute((optimize("no-tree-loop-distribute-patterns")))
|
||||
inline size_t strlen(const char *s)
|
||||
{
|
||||
size_t res = 0;
|
||||
|
@ -41,6 +41,6 @@ extern unsigned char _initial_stack_base[];
|
||||
* capability prior the execution of the main thread. It corresponds to the
|
||||
* '_parent_cap' symbol defined in 'src/ld/genode.ld'.
|
||||
*/
|
||||
extern unsigned long _parent_cap;
|
||||
extern unsigned long _parent_cap[];
|
||||
|
||||
#endif /* _INCLUDE__BASE__CRT0_H_ */
|
||||
|
Loading…
Reference in New Issue
Block a user