Skip to content

Commit

Permalink
Merge pull request #1611 from ghaerr/mem2
Browse files Browse the repository at this point in the history
[cmds] Fix meminfo for PC-98 build
  • Loading branch information
ghaerr authored Jun 17, 2023
2 parents e17e08e + 4043623 commit ba439f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,9 @@ if [ "$1" = "auto" ]; then
cp pc98-1232.config .config
make kclean || clean_exit 9
rm elkscmd/sys_utils/clock.o
rm elkscmd/basic/*.o
rm elkscmd/sys_utils/ps.o
rm elkscmd/sys_utils/meminfo.o
rm elkscmd/basic/*.o
rm elkscmd/nano-X/*/*.o
make -j1 || clean_exit 10
fi
Expand Down
2 changes: 1 addition & 1 deletion elkscmd/sys_utils/meminfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ int main(int argc, char **argv)
perror("meminfo");
return 1;
}
if (!memread(fd, taskoff, ds, &task_table, MAX_TASKS*sizeof(task_table))) {
if (!memread(fd, taskoff, ds, &task_table, sizeof(task_table))) {
perror("taskinfo");
}
dump_heap(fd);
Expand Down

0 comments on commit ba439f9

Please sign in to comment.