Search found 43 matches

by whatisdot
Wed Jul 02, 2008 5:00 am
Forum: PS2 Development
Topic: PS2DEV Documentation Project
Replies: 11
Views: 8011

Unfortunately, the WIKI has been locked down as read only now, so I don't think we'll be able to get much done without an admin's help. It's entirely likely that the powers that be are displeased with the changes I have been making, or don't want other people making changes freely. Perhaps the WIKI ...
by whatisdot
Sat Jun 21, 2008 4:03 am
Forum: PS2 Development
Topic: Non-preemptive Multitasking and Signals
Replies: 5
Views: 5435

Okay, so an ugly but correct usage example would be this? Also, why HSYNCs? Why not use the timer? Sorry if I have forgotten something mentioned in a previous thread. It's a lot to take in all at once. void alarming(s32 alarm_id, u16 time, void *arg2) { //...rotate threads, ...
by whatisdot
Thu Jun 19, 2008 11:42 pm
Forum: PS2 Development
Topic: Non-preemptive Multitasking and Signals
Replies: 5
Views: 5435

Non-preemptive Multitasking and Signals

Hello, again. I am having some trouble understanding the semantics of signals with the EE processor. As I understand it, "ee_thread_t" (EE kernel threads) are non-preemptive, which means we need to yield control to other threads actively. (Is this a hardware limitation, or is this part of ...
by whatisdot
Wed Jun 18, 2008 10:23 am
Forum: PS2 Development
Topic: Filesystem Usage Example
Replies: 15
Views: 9886

Hi ptek,

I have never gotten around to looking into SVN, but now is as good a time as any. I found this after doing some searching.

http://svnbook.red-bean.com/

I have some reading to do. Thanks for the encouragement. =)
by whatisdot
Tue Jun 17, 2008 6:41 am
Forum: PS2 Development
Topic: Filesystem Usage Example
Replies: 15
Views: 9886

Very nice! I made an account and uploaded some of the things I have done. I augmented the example here to mount a file system on the hard drive and list its directories. You can find this and my other examples here:

http://www.assembla.com/spaces/files/ps2sdk-demos
by whatisdot
Thu Jun 05, 2008 3:07 am
Forum: PS2 Development
Topic: Filesystem Usage Example
Replies: 15
Views: 9886

Hey Mega Man! That did the trick! Thanks a bunch. I'll rework this code and repost it when it is cleaned up. Thanks for all the help, everyone! EDIT: I hope someone else finds this code useful. I hope it saves them the time and energy it took me, and the people who responded to this thread. Feel fre...
by whatisdot
Fri May 30, 2008 3:36 am
Forum: PS2 Development
Topic: Running multiple processes concurrently (also threads)
Replies: 22
Views: 18278

Lukasz to the rescue again. Thanks a bunch. =) Right now I'm trying to improve the example in the way that everyone has suggested, by using callbacks for interrupts and semaphores to keep the threads from interfering with each other. I'm having some problems here, but I don't know if it is because I...
by whatisdot
Thu May 29, 2008 6:52 am
Forum: PS2 Development
Topic: Filesystem Usage Example
Replies: 15
Views: 9886

Thanks for the responses. The modules load correctly now, but it still freezes when I execute one of the hdd...() functions. It turns out that "poweroff.irx" was also needed. A bit more info on my setup; I have a 250GB hard drive in my PS2 and I have formatted a couple of partitions using ...
by whatisdot
Wed May 28, 2008 11:15 am
Forum: PS2 Development
Topic: Filesystem Usage Example
Replies: 15
Views: 9886

So far I've loaded these modules: Load correctly SifLoadModule("rom0:SIO2MAN", 0, NULL); SifLoadModule("rom0:MCMAN", 0, NULL); SifLoadModule("rom0:MCSERV", 0, NULL); SifLoadModule("host...
by whatisdot
Wed May 28, 2008 9:08 am
Forum: PS2 Development
Topic: Filesystem Usage Example
Replies: 15
Views: 9886

Okay, I'm trying to load the modules, but I don't know which modules need to be loaded. I've already tried these, but the 'ps2hdd' and 'ps2fs' don't want to load. I can only assume they rely on some other module that I have yet to find... SifLoadModule("host0:fileXio.irx", ...
by whatisdot
Wed May 28, 2008 7:10 am
Forum: PS2 Development
Topic: Filesystem Usage Example
Replies: 15
Views: 9886

Filesystem Usage Example

Hello everyone. Your favorite newbie, here, with another exciting topic. I have been looking for code related to file systems and the hard drive, and have come up a bit short. I made this small example to try to see if I could access my hard drive partitions on my PS2, but it just hangs at whatever ...
by whatisdot
Mon May 26, 2008 2:35 pm
Forum: PS2 Development
Topic: Running multiple processes concurrently (also threads)
Replies: 22
Views: 18278

Umm... I'm a little confused and I hope someone could help me out with regards to signal handling and interrupts. Each thread on the EE has the following attributes: typedef struct t_ee_thread { int status; void* func; void* stack; int stack_size; void* gp_reg; int initial_priority; int cur...
by whatisdot
Mon May 26, 2008 7:34 am
Forum: General Discussion
Topic: WIKI is down
Replies: 4
Views: 5596

I told you guys it wasn't a good idea to have an anti-matter cooled server!
It was probably something wrong with the dilithium crystals. Usually is...
The wiki is up now, but I can only access it in read only mode. I was hoping I could get access to it again...
by whatisdot
Mon May 26, 2008 7:26 am
Forum: PS2 Development
Topic: Running multiple processes concurrently (also threads)
Replies: 22
Views: 18278

... 'iRotateThreadReadyQueue' is intended to be called from the interrupt handler... Yes, I feel bad for writing code like this, but so far I have just been trying to create and execute a thread successfully. I am currently lurking through the kernel source to find more info on signals and interrup...
by whatisdot
Sun May 25, 2008 8:19 am
Forum: PS2 Development
Topic: Running multiple processes concurrently (also threads)
Replies: 22
Views: 18278

Okay, I got threads working now. Thanks to J.F. for pointing out the importance of iRotateThreadReadyQueue. At first I had some trouble understanding what was going on in the discussion that he pointed out, but after some experimenting I got it working. Here's a demo of what I got so far. (The refer...
by whatisdot
Sat May 17, 2008 11:07 am
Forum: General Discussion
Topic: WIKI is down
Replies: 4
Views: 5596

hooray! Wiki is up! =) Thanks!
by whatisdot
Wed May 14, 2008 2:16 am
Forum: PS2 Development
Topic: Running multiple processes concurrently (also threads)
Replies: 22
Views: 18278

Okay, I think I understand now. After taking a closer look at the kernel code, I see how the threads are handled by system calls in the PS2SDK. Now I understand J.F.s comment about "only one process" being able to execute, but as long as it can have multiple threads then that's fine. I am ...
by whatisdot
Tue May 13, 2008 5:49 am
Forum: PS2 Development
Topic: Running multiple processes concurrently (also threads)
Replies: 22
Views: 18278

Thanks for all the replies. I have to point out that there is a difference between a "process" and a "thread." A process is active machine code that has been loaded and is being executed, where a thread of execution is similar to a process but doesn't have as high of precedence. ...
by whatisdot
Mon May 12, 2008 8:41 am
Forum: PS2 Development
Topic: Running multiple processes concurrently (also threads)
Replies: 22
Views: 18278

...nobody...?
by whatisdot
Sat May 10, 2008 4:57 am
Forum: PS2 Development
Topic: PS2DEV Documentation Project
Replies: 11
Views: 8011

Well, the wiki is down, so the documentation has been put on hold for now...
by whatisdot
Sat May 10, 2008 4:56 am
Forum: PS2 Development
Topic: Running multiple processes concurrently (also threads)
Replies: 22
Views: 18278

Running multiple processes concurrently (also threads)

Hi. Me again. I was wondering, how do we execute multiple processes and manage them? There isn't a "fork()" and "exec()" system call for us to use. The only way I can see to spawn a new process is to use the "SifLoadElf()" function call, and from what I can tell from th...
by whatisdot
Thu May 08, 2008 4:33 am
Forum: General Discussion
Topic: WIKI is down
Replies: 4
Views: 5596

WIKI is down

Hey all,

I don't want to get on anyone's case, but the WIKI is down. Can anybody else access it???
by whatisdot
Sat May 03, 2008 12:25 pm
Forum: PS2 Development
Topic: Release: RadShell
Replies: 45
Views: 215234

Impressive work! =) I'm trying to make a command line interface, myself. Would you mind if I borrowed some of your code? It's just a scanner and parser right now, but once I complete the command modules we might be able to share some code or maybe work on a joint project. What do you think?
by whatisdot
Sat May 03, 2008 7:25 am
Forum: PS2 Development
Topic: [in-charge] [not-in-charge] problems linking C++ files
Replies: 4
Views: 3642

Lukasz,

You're the man!

=) <thumbs up>

What a difference a file extension makes. Change *.cc to *.cpp and suddenly everything works.

C++ will work as long as all the classes are defined in the same file. I'm now trying to figure out how to link multiple files together...
by whatisdot
Sat May 03, 2008 5:53 am
Forum: PS2 Development
Topic: [in-charge] [not-in-charge] problems linking C++ files
Replies: 4
Views: 3642

Everything appears to compile correctly when I make an ERL... I tried using the different CPP options in the Makefiles, but I can't get the darn thing to make an ELF. From the examples, I can only see C++ being used with ERL files... Maybe I'm asking the wrong question. Is it even possible to code i...
by whatisdot
Fri May 02, 2008 10:13 am
Forum: PS2 Development
Topic: [in-charge] [not-in-charge] problems linking C++ files
Replies: 4
Views: 3642

[in-charge] [not-in-charge] problems linking C++ files

Hey guys. I'm having a problem with compiling code. I have browsed the threads about compiling, but most of them are two to three years old and don't really supply much help. I have had no problems getting C code to compile and link, but I am having major problems getting C++ code to link. I have me...
by whatisdot
Fri May 02, 2008 7:17 am
Forum: PS2 Development
Topic: Using the USB Keyboard
Replies: 16
Views: 10796

oh...heh...of course...
by whatisdot
Fri May 02, 2008 6:37 am
Forum: PS2 Development
Topic: Semantic Analysis and Parsing on the PS2
Replies: 5
Views: 4874

Thanks for the heads up, Mega Man. I fixed that problem and ran into another one. The compiler is spitting back some weird errors. I think it has to do with dependencies, but I don't know that much about what is happening... y.tab.o&#40;.text+0x324&#41;&#58; In function `yyparse'&#58...
by whatisdot
Fri May 02, 2008 3:08 am
Forum: PS2 Development
Topic: Semantic Analysis and Parsing on the PS2
Replies: 5
Views: 4874

I have been playing around with flex and bison and trying to get them to link properly. I have been running into some problems, though. I keep getting this error when it comes to linking: /usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/../../../../ee/bin/ld&#58; y.tab.o&#58; Relocations in generic...
by whatisdot
Fri May 02, 2008 3:04 am
Forum: PS2 Development
Topic: Using the USB Keyboard
Replies: 16
Views: 10796

Yeah, I don't have a lot of experience with Subversion, but I'll look into it. This little adventure has also brought to my attention the need for a few more functions in LIBKBD. I was going to implement some "scanf" type functions that pull straight from the file stream instead of calling...