Skip to content

Commit

Permalink
CLI: plain fix; NVFS: Turn debugging off
Browse files Browse the repository at this point in the history
  • Loading branch information
NDRAEY committed Jul 30, 2024
1 parent f50c6ab commit 7ba0128
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions kernel/src/extra/cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -575,13 +575,15 @@ uint32_t CLI_PLAIN(uint32_t argc, char** argv) {
return 1;
}

size_t address = htoi(argv[1] + 2);
size_t address = htoi(argv[1]);

qemu_note("Address is: %x", address);

FILE* file = fopen(argv[2], "rb");

size_t filesize = fsize(file);

qemu_log("FILE SIZE IS: %d", filesize);
qemu_note("File size is: %d", filesize);

void* a = kmalloc_common(ALIGN(filesize, PAGE_SIZE), PAGE_SIZE);
memset(a, 0, ALIGN(filesize, PAGE_SIZE));
Expand Down
2 changes: 1 addition & 1 deletion kernel/src/fs/nvfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include "fs/fsm.h"
#include "lib/php/str_replace.h"

bool nvfs_debug = true;
bool nvfs_debug = false;

NVFS_DECINFO* nvfs_decode(const char* Name) {
NVFS_DECINFO* info = kcalloc(sizeof(NVFS_DECINFO), 1);
Expand Down
Binary file removed ramdisk/mt
Binary file not shown.
Binary file removed ramdisk/zasm
Binary file not shown.

0 comments on commit 7ba0128

Please sign in to comment.