Search found 57 matches

by raf
Thu Jun 14, 2007 5:17 am
Forum: PSP Development
Topic: newlib pipe.c implementation select() EBADF PATCH
Replies: 4
Views: 3159

ooPo wrote:Seems to build fine, and so was added to the repository.
Thanks, anhanguera!. ooPo, should't his changes also be applied to the newlib-psp/ modules in the trunk (i.e. not just to the .patch file)?

Raf.
by raf
Thu Jun 14, 2007 3:39 am
Forum: PSP Development
Topic: now,we can use libaudiocodec to decode mp3 and aac
Replies: 36
Views: 49222

Excellent job, cooleyes!!. I'll look at adding this into PSPRadio asap; it would really help release some CPU cycles for the visualizers :)

Thanks!,

Raf.
by raf
Fri Apr 27, 2007 1:05 am
Forum: PSP Development
Topic: SDK ADD: VRAM MMU (valloc/vfree)
Replies: 13
Views: 8040

Alright, I committed the libraries to the repository. They are under the libpspvram directory in the trunk. I added a makefile that will make both the libpspvram.a and the libpspvalloc.a libraries. Make install will install to the pspsdk folders on your system. For the vram code, I used the latest f...
by raf
Tue Apr 24, 2007 1:57 am
Forum: PSP Development
Topic: SDK ADD: VRAM MMU (valloc/vfree)
Replies: 13
Views: 8040

Raphael has a newer version of this here: http://www.psp-programming.com/forums/index.php/topic,1840.0.html I also use this code from Raphael. It is very useful, and vote for it to be included in the sdk. If nothing else, it should be added to the subversion repository as a library. What do you guy...
by raf
Sun Mar 25, 2007 7:53 am
Forum: PSP Development
Topic: pthread library
Replies: 3
Views: 2951

Re: pthread library

I just committed to subversion a very simple (incomplete also) pthread library. Hi Raf, i am working on a port of mono (http://www.mono-project.org) for PSP. Currently i need a more complete pthread library. My idea is to port the old libc5 linuxthreads library (http://pauillac.inria.fr/~xleroy/lin...
by raf
Tue Mar 13, 2007 11:53 pm
Forum: PSP Development
Topic: Resolver hang
Replies: 8
Views: 3271

I don't know who is responsible for the /newlib dir. But adding a simple .patch file won't hurt anybody. One way of telling would be to do something like this "svn log newlib-psp | less" In this case, I guess that would be either mrbrown or jim... I think jim's suggestion is the best appr...
by raf
Tue Mar 13, 2007 12:11 am
Forum: PSP Development
Topic: Resolver hang
Replies: 8
Views: 3271

Ok this is patched in the newlib.1.15.0.patch in the toolchainn SVN. I see in the patch file that gethostbyaddr is now calling sceNetResolverStop(). But gethostbyname is still not doing it.. Was that on purpose? Also, I believe you should commit the changes to the newlib-psp directory, not only to ...
by raf
Thu Feb 08, 2007 8:05 am
Forum: PSP Development
Topic: Problems with PRX exports using C++
Replies: 9
Views: 4160

Re: Problems with PRX exports using C++

Anissan, When I read this: (...) For the time being, I want to export only either global functions or static member functions, so I need to solve name mangling issues only. I thought that what I did could be sufficient to solve that problem. From your discussion with TyRaNiD, solving the problem of ...
by raf
Thu Feb 08, 2007 7:20 am
Forum: PSP Development
Topic: Problems with PRX exports using C++
Replies: 9
Views: 4160

Re: Problems with PRX exports using C++

Excuse me if I'm confusing your problem; but on PSPRadio (which is C++ and has C++ prx plugins), all I do is: psp-build-exports -s UI_Exports.exp (which has: PSP_EXPORT_START(PSPRadio_UI, 0, 0x0001) PSP_EXPORT_FUNC_HASH(getModuleInfo) PSP_EXPORT_FUNC_HASH(Modu...
by raf
Mon Feb 05, 2007 1:15 pm
Forum: PSP Development
Topic: WLAN on 3.03 OE-C -> Host is unreachable
Replies: 5
Views: 3966

Re: Update

It appears PSPRadio works fine with a connecction that uses DHCP. Has anyone else observed this with other network apps? I'm assuming most people use DHCP, so I wouldn't be surprised if this hasn't come up before, but just in case... is this a known limitation? Note that my manual connection works ...
by raf
Thu Feb 01, 2007 3:20 am
Forum: PSP Development
Topic: pthread library
Replies: 3
Views: 2951

pthread library

I just committed to subversion a very simple (incomplete also) pthread library. It may prove useful to people working on ports, if nothing else. I originally wrote it while porting links2, and so I only implemented what I needed.. so there's lots of functionality missing; but it is a start. Please f...
by raf
Thu Jun 15, 2006 11:15 am
Forum: PSP Development
Topic: Proposed patch to newlib
Replies: 22
Views: 9954

Re: Proposed patch to newlib

-fcntl support: the function is now implemented, and allows to set and get file descriptor flags. Implementation is not 100% complete. But socket's can be set to non-blocking mode via a fcntl call now. Also, file descriptors can be duplicated (with ref-counting so the real close is only called on t...
by raf
Thu Jun 08, 2006 2:39 am
Forum: PSP Development
Topic: Help improving UnRAR performance
Replies: 5
Views: 1971

I've added in some printfs to find out when the File::Open command is used, and what it is opening, and there seems to be a problem coming from here. I'm using the version that I've converted all the IO functions to sceIo. First it attempts to open a file that appears as lots of \n and then a few r...
by raf
Fri May 05, 2006 2:12 am
Forum: PSP Development
Topic: select()
Replies: 11
Views: 3728

Doesn't the psptoolchain script grab the newest stuff from the SVN and install it all? Edit: Else, how do i go about getting and installing the latest newlib? (Running a native linux envoirment, also got svn) Maybe it does, I'm not sure.. I use svn exclusively.. If it does, then you still would nee...
by raf
Fri May 05, 2006 12:03 am
Forum: PSP Development
Topic: select()
Replies: 11
Views: 3728

Thanks for the quick response, i'm really eager to get this thing working. Well, i pass a zeroed timer just because i don't want wait-time at all, i just want to poll the socket. All my connections are of class CSocket, and on each main loop i call update() on them causing the socket to read in all...
by raf
Thu May 04, 2006 11:05 pm
Forum: PSP Development
Topic: select()
Replies: 11
Views: 3728

Now why is this code not working as it is supposed to? itsSocketID is a listening socket. And when i run this, the socket is set all the time, even when there's not an incoming connection available. And then my programs just gets stuck on the accept() call. By the way, i figured it isn't a good thi...
by raf
Wed May 03, 2006 3:53 am
Forum: PSP Development
Topic: select()
Replies: 11
Views: 3728

So. mySocket = create_socket() //just pseudo function giving me a socket fd_set mySet; FD_SET( mySocket, &mySet ); FD_ISSET( mySocket, &mySet ); //This would return false You need to call FD_ZERO(&mySet); before you can call FD_SET, as you...
by raf
Tue May 02, 2006 12:25 am
Forum: PSP Development
Topic: Proposed patch to newlib
Replies: 22
Views: 9954

Raf, if you get a chance, can you check that this fix is right: http://svn.pspdev.org/listing.php?repname=psp&path=%2F&rev=1887&sc=1 (without that patch, they don't build) Thanks, Jim.. I knew I had to do that, just haven't had time :) Your changes look good. Will try them later today, ...
by raf
Tue May 02, 2006 12:22 am
Forum: PSP Development
Topic: Proposed patch to newlib
Replies: 22
Views: 9954

hi, raf, this is really great job. this pipe() support for newlib is very important for me (guess for other developers, too). i was using this (http://svn.sourceforge.net/viewcvs.cgi/*checkout*/xynth/trunk/src/lib/pipe_mem.c) ugly && bugy pipe emulation over memory, and i was tired of worki...
by raf
Sat Apr 29, 2006 4:55 am
Forum: PSP Development
Topic: Proposed patch to newlib
Replies: 22
Views: 9954

Hmm well you need to link it with libpspsdk.a to get those functions, it _might_ be best to actually implement them in newlib directly so that you are not dependant on the sdk library in order to build normal apps. You should just be able to grab the ones in the sdk source. I'll try that; but it's ...
by raf
Sat Apr 29, 2006 3:45 am
Forum: PSP Development
Topic: Proposed patch to newlib
Replies: 22
Views: 9954

int inten; inten = pspSdkDisableInterrupts(); /* Do something or other */ pspSdkEnableInterrupts(inten); James, I tried adding these calls to fdman.c. But then when I try to compile an application, I get linker errors: /usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../...
by raf
Fri Apr 28, 2006 11:52 pm
Forum: PSP Development
Topic: Proposed patch to newlib
Replies: 22
Views: 9954

if(__psp_descriptormap[s] == NULL || __psp_descriptormap[s]->type != __PSP_DESCRIPTOR_TYPE_SOCKET) This is done many times, I think it should get its own define, something like VALID_FD(index, type); so it would be if (!VALID_FD(s, __PSP_DESCRIPTOR_TYPE_SOCKET)) or something? I'll just do something...
by raf
Fri Apr 28, 2006 11:40 pm
Forum: PSP Development
Topic: Proposed patch to newlib
Replies: 22
Views: 9954

I just commited the patch, it's at r1883..

I'll work on James and Danzel's comments now.

Raf.
by raf
Fri Apr 28, 2006 11:10 pm
Forum: PSP Development
Topic: Proposed patch to newlib
Replies: 22
Views: 9954

Just applied this by hand :) Few small things: - if(!(SOCKET_IS_VALID(s))) + if(__psp_descriptormap[s] == NULL || __psp_descriptormap[s]->type != __PSP_DESCRIPTOR_TYPE_SOCKET) This is done many times, I think it should get its own define, something like VALID_FD(index, type); so it would be if (!VA...
by raf
Fri Apr 28, 2006 11:07 pm
Forum: PSP Development
Topic: Proposed patch to newlib
Replies: 22
Views: 9954

How do we go about making the newlib patch for the toolchain? Make your changes in newlib-psp/, have the original newlib tar extracted as newlib-1.13.0/, and run psptoolchain/devel/scripts/difftree.sh newlib-psp newlib-1.13.0 then copy the generated patch-newlib* file to psptoolchain/newlib-1.13.0....
by raf
Fri Apr 28, 2006 11:33 am
Forum: PSP Development
Topic: Proposed patch to newlib
Replies: 22
Views: 9954

<warning, sort of off topic> You aren't the only one who's been porting links2 :) lol. http://localhost.geek.nz/plinks3.jpg As you can see I wasn't as far as yourself. How up to date is the version in pspradio svn? Any chance of getting added as a developer to pspradio so I can lend a hand? Perhaps...
by raf
Fri Apr 28, 2006 11:20 am
Forum: PSP Development
Topic: Proposed patch to newlib
Replies: 22
Views: 9954

Btw regarding thread safety, really the simplest way would be to disable then enable interrupts over the bit you need to be thread safe, as long as you dont take too long doing it and are not calling any kernel functions then it is low cost and little effort ;) The reason that this wasn't implement...
by raf
Fri Apr 28, 2006 4:03 am
Forum: PSP Development
Topic: Proposed patch to newlib
Replies: 22
Views: 9954

Thanks, Jim and James! It's very reassuring to hear you say that it looks good.. :)
Yes, the -mno-explicit-relocs takes care of the gp issue we found earlier.

Raf.
by raf
Fri Apr 28, 2006 1:16 am
Forum: PSP Development
Topic: Proposed patch to newlib
Replies: 22
Views: 9954

Proposed patch to newlib

As I worked on porting both retawq (web browser) and now links2, I made some changes to newlib (mainly to the libc/sys/psp directory). Changes include: -File descriptor management: all file descriptors now come from a common pool. Things like the internal sce descriptor, reference count, filename, f...
by raf
Thu Apr 13, 2006 11:48 pm
Forum: PSP Development
Topic: On the topic of PSIX...
Replies: 42
Views: 21166

Re: On the topic of PSIX...

Seems to me this thread has gone long enough on the wrong direction. Time for a cleanup or lock down, is my suggestion. Either way, my take on the whole Fluff deal is that she's not doing anything illegal. She's buit something closed-sourced using tools under the BSD license. This is just a sad fact...