Skip to content

Commit

Permalink
Fix boot crash with zRAM size too large ( 300KB -> 292KB )
Browse files Browse the repository at this point in the history
  • Loading branch information
Repeerc authored and yuuki410 committed Jan 3, 2023
1 parent c677552 commit 7836e10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions OSLoader/Config/SystemConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#define MEM_COMPRESSION_ALGORITHM (MINILZO) //algorithm
#endif

#define TOTAL_MEM_PAGE (300)
#define TOTAL_MEM_PAGE (292)

#if VMRAM_USE_FTL
#if USE_TINY_PAGE
Expand All @@ -49,7 +49,7 @@
#define NUM_CACHEPAGE_VROM ( 160 )
#define NUM_CACHEPAGE_VRAM ( 40 )
#define ZRAM_SIZE ( (TOTAL_MEM_PAGE - NUM_CACHEPAGE_VROM - NUM_CACHEPAGE_VRAM) * 1024 )
#define ZRAM_COMPRESSED_SIZE ( ZRAM_SIZE * 3 ) // (Assume that the compression ratio is 0.33)
#define ZRAM_COMPRESSED_SIZE (int)( ZRAM_SIZE * 3 ) // (Assume that the compression ratio is 0.33)
#else
#define NUM_CACHEPAGE_VROM ( 64 )
#define NUM_CACHEPAGE_VRAM ( 64 )
Expand Down
2 changes: 0 additions & 2 deletions System/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,6 @@ uint32_t __attribute__((naked)) getCurStackAdr() {
}
extern uint32_t SYSTEM_STACK; // in ld script
void main() {
enableMemSwap(true);

void IRQ_ISR();
void SWI_ISR();
ll_set_irq_stack((uint32_t)&SYSTEM_STACK);
Expand Down

0 comments on commit 7836e10

Please sign in to comment.