mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
svc: use more distinctive value
This commit is contained in:
@@ -11327,7 +11327,7 @@ vbar_el1 0x40000800
|
||||
lkmc_vector_trap_handler
|
||||
exc_type 0x11
|
||||
exc_type is LKMC_VECTOR_SYNC_SPX
|
||||
ESR 0x56000000
|
||||
ESR 0x56000042
|
||||
SP 0x4200bba8
|
||||
ELR 0x40002470
|
||||
SPSR 0x600003c5
|
||||
|
||||
@@ -58,7 +58,7 @@ int main(void) {
|
||||
printf("spsel 0x%" PRIx32 "\n", lkmc_sysreg_spsel_read());
|
||||
printf("vbar_el1 0x%" PRIx64 "\n", lkmc_sysreg_vbar_el1_read());
|
||||
lkmc_assert(myvar == 0);
|
||||
LKMC_SVC(0);
|
||||
LKMC_SVC(0x42);
|
||||
lkmc_assert(myvar == 1);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user