Print this page
trap: don't mislead about SCTLR.V being not set
It's been quite a while since the exception table got moved via the high
vector bit (SCTLR.V).

*** 14,25 **** #include <sys/asm_linkage.h> #include <sys/cpu_asm.h> /* * Create a section into which to place the exception vector, such that we can ! * force it to be mapped where it needs to be. Currently at 0x0, since ! * we don't set the high vector bit (SCTLR.V) * * Each instruction in the vector jumps to its own address + 24, which is the * matching entry in exception_table. We do this to insure that we get * effectively infinite displacement, which we can't achieve in one * instruction otherwise (and gas complains). --- 14,24 ---- #include <sys/asm_linkage.h> #include <sys/cpu_asm.h> /* * Create a section into which to place the exception vector, such that we can ! * force it to be mapped where it needs to be. * * Each instruction in the vector jumps to its own address + 24, which is the * matching entry in exception_table. We do this to insure that we get * effectively infinite displacement, which we can't achieve in one * instruction otherwise (and gas complains).