From 4104a2eeb984554aa1aa8e92edba601a6c98d626 Mon Sep 17 00:00:00 2001 From: Byron Lathi Date: Fri, 27 Oct 2023 20:41:50 -0700 Subject: [PATCH] Do a more sane string print first --- sw/kernel/kernel.c | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/sw/kernel/kernel.c b/sw/kernel/kernel.c index 2a111a8..5d2c291 100644 --- a/sw/kernel/kernel.c +++ b/sw/kernel/kernel.c @@ -1,22 +1,23 @@ #include -char* longstring = \ -"This is a very long string that is meant to test the loader.\ - We can only load one cluster so far, which means 8 sectors of\ - 512bytes, or a total of 4k. If there was any more data than this,\ - then we would have to traverse the fat to find the next cluster number.\ - This may not be that difficult, but the file will need to be large\ - enough to actually stretch that far. The kernel will probably be\ - that big in the future, but for now when it doesnt really do anything\ - then it can't really be tested."; +// char* longstring = \ +// "This is a very long string that is meant to test the loader.\ +// We can only load one cluster so far, which means 8 sectors of\ +// 512bytes, or a total of 4k. If there was any more data than this,\ +// then we would have to traverse the fat to find the next cluster number.\ +// This may not be that difficult, but the file will need to be large\ +// enough to actually stretch that far. The kernel will probably be\ +// that big in the future, but for now when it doesnt really do anything\ +// then it can't really be tested."; int main() { char* string = "this is a shorter string"; + cputs("Kernel"); cprintf("%s", string); - cprintf("Here is a long string: %s\n", longstring); + // cprintf("Here is a long string: %s\n", longstring); while(1);