This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

MMU execution permission fault in kernel space

Hi,

my 4k sectioned ttbr1 setup is write and readable, so that I can load executable code (the kernel there), when I want to branch there and hand start the kernel I'm receiving a permission fault. I'm no an expert (still) and it's pretty likely that I have overseen something configuration wise. 

My config:

sctrl:  =1<<0

mair0 = 0xFF

tcr: t1sz = 16, .tg1 = 0, all other entries are 0

flags:

block entry flags: ap = only_el1_read_write(0b00), attrIndex = mair0, ns = 0, valid = 1, contiguous = 0, pxn = 0, uxn = 0

1 lvl flags: ap = read_write(0b01), attrIndex = mair0, ns = 0, valid = 1, contiguous = 0, pxn = 0, uxn = 0

Exception:

ESR_EL1 = 0x8600000d

I'm very thankful for any input!

greets from Germany!

Parents Reply Children
No data