Hi Steve,

1. Not sure what you count as simple, but assuming the initial thread knows it's own address space layout then it can easily work out which frame number this corresponds to in bootinfo. Typically this would be something like

seL4_CPtr frame = bootinfo->userImageFrames.stat + ((uintptr_t)vaddr - (uintptr_t)&__executable_start) / 4096);

You can see a slightly more complicated version of this in the capdl-loader (https://github.com/seL4/capdl/blob/master/capdl-loader-app/src/main.c#L324)

2. Looks like when GetAddress was added nobody noticed to update that in the manual. Thanks for spotting, will fix.

Adrian

On Tue 13-Sep-2016 7:26 PM, sixpackgurkenwasser@use.startmail.com wrote:
Hello,
I've got several questions.
1. Is there a simple way to relate a virtual address in the initial threads address space to the corresponding frame cap in the BootInfo?

2. In 8.2.2 of the manual it is stated in that "seL4 provides no way to obtain the physical address of a page from its capability". Isn't that exactly what the GetAddress method of a Page object does(10.4.14)?

Cheers,
Steve

_______________________________________________
Devel mailing list
Devel@sel4.systems
https://sel4.systems/lists/listinfo/devel