Skip to content

Commit

Permalink
Loader should use GetMemorySize() instead of using a hardcoded memory…
Browse files Browse the repository at this point in the history
… size.
  • Loading branch information
sp193 committed Jan 3, 2019
1 parent 3baee87 commit 3bc1603
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion loader/loader.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
static void wipeUserMem(void)
{
int i;
for (i = 0x100000; i < 0x2000000; i += 64) {
for (i = 0x100000; i < GetMemorySize(); i += 64) {
asm volatile(
"\tsq $0, 0(%0) \n"
"\tsq $0, 16(%0) \n"
Expand Down

0 comments on commit 3bc1603

Please sign in to comment.