Skip to content

Commit

Permalink
Update sstar.c
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorxda authored Jan 30, 2024
1 parent 35d203e commit 3e7944b
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/hal/sstar.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,7 @@ static unsigned long sstar_media_mem() {

#ifndef STANDALONE_LIBRARY
static unsigned long sstar_totalmem(unsigned long *media_mem) {
uint32_t val = 0;

*media_mem = sstar_media_mem();
if (mem_reg(MSTAR_ADDR, &val, OP_READ)) {
return (1 << (val >> 12)) * 1024 - 1;
}

return *media_mem + kernel_mem();
}

Expand Down

0 comments on commit 3e7944b

Please sign in to comment.