Skip to content

Commit

Permalink
test commit to check pc
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishek-samsung committed Nov 26, 2024
1 parent abe3c75 commit da33e5f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion apps/examples/hello/hello_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,15 @@
* hello_main
****************************************************************************/

__attribute__ ((__noinline__))
void * get_pc () { return __builtin_return_address(0); }

#ifdef CONFIG_BUILD_KERNEL
int main(int argc, FAR char *argv[])
#else
int hello_main(int argc, char *argv[])
#endif
{
printf("Hello, World!!\n");
printf("Hello, World!!, pc : %p\n", get_pc());
return 0;
}
4 changes: 2 additions & 2 deletions build/configs/rtl8730e/loadable_ext_ddr/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ CONFIG_NUM_APPS=1
CONFIG_SUPPORT_COMMON_BINARY=y
CONFIG_COMMON_BINARY_VERSION="200204"
CONFIG_COMMON_BINARY_NAME="common"
CONFIG_COMMON_BIN_STATIC_RAMSIZE=524288
CONFIG_COMMON_BIN_STATIC_RAMSIZE=1048576
CONFIG_NUM_L2_PER_APP=4
CONFIG_BUILD_PROTECTED=y
CONFIG_BUILD_2PASS=y
Expand Down Expand Up @@ -1743,7 +1743,7 @@ CONFIG_APP1_INFO=y
CONFIG_APP1_BIN_NAME="app1"
CONFIG_APP1_BIN_TYPE="ELF"
CONFIG_APP1_BIN_VER=190412
CONFIG_APP1_BIN_DYN_RAMSIZE=5242880
CONFIG_APP1_BIN_DYN_RAMSIZE=20971520
CONFIG_APP1_BIN_LOADING_PRIORITY="LOW"
CONFIG_APP1_MAIN_STACKSIZE=8192
CONFIG_APP1_MAIN_PRIORITY=180
Expand Down

0 comments on commit da33e5f

Please # to comment.