Skip to content

Commit

Permalink
Merge pull request #285 from shyamanthrh/gcc12-fix
Browse files Browse the repository at this point in the history
Fix for issue #245
  • Loading branch information
chetan-rathore authored Jan 7, 2023
2 parents 275684b + 096150f commit 85566c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test_pool/peripherals/test_d003.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

static uint64_t l_uart_base;
static uint32_t int_id;
static void *branch_to_test;
static uint64_t branch_to_test;
static uint32_t test_fail;

static
Expand All @@ -40,7 +40,7 @@ esr(uint64_t interrupt_type, void *context)
uint32_t index = val_pe_get_index_mpid(val_pe_get_mpid());

/* Update the ELR to point to next instrcution */
val_pe_update_elr(context, (uint64_t)branch_to_test);
val_pe_update_elr(context, branch_to_test);

val_print(AVS_PRINT_ERR, "\n Error : Received Sync Exception type %d", interrupt_type);
val_set_status(index, RESULT_FAIL(g_sbsa_level, TEST_NUM, 01));
Expand Down Expand Up @@ -150,7 +150,7 @@ payload(void)
val_pe_install_esr(EXCEPT_AARCH64_SYNCHRONOUS_EXCEPTIONS, esr);
val_pe_install_esr(EXCEPT_AARCH64_SERROR, esr);

branch_to_test = &&exception_taken;
branch_to_test = (uint64_t)&&exception_taken;

if (count == 0) {
val_print(AVS_PRINT_WARN, "\n No UART defined by Platform ", 0);
Expand Down

0 comments on commit 85566c6

Please sign in to comment.