Skip to content

Commit

Permalink
Add the new postcode feature for the system runing trace.
Browse files Browse the repository at this point in the history
  • Loading branch information
At-EC committed Aug 31, 2024
1 parent 3d05704 commit 95a7f02
Show file tree
Hide file tree
Showing 24 changed files with 601 additions and 645 deletions.
6 changes: 4 additions & 2 deletions .github/remote_build/native_gcc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ target_compile_options(${PROJECT_NAME} PRIVATE
$<$<COMPILE_LANG_AND_ID:C,Clang,GNU>:-Wextra>
$<$<COMPILE_LANG_AND_ID:C,Clang,GNU>:-Wpedantic>
$<$<COMPILE_LANG_AND_ID:C,Clang,GNU>:-Werror>
$<$<COMPILE_LANG_AND_ID:C,Clang,GNU>:-Wconversion>
# $<$<COMPILE_LANG_AND_ID:C,Clang,GNU>:-Wconversion>
$<$<COMPILE_LANG_AND_ID:C,Clang>:-Weverything>

# $<$<COMPILE_LANG_AND_ID:C,Clang>:-Wsign-conversion>

# Suppressions required to build clean with clang.
$<$<COMPILE_LANG_AND_ID:C,Clang>:-Wno-unused-macros>
$<$<COMPILE_LANG_AND_ID:C,Clang>:-Wno-padded>
Expand All @@ -43,6 +44,7 @@ target_compile_options(${PROJECT_NAME} PRIVATE
$<$<COMPILE_LANG_AND_ID:C,Clang>:-Wno-format-truncation>
$<$<COMPILE_LANG_AND_ID:C,Clang>:-Wno-int-to-pointer-cast>
$<$<COMPILE_LANG_AND_ID:C,Clang>:-Wno-pointer-to-int-cast>
$<$<COMPILE_LANG_AND_ID:C,Clang>:-Wno-sign-conversion>
$<$<COMPILE_LANG_AND_ID:C,Clang>:-Wno-cast-align> )

target_link_libraries(${PROJECT_NAME} atos_kernel)
8 changes: 4 additions & 4 deletions .github/remote_build/native_gcc/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ extern "C" {
#endif

/* Local defined the kernel thread stack and error postcode */
#define _PC_CMPT_FAILED PC_FAILED(PC_CMPT_KERNEL)
#define SAMPLE_THREAD_STACK_SIZE (1024u)
#define _PCER PC_IER(PC_OS_CMPT_KERNEL_2)
#define SAMPLE_THREAD_STACK_SIZE (1024u)

OS_THREAD_DEFINE(sample_thread, SAMPLE_THREAD_STACK_SIZE, 5);

Expand All @@ -40,8 +40,8 @@ int main(void)

/* At_RTOS kernel running starts */
os.schedule_run();
D_ASSERT(0);

RUN_UNREACHABLE();
while(1) {};
}

Expand Down
Loading

0 comments on commit 95a7f02

Please sign in to comment.