Kernel crashing

This commit is contained in:
Byron Lathi
2023-08-26 23:15:36 +00:00
parent eba24c2990
commit b2b3b84bc4
4 changed files with 19 additions and 4 deletions

View File

@@ -1,7 +1,22 @@
#include <conio.h>
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() {
cprintf("Hello, world!\r\n");
char* string = "this is a shorter string";
cprintf("%s", string);
cprintf("Here is a long string: %s\r\n", longstring);
while(1);

View File

@@ -42,7 +42,7 @@ FEATURES {
}
SYMBOLS {
__STACKSIZE__: value = $0E00, type = weak;
__STACKSIZE__: value = $0200, type = weak;
__STACKSTART__: type = weak, value = $0800;
}