diff options
author | Alexis211 <alexis211@gmail.com> | 2009-11-15 19:33:04 +0100 |
---|---|---|
committer | Alexis211 <alexis211@gmail.com> | 2009-11-15 19:33:04 +0100 |
commit | 3833a92d5823f0f54030dedbcadbda4ef8583b41 (patch) | |
tree | 79b7a82191d7bc9e07debd7c9377c71809828a1a /Source/Kernel/Core | |
parent | ca1b573ef87498595a30b757d6d9c66d12d14ae6 (diff) | |
download | Melon-3833a92d5823f0f54030dedbcadbda4ef8583b41.tar.gz Melon-3833a92d5823f0f54030dedbcadbda4ef8583b41.zip |
Screwy implementation of FATFS::read
Diffstat (limited to 'Source/Kernel/Core')
-rw-r--r-- | Source/Kernel/Core/Sys.ns.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Kernel/Core/Sys.ns.cpp b/Source/Kernel/Core/Sys.ns.cpp index eeb92ee..49b2725 100644 --- a/Source/Kernel/Core/Sys.ns.cpp +++ b/Source/Kernel/Core/Sys.ns.cpp @@ -83,7 +83,7 @@ void dumpRegs(registers_t *regs, VirtualTerminal& vt) { void stackTrace(u32int ebp, VirtualTerminal& vt, u32int maxframes) { u32int *stack = (u32int*)ebp; - for (u32int i = 0; i < maxframes and (u32int)stack > 0xC0000000; i++) { + for (u32int i = 0; i < maxframes and (u32int)stack > 0xC0000000 and (u32int)stack < (ebp + 0x10000); i++) { vt << "Frame: " << (u32int)stack << " n:" << stack[0] << " r:" << stack[1] << "\n"; stack = (u32int*)stack[0]; } |