Lulkafe / xv6_rpi_port

An xv6 port to Raspberry Pi 2
Other
1 stars 1 forks source link

Improper memory access control #1

Open Lulkafe opened 8 years ago

Lulkafe commented 8 years ago

I got an output like "oops could read 0x80000000 = 18" on the execution of "usertests." I guess the memory attributes (like domains?) or improper settings about the mmu cause the problem.

Lulkafe commented 8 years ago

If I turn on access check to domain 0 (line 128-129 in entry.s),

ldr r1, =0x1 mcr p15, 0, r1, c3, c0, 0

Then, I get another error:

pid 1 initcode: trap 4 on cpu 0 addr 0x4 spsr 0x110 cpsr 0x193 ifar 0xef631fe9--kill proc cpu0: panic: init exiting 43 80020bf4 8bffff88 1 800205bc 78 8bffff60 8001ac5c 800ab238 0