Search found 6 matches
- Thu Sep 10, 2009 11:57 pm
- Forum: Gamecube/Wii Development
- Topic: Segment Registers set to 0x8000 during process start?
- Replies: 0
- Views: 3437
Segment Registers set to 0x8000 during process start?
Is there a reason why the SR's get set to 0x8000 and not just 0x0 during BAT setup?
- Thu Sep 10, 2009 11:54 pm
- Forum: Gamecube/Wii Development
- Topic: alloc from mem2?
- Replies: 4
- Views: 7473
Re: alloc from mem2?
Becareful using this, a lot of memory goes to waste in certain instances due to internal fragmentation since MEM1 and MEM2 are not contiguous memory. For example, the way memory is allocated with sbrk and the way Wii has 23 MB and 64 MB seperately leads to major internal fragmentation. If you were ...
- Thu Sep 10, 2009 11:46 pm
- Forum: Gamecube/Wii Development
- Topic: Trying to understand the exception
- Replies: 5
- Views: 8270
Re: Trying to understand the exception
You've most likely corrupted/wrote to High MEM1 memory where the loader code is stored. When your application exits, an attempt is made to re-load the loader (typically HBC) from that memory location. I'm not sure if LibOGC currently protects against this in sbrk, so that LibOGC itself does not ...
- Sat Aug 22, 2009 1:09 am
- Forum: devkitPPC
- Topic: MMU / Paging support, ever?
- Replies: 0
- Views: 4340
MMU / Paging support, ever?
I see that LibOGC enables the BATs, and that the Wii loader format appears to have support for a simulated memory size: Is anyone looking into possibly adding MMU/ Paging support into the official LibOGC package? Does the IOS support anything to set this up? It's odd that the loader format ...
- Thu Aug 13, 2009 11:27 pm
- Forum: devkitPPC
- Topic: logb missing from Math.h?
- Replies: 1
- Views: 3260
Re: logb missing from Math.h?
I guess this is because newlib-1.17.0 does not support it officially/documented. libm.a definately has this in it, however, I guess newlib decided to not include it in math.h: /* Functions that are not documented, and are not in <math.h>. */ ... extern double logb __P((double)); ... Guess I'll just ...
- Thu Aug 13, 2009 7:16 pm
- Forum: devkitPPC
- Topic: logb missing from Math.h?
- Replies: 1
- Views: 3260
logb missing from Math.h?
Is there a reason double logb(double) is not supported in Math.h even though it is in the ISO C standard?
I see it for C++ in tr1\cmath, however, it is not available in C.
Thanks.
I see it for C++ in tr1\cmath, however, it is not available in C.
Thanks.