hw/arm/boot: pass an address limit to and return size from load_dtb()
commitfee8ea12eba366db5ef8f72478cb746bda375d6f
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 12 Sep 2014 13:06:50 +0000 (12 14:06 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 12 Sep 2014 13:06:50 +0000 (12 14:06 +0100)
tree1b17fc91d9af50058249fc530168649b3fffa5b3
parent4c4bf654746eae5a042bde6c150d534d8849b762
hw/arm/boot: pass an address limit to and return size from load_dtb()

Add an address limit input parameter to load_dtb() so that we can
tell load_dtb() how much memory the dtb is allowed to consume. If
the dtb doesn't fit, return 0, otherwise return the actual size of
the loaded dtb.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Message-id: 1410453915-9344-3-git-send-email-ard.biesheuvel@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/boot.c