mirror of
https://github.com/ringtailsoftware/uvm32.git
synced 2026-06-06 06:53:39 +00:00
Fix bug where memory was being used instead of extram when reading cstring from extram
This commit is contained in:
parent
8a0604fc8d
commit
b1b4cbf583
4 changed files with 101 additions and 7 deletions
|
|
@ -61,6 +61,14 @@ void main(void) {
|
|||
p[5] = '\0';
|
||||
println(p); // try to print from extram (terminated)
|
||||
} break;
|
||||
case TEST11: {
|
||||
// pass a string beyond end of ram
|
||||
println((uint32_t)0xFFFFFFFF);
|
||||
} break;
|
||||
case TEST12: {
|
||||
// pass a string beyond end of MMIO region
|
||||
println((uint32_t)UVM32_EXTRAM_BASE + 8); // extram has been shrunk, this is now out of bounds, or no terminator found
|
||||
} break;
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue