Skip to content

Commit

Permalink
rpi_1246_ab683001cb3ae4a7775e2b44f56c9207d3d672ff
Browse files Browse the repository at this point in the history
commit ab68300
Author: Phil Elwell <phil@raspberrypi.org>
Date:   Mon May 8 16:30:18 2017 +0100

    ARM: dts: bcm283x: Reserve first page for firmware
    
    The Raspberry Pi startup stub files for multi-core BCM27XX processors
    make the secondary CPUs spin until the corresponding mailbox is
    written. These stubs are loaded at physical address 0x00000xxx (as seen
    by the ARMs), but this page will be reused by the kernel unless it is
    explicitly reserved, causing the waiting cores to execute random code.
    
    Use the /memreserve/ Device Tree directive to mark the first page as
    off-limits to the kernel.
    
    See: raspberrypi/linux#1989
    
    Signed-off-by: Phil Elwell <phil@raspberrypi.org>


Gbp-Pq: Topic rpi
Gbp-Pq: Name rpi_1246_ab683001cb3ae4a7775e2b44f56c9207d3d672ff.patch
  • Loading branch information
Debian Kernel Team authored and raspbian-autopush committed Nov 9, 2018
1 parent 4ede9e2 commit 65bb6b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 0 additions & 4 deletions arch/arm/boot/dts/bcm2710-rpi-3-b.dts
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
/dts-v1/;

#ifdef RPI364
/memreserve/ 0x00000000 0x00001000;
#endif

#include "bcm2710.dtsi"
#include "bcm283x-rpi-smsc9514.dtsi"

Expand Down
2 changes: 2 additions & 0 deletions arch/arm/boot/dts/bcm283x.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
#include <dt-bindings/clock/bcm2835-aux.h>
#include <dt-bindings/gpio/gpio.h>

/memreserve/ 0x00000000 0x00001000;

/* This include file covers the common peripherals and configuration between
* bcm2835 and bcm2836 implementations, leaving the CPU configuration to
* bcm2835.dtsi and bcm2836.dtsi.
Expand Down

0 comments on commit 65bb6b3

Please sign in to comment.