Search found 6 matches

by raipsu
Tue Nov 02, 2004 1:30 am
Forum: PS2 Development
Topic: A bug in malloc() etc.
Replies: 5
Views: 3527

memalign() was broken because it did not update __alloc_heap_head and __alloc_heap_tail. This should fix it: *** ../d/ps2sdk/ee/libc/src/alloc.c Mon Oct 11 03:44:59 2004 --- ee/libc/src/alloc.c Mon Nov 1 17:22:39 2004 *************** *** 206,211 **** --- 206,212 ---- ...
by raipsu
Tue Nov 02, 2004 12:15 am
Forum: PS2 Development
Topic: A bug in malloc() etc.
Replies: 5
Views: 3527

Thanks, the realloc() is working fine now.

Now memalign() is broken. :( Replace the malloc() and realloc() lines in start of previous test program with malloc(2); memalign(64, 10); and free() stops working again..
by raipsu
Mon Nov 01, 2004 6:45 am
Forum: PS2 Development
Topic: Problems with usb_mass
Replies: 4
Views: 3084

usb_mass fioDopen() etc.

I added fioDopen(), fioDclose(), fioDread() and fioGetStat() support to usb_mass. Here's the patch:

http://ruoho.org/ps2/usb_mass_dopen_patch.diff
by raipsu
Mon Nov 01, 2004 4:08 am
Forum: PS2 Development
Topic: Problems with usb_mass
Replies: 4
Views: 3084

I commented this line from mass_stor_warmup(): usb_bulk_manage_status(dev, -TAG_INQUIRY); and from usb_bulk_manage_status(): usb_bulk_reset(dev, 1); /* Perform reset recovery */ Now it seems to work just fine. :) Maybe my stick is non-standard or the warmup sequence is incorrect? More error handling...
by raipsu
Mon Nov 01, 2004 2:00 am
Forum: PS2 Development
Topic: Problems with usb_mass
Replies: 4
Views: 3084

Problems with usb_mass

Hi! I have been trying to use usb_mass without success. I have a Transcend 256MB JetFlash. I'm trying to test with mass_example.elf. It jams when trying to read directory listing. I added some XPRINTFs to the iop mass_stor.c and noticed that it jams when usb_bulk_status() is calling WaitSema(). I ha...
by raipsu
Mon Oct 25, 2004 7:15 am
Forum: PS2 Development
Topic: A bug in malloc() etc.
Replies: 5
Views: 3527

A bug in malloc() etc.

Hi! I noticed that there are something wrong with malloc() etc. functions. Seems that sometimes free() does not free the memory. I wrote this little program to demonstrate it: #include <stdio.h> #include <malloc.h> int main &#40;&#41; &#123; int iter = 0; realloc&#40;malloc&#40;1...