Skip to content

Commit

Permalink
Fix #83, Unaligned #81
Browse files Browse the repository at this point in the history
  • Loading branch information
yuuki410 committed Nov 20, 2022
1 parent 7995d65 commit b74c635
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 19 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,6 @@ elftosb
sbloader
elftosb1
rsrctool
sbtoelf
sbtoelf
edb
sysigner
31 changes: 15 additions & 16 deletions OSLoader/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -107,22 +107,6 @@ add_custom_target(
COMMAND ${CMAKE_SOURCE_DIR}/tools/sbtools_win/sb_loader -f ${CMAKE_CURRENT_BINARY_DIR}/OSLoader.sb
DEPENDS OSLoader.sb
)

add_custom_target(
edb_flash_loader
COMMAND ${CMAKE_SOURCE_DIR}/tools/edb -r -s -f ${CMAKE_CURRENT_BINARY_DIR}/OSLoader.sb 1408 b
DEPENDS OSLoader.sb
)

add_custom_target(
mscmode
COMMAND ${CMAKE_SOURCE_DIR}/tools/edb -m
)

add_custom_target(
reboot
COMMAND ${CMAKE_SOURCE_DIR}/tools/edb -r
)
else()
if(EXISTS ${CMAKE_SOURCE_DIR}/tools/sbtools/ )
add_custom_target(
Expand All @@ -140,3 +124,18 @@ message(FATAL_ERROR "Please build tools/sbtools first")
endif(EXISTS ${CMAKE_SOURCE_DIR}/tools/sbtools/elftosb)
endif()

add_custom_target(
edb_flash_loader
COMMAND ${CMAKE_SOURCE_DIR}/tools/edb -r -s -f ${CMAKE_CURRENT_BINARY_DIR}/OSLoader.sb 1408 b
DEPENDS OSLoader.sb
)

add_custom_target(
mscmode
COMMAND ${CMAKE_SOURCE_DIR}/tools/edb -m
)

add_custom_target(
reboot
COMMAND ${CMAKE_SOURCE_DIR}/tools/edb -r
)
4 changes: 2 additions & 2 deletions OSLoader/VmMgr/vmMgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ static inline __attribute__((target("thumb"))) CachePageInfo_t *search_cache_pag
}

#if USE_TINY_PAGE
static uint8_t page_save_wr_buf[2048] __attribute__((aligned(4096)));
static uint8_t page_save_rd_buf[2048] __attribute__((aligned(4096)));
static uint8_t page_save_wr_buf[2048]; // __attribute__((aligned(4096)));
static uint8_t page_save_rd_buf[2048]; // __attribute__((aligned(4096)));
static uint32_t pagebuf_last_rd = 0xFFFFFFFF;
#endif

Expand Down
1 change: 1 addition & 0 deletions System/kcasporing_gl.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ void vGL_putString(int x0, int y0, char *s, int fg, int bg, int fontSize) {
if (y > VIR_LCD_PIX_H) {
break;
}
break;
}
}
}
Expand Down

0 comments on commit b74c635

Please sign in to comment.