svc: use more distinctive value

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-02-20 00:00:06 +00:00
parent 5cfea5138e
commit 9db854871c
2 changed files with 2 additions and 2 deletions

View File

@@ -11327,7 +11327,7 @@ vbar_el1 0x40000800
lkmc_vector_trap_handler lkmc_vector_trap_handler
exc_type 0x11 exc_type 0x11
exc_type is LKMC_VECTOR_SYNC_SPX exc_type is LKMC_VECTOR_SYNC_SPX
ESR 0x56000000 ESR 0x56000042
SP 0x4200bba8 SP 0x4200bba8
ELR 0x40002470 ELR 0x40002470
SPSR 0x600003c5 SPSR 0x600003c5

View File

@@ -58,7 +58,7 @@ int main(void) {
printf("spsel 0x%" PRIx32 "\n", lkmc_sysreg_spsel_read()); printf("spsel 0x%" PRIx32 "\n", lkmc_sysreg_spsel_read());
printf("vbar_el1 0x%" PRIx64 "\n", lkmc_sysreg_vbar_el1_read()); printf("vbar_el1 0x%" PRIx64 "\n", lkmc_sysreg_vbar_el1_read());
lkmc_assert(myvar == 0); lkmc_assert(myvar == 0);
LKMC_SVC(0); LKMC_SVC(0x42);
lkmc_assert(myvar == 1); lkmc_assert(myvar == 1);
return 0; return 0;
} }