Hello:
According to the OKL4 document, L4_MapItem_Map could create a map item and
then ProcessMapItems could process each map item.
But in OKLinux i found like this:
After the execution:
L4_MapItem_Map(&map, seg, src_addr, virt_addr, PAGE_SHIFT, attrib, rwx);
if (L4_ProcessMapItem(context->space_id, map) == 0)
panic("L4_ProcessMapItem: map failed");
okl4_map_page=seg:0xe, src_addr:0x1ce000, virt_addr:0x3e008000, rwx=5,
size=1000, last_vstart=0x80e00000, space_id=1, attrib=3
I debug the kernel as this:
--- KD# User: Welcome ---
> memdump
Dump address [0x0]: 3e008000
3e008000 ######## ######## ######## ######## ######## ########
3e008010 ######## ######## ######## ######## ######## ########
3e008020 ######## ######## ######## ######## ######## ########
3e008030 ######## ######## ######## ######## ######## ########
3e008040 ######## ######## ######## ######## ######## ########
3e008050 ######## ######## ######## ######## ######## ########
3e008060 ######## ######## ######## ######## ######## ########
3e008070 ######## ######## ######## ######## ######## ########
3e008080 ######## ######## ######## ######## ######## ########
3e008090 ######## ######## ######## ######## ######## ########
3e0080a0 ######## ######## ######## ######## ######## ########
3e0080b0 ######## ######## ######## ######## ######## ########
3e0080c0 ######## ######## ######## ######## ######## ########
3e0080d0 ######## ######## ######## ######## ######## ########
3e0080e0 ######## ######## ######## ######## ######## ########
3e0080f0 ######## ######## ######## ######## ######## ########
Continue? (Continue/Quit) [continue]:
In my opinion after the map operation the virt_addr (3e008000) SHOULD NOT be
null. But in fact it is null. What is the hints in this phenomonon?
Thanks a lot.
Cheng Guanghui
_______________________________________________
Developer mailing list
[hidden email]
https://lists.okl4.org/mailman/listinfo/developer