<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Dobre odpoledne,<br>
"The processor does not write to the EPC register when the EXL bit
in the
Status register is set to a 1.", PDF strana 142,<br>
nemuze to byt tohle? To by take odpovidalo, jelikoz me vetsinou MSIM
upozorni, ze neco do EPC zapsal.<br>
<br>
Roman Kapl<br>
<br>
<div class="moz-cite-prefix">Dne 2/11/2015 v 11:09 AM Jethro
napsal(a):<br>
</div>
<blockquote
cite="mid:CAK9o-Ax52R7ht0rRMyKzmVN04MW83N=GcCksK6cVcf=e-_XLmA@mail.gmail.com"
type="cite">
<div dir="ltr">Dobre dopoledne,<br>
kdyz nyni finisujeme s rozhranim systemovych volani, zacal se
nam nas system chovat zvlastne a myslime si, ze jde o chybu v
msimu. Pri zavolani syscallu se skoci do kernel modu a v nem by
mel (alespon dle manualu, strana 100) byt v epc ulozena adresa
volani syscallu (ten neni v branch delay slotu). Kdyz se ale o
nekolik instrukci nize epc vycte, je na nem adresa jina. Nize
prikladame cast vypisu z msimu s trace=on<br>
0 00002270 addiu sp, sp, 0xffe8 # sp:
0x42fe0->0x42fc8<br>
0 00002274 addiu a0, 0, 0x1 # a0: 0xf->0x1<br>
0 00002278 addiu a1, 0, 0x5e # 0x5e=94, a1:
0x2270->0x5e<br>
0 0000227C sw s0, 0x10(sp) # 0x10=16<br>
0 00002280 addu a2, 0, 0 # a2: 0x43000->0x0<br>
0 00002284 lw s0, 0x28(sp) # 0x28=40, s0:
0x4242->0x1020<br>
0 00002288 sw ra, 0x14(sp) # 0x14=20<br>
0 0000228C jal +0x428 # 0x428=1064, ra:
0x2270->0x2294<br>
0 00002290 addu a3, 0, 0<br>
0 000010A0 addiu sp, sp, 0xfff8 # sp:
0x42fc8->0x42fc0<br>
0 000010A4 sw ra, 0x4(sp)<br>
0 000010A8 syscall0x0<br>
<br>
Raised exception: Syscall<br>
<br>
0 80000180 j +0x225e # 0x225e=8798,
cp0_cause: 0x80000000->0x00000020<br>
0 80000184 nop<br>
0 80008978 lui k0, 0xb000 # 0xb000=45056, k0:
0x1000ff13->0xb0000000<br>
0 8000897C ori k0, k0, 0x0004 # k0:
0xb0000000->0xb0000004<br>
0 80008980 lw k1, (k0)<br>
0 80008984 sll k0, k1, 0x0a # 0xa=10, k0:
0xb0000004->0x0<br>
0 80008988 lui k1, 0x8000 # 0x8000=32768, k1:
0x0->0x80000000<br>
0 8000898C addu k1, k1, k0<br>
0 80008990 addiu k0, 0, 0x400 # 0x400=1024, k0:
0x0->0x400<br>
0 80008994 addu k1, k1, k0 # k1:
0x80000000->0x80000400<br>
0 80008998 mfc0 k0, epc # k0: 0x400->0x108c<br>
<br>
v k0 bychom ocekavali 0x10A8, ale je tam 0x108C. V priloze
posilame i binarku (to doufam nebude problem se sdilenim naseho
kodu), kdyby nam nekdo mel cas a chut pomoci, zdrojak toto
zpusobujici je v nasem repozitari pod commitem 190a474<br>
Budeme radi za pomoc nebo aspon popostrceni spravnym smerem.<br>
Tym BaPoSt <br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
OSy mailing list
<a class="moz-txt-link-abbreviated" href="mailto:OSy@d3s.mff.cuni.cz">OSy@d3s.mff.cuni.cz</a>
<a class="moz-txt-link-freetext" href="https://d3s.mff.cuni.cz/mailman/listinfo/osy">https://d3s.mff.cuni.cz/mailman/listinfo/osy</a>
</pre>
</blockquote>
<br>
<br /><br />
<hr style='border:none; color:#909090; background-color:#B0B0B0; height: 1px; width: 99%;' />
<table style='border-collapse:collapse;border:none;'>
<tr>
<td style='border:none;padding:0px 15px 0px 8px'>
<a href="http://www.avast.com/">
<img border=0 src="http://static.avast.com/emails/avast-mail-stamp.png" />
</a>
</td>
<td>
<p style='color:#3d4d5a; font-family:"Calibri","Verdana","Arial","Helvetica"; font-size:12pt;'>
This email is free from viruses and malware because <a href="http://www.avast.com/">avast! Antivirus</a> protection is active.
</p>
</td>
</tr>
</table>
<br />
</body>
</html>