Kernel crashing
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
{
|
{
|
||||||
"name": "la0",
|
"name": "la0",
|
||||||
"type": "la",
|
"type": "la",
|
||||||
"uuid": "51d5f9c5395344da8c48559f580e066a",
|
"uuid": "d9fdd9521e234ab2a085f0e0ef437289",
|
||||||
"trigin_en": false,
|
"trigin_en": false,
|
||||||
"trigout_en": false,
|
"trigout_en": false,
|
||||||
"auto_inserted": true,
|
"auto_inserted": true,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<efx:project name="super6502" description="" last_change_date="Sat August 26 2023 13:39:16" location="/home/byron/Projects/super6502/hw/efinix_fpga" sw_version="2023.1.150" last_run_state="pass" last_run_tool="efx_pgm" last_run_flow="bitstream" config_result_in_sync="true" design_ood="sync" place_ood="sync" route_ood="sync" xmlns:efx="http://www.efinixinc.com/enf_proj" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.efinixinc.com/enf_proj enf_proj.xsd">
|
<efx:project name="super6502" description="" last_change_date="Sat August 26 2023 16:07:19" location="/home/byron/Projects/super6502/hw/efinix_fpga" sw_version="2023.1.150" last_run_state="pass" last_run_tool="efx_pgm" last_run_flow="bitstream" config_result_in_sync="true" design_ood="sync" place_ood="sync" route_ood="sync" xmlns:efx="http://www.efinixinc.com/enf_proj" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.efinixinc.com/enf_proj enf_proj.xsd">
|
||||||
<efx:device_info>
|
<efx:device_info>
|
||||||
<efx:family name="Trion"/>
|
<efx:family name="Trion"/>
|
||||||
<efx:device name="T20F256"/>
|
<efx:device name="T20F256"/>
|
||||||
|
|||||||
@@ -1,7 +1,22 @@
|
|||||||
#include <conio.h>
|
#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() {
|
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);
|
while(1);
|
||||||
|
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ FEATURES {
|
|||||||
}
|
}
|
||||||
|
|
||||||
SYMBOLS {
|
SYMBOLS {
|
||||||
__STACKSIZE__: value = $0E00, type = weak;
|
__STACKSIZE__: value = $0200, type = weak;
|
||||||
__STACKSTART__: type = weak, value = $0800;
|
__STACKSTART__: type = weak, value = $0800;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user