Skip to content

Commit

Permalink
handle large segments count
Browse files Browse the repository at this point in the history
  • Loading branch information
tomvita committed Sep 26, 2020
1 parent e0a7a9b commit c355ab5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion server/source/noexs/include/gecko.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

#define VER_MAJOR (1)
#define VER_MINOR (1)
#define VER_PATCH (142)
#define VER_PATCH (143)

#define GECKO_BUFFER_SIZE (2048 * 32)
#define GECKO_BUFFER_SIZE2 (2048 * 4)
Expand Down
5 changes: 3 additions & 2 deletions server/source/noexs/source/commands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ static Result getmeminfo(Gecko::Context& ctx) {
u32 count = 0;
MemoryInfo info = {};
addr = 0;
requestCount = 10000;
requestCount = 0xEFFFFFFF;
m_heap_start = 0;
m_main_start = 0;
u32 mod = 0;
Expand All @@ -433,11 +433,12 @@ static Result getmeminfo(Gecko::Context& ctx) {
if (info.type == MemType_CodeMutable){
if (mod ==2 ) m_main_end = info.addr + info.size;
}
if(info.type == 0x10 || R_FAILED(rc)){
if (info.addr + info.size == 0x8000000000 || R_FAILED(rc)) {
break;
}
addr += info.size;
}
printf("Count = %d\n", count);
return rc;
}

Expand Down

0 comments on commit c355ab5

Please sign in to comment.