Bug in iop/tcpip/tcpips?

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply
tjd
Posts: 23
Joined: Thu May 27, 2004 1:54 am
Location: Austin, TX
Contact:

Bug in iop/tcpip/tcpips?

Post by tjd »

Folks;

I believe that the src/imports.lst file needs to move the import entry of I_sceSifGetOtherData from sifman to sifcmd (where it lives). I have no idea how send/recv from the EE to the IOP ever worked without this...

tjd
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

Probably by using something other than sceSifGetOtherData. :)
tjd
Posts: 23
Joined: Thu May 27, 2004 1:54 am
Location: Austin, TX
Contact:

Post by tjd »

perhaps, but the code in CVS says otherwise ;-) An excerp from ps2ips.c in send/sendto etc...

Code: Select all

    ee_pos = pkt->ee_addr + pkt->malign;

    sendlen = MIN(BUFF_SIZE, pkt->length);

    r = SifRpcGetOtherData(&rdata, ee_pos, lwip_buffer + 16, sendlen - pkt->malign, 0);
The SifRPCGetOtherData is a #define to sceSifGetOtherData
mrbrown
Site Admin
Posts: 1537
Joined: Sat Jan 17, 2004 11:24 am

Post by mrbrown »

ps2ip used ps2lib's IOP libraries before everything was moved over to ps2sdk. ps2lib didn't use imports.lst, instead it used a .s file with all library imports, which were correct for sceSifGetOtherData(). So it worked fine until it was moved to ps2sdk.
"He was warned..."
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

Yeah, that's what I meant. Really!
Post Reply