Re: [PATCH 1/2] ARM: mmu64: allow to disable null pointer trap on zero page

2020-10-15 Thread Sascha Hauer
On Wed, Oct 14, 2020 at 06:29:47PM +0200, Ahmad Fatoum wrote: > > > On 10/14/20 5:08 PM, Michael Tretter wrote: > > Barebox uses the zero page to trap NULL pointer dereferences. However, > > if the SDRAM starts at address 0x0, this makes the first page of the > > SDRAM inaccessible and makes it

Re: [PATCH 1/2] ARM: mmu64: allow to disable null pointer trap on zero page

2020-10-15 Thread Michael Tretter
On Thu, 15 Oct 2020 10:14:41 +0200, Ahmad Fatoum wrote: > On 10/15/20 9:33 AM, Michael Tretter wrote: > > On Wed, 14 Oct 2020 18:29:47 +0200, Ahmad Fatoum wrote: > >> On 10/14/20 5:08 PM, Michael Tretter wrote: > >>> Barebox uses the zero page to trap NULL pointer dereferences. However, > >>> if

Re: [PATCH 1/2] ARM: mmu64: allow to disable null pointer trap on zero page

2020-10-15 Thread Ahmad Fatoum
On 10/15/20 9:33 AM, Michael Tretter wrote: > On Wed, 14 Oct 2020 18:29:47 +0200, Ahmad Fatoum wrote: >> On 10/14/20 5:08 PM, Michael Tretter wrote: >>> Barebox uses the zero page to trap NULL pointer dereferences. However, >>> if the SDRAM starts at address 0x0, this makes the first page of

Re: [PATCH 1/2] ARM: mmu64: allow to disable null pointer trap on zero page

2020-10-14 Thread Ahmad Fatoum
On 10/14/20 5:08 PM, Michael Tretter wrote: > Barebox uses the zero page to trap NULL pointer dereferences. However, > if the SDRAM starts at address 0x0, this makes the first page of the > SDRAM inaccessible and makes it impossible to load images to offset 0x0 > in the SDRAM. > > Trapping

[PATCH 1/2] ARM: mmu64: allow to disable null pointer trap on zero page

2020-10-14 Thread Michael Tretter
Barebox uses the zero page to trap NULL pointer dereferences. However, if the SDRAM starts at address 0x0, this makes the first page of the SDRAM inaccessible and makes it impossible to load images to offset 0x0 in the SDRAM. Trapping NULL pointer dereferences on such systems is still desirable.