Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
yhzhang0128 committed Apr 6, 2022
1 parent 8ba7de6 commit 1f351dc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion earth/earth.S
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ _enter:
csrrc t1, mstatus, t0

/* Call main() of earth.c */
li sp, 0x08003000
li sp, 0x80003f80
call main
5 changes: 2 additions & 3 deletions earth/earth.lds
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ENTRY(_enter)

MEMORY
{
ram (arw!xi) : ORIGIN = 0x08000000, LENGTH = 0x2800
ram (arw!xi) : ORIGIN = 0x08000000, LENGTH = 0x2000
rom (irx!wa) : ORIGIN = 0x20400000, LENGTH = 0x400000
}

Expand Down Expand Up @@ -51,9 +51,8 @@ SECTIONS

.heap (NOLOAD) : ALIGN(8) {
PROVIDE( __heap_start = . );
. += __heap_size;
} >ram :ram
PROVIDE( __heap_end = 0x08002800 );
PROVIDE( __heap_end = 0x08003000 );

PROVIDE( bss_start = ADDR(.bss) );
PROVIDE( bss_end = ADDR(.bss) + SIZEOF(.bss) );
Expand Down
4 changes: 2 additions & 2 deletions library/egos.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#define FRAME_CACHE_END 0x80020000
#define FRAME_CACHE_START 0x80004000 /* 112KB frame cache */
/* earth interface */
#define GRASS_STACK_TOP 0x80003f80 /* ~8KB grass stack */
#define GRASS_STACK_TOP 0x80003f80 /* ~8KB earth/grass stack */
/* grass interface */
#define APPS_STACK_TOP 0x80002000 /* ~6KB app stack */
#define SYSCALL_ARG 0x80000400 /* ~1KB syscall args */
Expand All @@ -16,7 +16,7 @@
#define APPS_ENTRY 0x08005000 /* 12KB app code+data */
#define GRASS_SIZE 0x00002000
#define GRASS_ENTRY 0x08003000 /* 8KB grass code+data */
/* 12KB earth data+stack */
/* 12KB earth data */
/* earth code is in QSPI flash */

struct earth {
Expand Down

0 comments on commit 1f351dc

Please sign in to comment.