No subject


Mon Dec 22 09:37:56 EST 2008


space.

You may want to try 'D' instead of 'd'. That way you can specify in what sp=
ace you want the dump made.

Good luck,
Gabi Voiculescu

--- On Sat, 8/1/09, Guanghui, Cheng <cheng.guanghui.ml at gmail.com> wrote:

From: Guanghui, Cheng <cheng.guanghui.ml at gmail.com>
Subject: [okl4-developer] Memory mapping in the OKL4
To: developer at okl4.org
Date: Saturday, August 1, 2009, 5:37 PM

Hello:
=A0=A0=A0 According to the OKL4 document,=0A L4_MapItem_Map could create a =
map item and=20
then ProcessMapItems could process each map item.
=A0=A0=A0 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) =3D=3D 0)
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 panic("L4_ProcessMapItem: map failed");

okl4_map_page=3Dseg:0xe, src_addr:0x1ce000, virt_addr:0x3e008000, rwx=3D5,=
=20
size=3D1000, last_vstart=3D0x80e00000, space_id=3D1, attrib=3D3

I debug the kernel as this:
--- KD# User: Welcome ---
> memdump
Dump address [0x0]: 3e008000
3e008000=A0 ######## ######## ######## ########=A0=A0=A0######## ########
3e008010=A0 ######## ######## ######## ########=A0=A0=A0######## ########
3e008020=A0 ######## ######## ######## ########=A0=A0=A0######## ########
3e008030=A0 ########=0A ######## ######## ########=A0=A0=A0######## #######=
#
3e008040=A0 ######## ######## ######## ########=A0=A0=A0######## ########
3e008050=A0 ######## ######## ######## ########=A0=A0=A0######## ########
3e008060=A0 ######## ######## ######## ########=A0=A0=A0######## ########
3e008070=A0 ######## ######## ######## ########=A0=A0=A0######## ########
3e008080=A0 ######## ######## ######## ########=A0=A0=A0######## ########
3e008090=A0 ######## ######## ######## ########=A0=A0=A0######## ########
3e0080a0=A0 ######## ######## ######## ########=A0=A0=A0######## ########
3e0080b0=A0 ######## ######## ######## ########=A0=A0=A0######## ########
3e0080c0=A0 ######## ######## ######## ########=A0=A0=A0######## ########
3e0080d0=A0 ######## ######## ######## ########=A0=A0=A0########=0A #######=
#
3e0080e0=A0 ######## ######## ######## ########=A0=A0=A0######## ########
3e0080f0=A0 ######## ######## ######## ########=A0=A0=A0######## ########
Continue? (Continue/Quit) [continue]:=A0=A0=A0

=A0=A0=A0 In my opinion after the map operation the virt_addr (3e008000) SH=
OULD NOT be=20
null. But in fact it is null.=A0 What is the hints in this phenomonon?
=A0=A0=A0 Thanks a lot.
=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=
=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 Cheng Guanghui

_______________________________________________
Developer mailing list
Developer at okl4.org
https://lists.okl4.org/mailman/listinfo/developer

=0A=0A      =0A=0A=0A      
--0-2129706851-1249214296=:749
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

<table cellspacing=3D"0" cellpadding=3D"0" border=3D"0" ><tr><td valign=3D"=
top" style=3D"font: inherit;"><blockquote style=3D"border-left: 2px solid r=
gb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br><div id=3D"yiv13=
39823370"><table border=3D"0" cellpadding=3D"0" cellspacing=3D"0"><tbody><t=
r><td style=3D"font-family: inherit; font-style: inherit; font-variant: inh=
erit; font-weight: inherit; font-size: inherit; line-height: inherit; font-=
size-adjust: inherit; font-stretch: inherit; -x-system-font: none;" valign=
=3D"top">Hello.<br><br>You should first ensure that you indeed dump the rig=
ht virtual address range in kdb, and thus that your problem relies in the s=
ource.<br><br>From your output it is not clear to me if the memdump happens=
 in the right space.<br><br>You may want to try 'D' instead of 'd'. That wa=
y you can specify in what space you want the dump made.<br><br>Good luck,<b=
r>Gabi Voiculescu<br><br>--- On <b>Sat, 8/1/09, Guanghui, Cheng
 <i>&lt;cheng.guanghui.ml at gmail.com&gt;</i></b> wrote:<br><blockquote style=
=3D"border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left=
: 5px;"><br>From: Guanghui, Cheng &lt;cheng.guanghui.ml at gmail.com&gt;<br>Su=
bject: [okl4-developer] Memory mapping in the OKL4<br>To: developer at okl4.or=
g<br>Date: Saturday, August 1, 2009, 5:37 PM<br><br><div class=3D"plainMail=
">Hello:<br>&nbsp;&nbsp;&nbsp; According to the OKL4 document,=0A L4_MapIte=
m_Map could create a map item and <br>then ProcessMapItems could process ea=
ch map item.<br>&nbsp;&nbsp;&nbsp; But in OKLinux i found like this:<br><br=
>After the execution:<br>L4_MapItem_Map(&amp;map, seg, src_addr, virt_addr,=
 PAGE_SHIFT, attrib, rwx);<br>if (L4_ProcessMapItem(context-&gt;space_id, m=
ap) =3D=3D 0)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pa=
nic("L4_ProcessMapItem: map failed");<br><br>okl4_map_page=3Dseg:0xe, src_a=
ddr:0x1ce000, virt_addr:0x3e008000, rwx=3D5, <br>size=3D1000, last_vstart=
=3D0x80e00000, space_id=3D1, attrib=3D3<br><br>I debug the kernel as this:<=
br>--- KD# User: Welcome ---<br>&gt; memdump<br>Dump address [0x0]: 3e00800=
0<br>3e008000&nbsp; ######## ######## ######## ########&nbsp;&nbsp;&nbsp;##=
###### ########<br>3e008010&nbsp; ######## ######## ######## ########&nbsp;=
&nbsp;&nbsp;######## ########<br>3e008020&nbsp; ######## ######## ######## =
########&nbsp;&nbsp;&nbsp;######## ########<br>3e008030&nbsp; ########=0A #=
####### ######## ########&nbsp;&nbsp;&nbsp;######## ########<br>3e008040&nb=
sp; ######## ######## ######## ########&nbsp;&nbsp;&nbsp;######## ########<=
br>3e008050&nbsp; ######## ######## ######## ########&nbsp;&nbsp;&nbsp;####=
#### ########<br>3e008060&nbsp; ######## ######## ######## ########&nbsp;&n=
bsp;&nbsp;######## ########<br>3e008070&nbsp; ######## ######## ######## ##=
######&nbsp;&nbsp;&nbsp;######## ########<br>3e008080&nbsp; ######## ######=
## ######## ########&nbsp;&nbsp;&nbsp;######## ########<br>3e008090&nbsp; #=
####### ######## ######## ########&nbsp;&nbsp;&nbsp;######## ########<br>3e=
0080a0&nbsp; ######## ######## ######## ########&nbsp;&nbsp;&nbsp;######## =
########<br>3e0080b0&nbsp; ######## ######## ######## ########&nbsp;&nbsp;&=
nbsp;######## ########<br>3e0080c0&nbsp; ######## ######## ######## #######=
#&nbsp;&nbsp;&nbsp;######## ########<br>3e0080d0&nbsp; ######## ######## ##=
###### ########&nbsp;&nbsp;&nbsp;########=0A ########<br>3e0080e0&nbsp; ###=
##### ######## ######## ########&nbsp;&nbsp;&nbsp;######## ########<br>3e00=
80f0&nbsp; ######## ######## ######## ########&nbsp;&nbsp;&nbsp;######## ##=
######<br>Continue? (Continue/Quit) [continue]:&nbsp;&nbsp;&nbsp;<br><br>&n=
bsp;&nbsp;&nbsp; In my opinion after the map operation the virt_addr (3e008=
000) SHOULD NOT be <br>null. But in fact it is null.&nbsp; What is the hint=
s in this phenomonon?<br>&nbsp;&nbsp;&nbsp; Thanks a lot.<br>&nbsp;&nbsp;&n=
bsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&=
nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;=
&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Cheng Guanghui<br><br>________=
_______________________________________<br>Developer mailing list<br><a rel=
=3D"nofollow">Developer at okl4.org</a><br><a rel=3D"nofollow" target=3D"_blan=
k"
 href=3D"https://lists.okl4.org/mailman/listinfo/developer">https://lists.o=
kl4.org/mailman/listinfo/developer</a><br></div></blockquote></td></tr></tb=
ody></table><br>=0A=0A      </div></blockquote></td></tr></table><br>=0A=0A=
      
--0-2129706851-1249214296=:749--



More information about the Developer mailing list