{"action":"opened","issue":{"url":"https://api.github.com/repos/genodelabs/genode/issues/1993","repository_url":"https://api.github.com/repos/genodelabs/genode","labels_url":"https://api.github.com/repos/genodelabs/genode/issues/1993/labels{/name}","comments_url":"https://api.github.com/repos/genodelabs/genode/issues/1993/comments","events_url":"https://api.github.com/repos/genodelabs/genode/issues/1993/events","html_url":"https://github.com/genodelabs/genode/issues/1993","id":157934371,"number":1993,"title":"Unification of base headers across all platforms","user":{"login":"nfeske","id":1268399,"avatar_url":"https://avatars.githubusercontent.com/u/1268399?v=3","gravatar_id":"","url":"https://api.github.com/users/nfeske","html_url":"https://github.com/nfeske","followers_url":"https://api.github.com/users/nfeske/followers","following_url":"https://api.github.com/users/nfeske/following{/other_user}","gists_url":"https://api.github.com/users/nfeske/gists{/gist_id}","starred_url":"https://api.github.com/users/nfeske/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nfeske/subscriptions","organizations_url":"https://api.github.com/users/nfeske/orgs","repos_url":"https://api.github.com/users/nfeske/repos","events_url":"https://api.github.com/users/nfeske/events{/privacy}","received_events_url":"https://api.github.com/users/nfeske/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/genodelabs/genode/labels/cleanup","name":"cleanup","color":"1b7921"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-01T15:19:26Z","updated_at":"2016-06-01T15:19:26Z","closed_at":null,"body":"In order to build kernel-agnostic binaries we have to make sure that no header files included by such executables are tainted with kernel-specific types. During the base-API rennovation #1832, I already unified the most headers of the base API across the supported base platforms. However, a few tricky artifacts remain, most importantly the `Native_capability` definition residing in the platform-specific native_types.h header. We should get rid of this header and leave merely one `Native_capability` definition in the generic base/native_capability.h header. Once we reach this state, the type should ultimately move into `base/capability.h` and renamed to `Untyped_capability`.\r\n\r\nThe biggest obstacle of this change are the vastly different ways how the capability-lifetime management is handled. Each platform with support for kernel-protected capabilities has a custom mechanism. All other platforms use a common template that carries platform-specific payload (such as thread IDs) as member variables. To solve this issue, we will need to establish one unified lifetime-management mechanism instead. I plan to base this mechanism on the capability-space implementation I originally created for seL4. While designing it, I deliberately separated the kernel-specific parts from the generic parts and kept the public headers clean from seL4 types. So this may be a good start."}}
{"actor":{"display_login":"nfeske"}}