<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns:v = "urn:schemas-microsoft-com:vml" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word"><HEAD><BASE
href="file://C:\Program Files\Common Files\Microsoft Shared\Stationery\">
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content=Word.Document name=ProgId>
<META content="MSHTML 6.00.2800.1458" name=GENERATOR>
<META content="Microsoft Word 9" name=Originator><LINK
href="./魏进武的信纸.files/filelist.xml" rel=File-List><!--[if gte mso 9]><xml>
<o:DocumentProperties>
<o:Author>Common</o:Author>
<o:LastAuthor>Common</o:LastAuthor>
<o:Revision>3</o:Revision>
<o:TotalTime>6</o:TotalTime>
<o:Created>2004-08-31T09:18:00Z</o:Created>
<o:LastSaved>2004-08-31T09:26:00Z</o:LastSaved>
<o:Pages>1</o:Pages>
<o:Words>73</o:Words>
<o:Characters>419</o:Characters>
<o:Company>HKZJZ</o:Company>
<o:Lines>3</o:Lines>
<o:Paragraphs>1</o:Paragraphs>
<o:CharactersWithSpaces>514</o:CharactersWithSpaces>
<o:Version>9.2812</o:Version>
</o:DocumentProperties>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:DrawingGridVerticalSpacing>7.8 磅</w:DrawingGridVerticalSpacing>
<w:Compatibility>
<w:UseFELayout/>
</w:Compatibility>
</w:WordDocument>
</xml><![endif]-->
<STYLE>@font-face {
        font-family: SimSun;
}
@font-face {
        font-family: SimSun;
}
@page {mso-page-border-surround-header: no; mso-page-border-surround-footer: no; }
@page Section1 {size: 595.3pt 841.9pt; margin: 72.0pt 90.0pt 72.0pt 90.0pt; mso-header-margin: 42.55pt; mso-footer-margin: 49.6pt; mso-paper-source: 0; }
BODY {
        BACKGROUND-POSITION: 0% 0%; COLOR: #000000; BACKGROUND-REPEAT: no-repeat
}
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: SimSun
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: SimSun
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: SimSun
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline; text-underline: single
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline; text-underline: single
}
DIV.Section1 {
        page: Section1
}
</STYLE>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1027"/>
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1"/>
</o:shapelayout></xml><![endif]--></HEAD>
<BODY lang=ZH-CN style="tab-interval: 21.0pt" vLink=purple link=blue
bgColor=#ffffff>
<DIV><FONT face=宋体 size=2></FONT> </DIV>
<DIV style="FONT: 9pt 宋体">
<DIV>Dear,</DIV></DIV>
<DIV> </DIV>
<DIV> Here is my problems,</DIV>
<DIV> </DIV>
<DIV> Our environmet is:</DIV>
<DIV> OS: hardhat Linux 2.1</DIV>
<DIV> platform: ppc lopec 7410</DIV>
<DIV> uname -r : <FONT
face=Arial>2.4.17_mvl21-lopec</FONT></DIV>
<DIV> </DIV>
<DIV> When we port the ppp_generic.c(Which is a kernel module), and
the program can be executed on host(redhat 7.2). Howerver, when we complied it
and runned on ppc lopec7410 (target) by the cross-developemnt enviornment, which
can result in the machine down, and when wei return in the beginning of
ppp_xmit_process(), the machine is not down but the following massages is
printed in the /var/log/massages:</DIV>
<DIV><EM></EM> </DIV>
<DIV><EM>Dec 29 13:52:31 10 kernel: IN ppp_generic.c(ppp_write()):called
function ppp_write () 0 times! <BR>Dec 29 13:52:31 10 kernel: In
ppp_geberic.c(ppp_file_write()): the send device kind
(pf->kind,1=INTERFACE,2=CHANNEL)is 1 <BR>Dec 29 13:52:31 10 kernel: In
ppp_geberic.c(ppp_file_write()):After copy_from_user, the data from pppd to
kernel space is : <BR>Dec 29 13:52:31 10 kernel: <BR>Dec 29 13:52:31 10
kernel: c0 21 01 01 00 0a 02 06 00 00 00 00 <BR>Dec 29 13:52:31 10 kernel:
IN ppp_GENERIC.c :ppp_xmit_process(),into this function <BR>Dec 29
13:52:31 10 kernel: IN ppp_GENERIC.c :ppp_xmit_process(),ppp->xmit_pending is
0 <BR>Dec 29 13:52:32 10 kernel: Oops: kernel access of bad area, sig: 11
<BR>Dec 29 13:52:32 10 kernel: NIP: C0012F4C XER: 00000000 LR: C0012F34 SP:
DF61FE40 REGS: df61fd90 TRAP: 0300 Tainted: P <BR>Dec 29
13:52:32 10 kernel: MSR: 00001032 EE: 0 PR: 0 FP: 0 ME: 1 IR/DR: 11 <BR>Dec 29
13:52:32 10 kernel: DAR: 00000004, DSISR: 42000000 <BR>Dec 29 13:52:32 10
kernel: TASK = df61e000[102] 'pppd' Last syscall: 142 <BR>Dec 29 13:52:32
10 kernel: last math df61e000 last altivec df61e000 <BR>Dec 29 13:52:32 10
kernel: GPR00: 00001032 DF61FE40 DF61E000 00000001 00009032 000000A5 DFDBEDE4
0001F618 <BR>Dec 29 13:52:32 10 kernel: GPR08: 0000003C 00000000 DF619008
DF619014 84244862 1004BE28 10040000 10040000 <BR>Dec 29 13:52:32 10
kernel: GPR16: 10040000 10040000 10040000 10040000 00009032 DF61FEF8 DF61FE98
0000012C <BR>Dec 29 13:52:32 10 kernel: GPR24: 00000006 00000000 00000145
DF61FED8 C02B0984 DF61900C DF7A35E0 DF619000 <BR>Dec 29 13:52:32 10
kernel: Call backtrace: <BR>Dec 29 13:52:32 10 kernel: C0035128 C00516E0
E100379C C0051A28 C0051D30 C0009FD0 C000409C <BR>Dec 29 13:52:32 10
kernel: 1001CBA8 10005EC0 100059B8 0FE69628 00000000</EM> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>How to debug it and correcte it , Plese help me!</DIV>
<DIV> </DIV>
<DIV>Thanks a lot!</DIV>
<DIV class=Section1>
<P class=MsoNormal><SPAN
lang=EN-US>-------------------------------------------</SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US style="FONT-SIZE: 10pt"> Best
Regards<BR> <BR></SPAN><SPAN lang=EN-US
style="mso-bidi-font-size: 10.0pt"> Dr. Jinwu Wei</SPAN><SPAN lang=EN-US
style="FONT-SIZE: 10pt"><BR> <BR>-----------------------------------------------------------------<BR> <BR>National
Digital Switching System <BR>Engineering & Technology R&D Center
(NDSC),<BR>Jianxue street 7#, Box:1001, No.783,<BR>Zhengzhou,
450002.<BR>Henan province, P.R. China.<BR> <BR>Tel:
+86-371-3532873<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US style="FONT-SIZE: 10pt">Fax:
+86-371-3941700<BR>Email: <A
href="mailto:wjw@mail.ndsc.com.cn">wjw@mail.ndsc.com.cn</A><o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US style="FONT-SIZE: 10pt"><SPAN
style="mso-spacerun: yes">
</SPAN>or <A
href="mailto:bstap2000@yahoo.com.cn">bstap2000@yahoo.com.cn</A><o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
lang=EN-US><![if !supportEmptyParas]><![endif]> <o:p></o:p></SPAN></P></DIV></BODY></HTML>