raspberry pi 4 peripheral address

2021-04-19 Thread Alessandro Pistocchi
Hi, I am playing around with openbsd kernel source code on a raspberry pi 4. I have a couple of questions: Does openbsd use low or high peripheral mode? At what virtual address does openbsd map the peripheral base address ? I had a look at the source code but that part is still a bit cryptic for

Re: raspberry pi 4 peripheral address

2021-04-20 Thread Alessandro Pistocchi
dress space ) to a much higher memory location. Best, Alessandro On Tue, Apr 20, 2021 at 8:22 AM Stuart Henderson wrote: > On 2021/04/20 00:46, Alessandro Pistocchi wrote: > > Hi, > > > > I am playing around with openbsd kernel source code on a raspberry pi 4. > >

panic with uvm_map/uvm_unmap on arm64

2021-04-23 Thread Alessandro Pistocchi
Hi, I am using openbsd 6.8 on a raspberry pi 4. I have a problem and wonder if this is an arm or arm64 specific bug. In my code I am creating an uvm_object and mapping it in kernel memory using uvm_map. uvm_map returns an address which is not aligned with PAGE_SIZE and later when I call uvm_unma

gic interrupt 27 on arm64

2021-04-28 Thread Alessandro Pistocchi
Hi all, in the kernel I see the code below (file: arm64/dev/ampint.c lines:643-666). void ampintc_irq_handler(void *frame) { struct ampintc_softc *sc = ampintc; struct intrhand *ih; void *arg; uint32_t iack_val; int irq, pri, s, handled; iack_val = ampintc_iack(); #ifdef DEBUG_INTC if (iack_val !

Re: gic interrupt 27 on arm64

2021-05-01 Thread Alessandro Pistocchi
nis: > > > From: Alessandro Pistocchi > > > Date: Thu, 29 Apr 2021 00:50:32 +0200 > > > Content-Type: text/plain; charset="UTF-8" > > > > > > Hi all, > > > in the kernel I see the code below (file: arm64/dev/ampint.c >

Raspberry pi boot loader and do_el0_error

2024-04-23 Thread Alessandro Pistocchi
Hi all, I am writing a custom boot loader for openbsd the raspberry 4 and 400. I have seen on the internet that there used to be a problem with earlier versions of u-boot leading to a panic due to a call to do_el0_error(), just after setting the address for bwfm0. I have the exact same crash o