From 91bab76ab6246f686f46fc2ecead0e467bbab8a8 Mon Sep 17 00:00:00 2001 From: Astro Date: Thu, 31 Oct 2019 01:21:38 +0100 Subject: [PATCH] zynq::ddr: fix usable ram size --- src/zynq/ddr/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/zynq/ddr/mod.rs b/src/zynq/ddr/mod.rs index c981cfb..8a69731 100644 --- a/src/zynq/ddr/mod.rs +++ b/src/zynq/ddr/mod.rs @@ -184,9 +184,9 @@ impl DdrRam { pub fn size(&self) -> usize { #[cfg(feature = "target_zc706")] - let megabytes = 1024; + let megabytes = 511; #[cfg(feature = "target_cora_z7_10")] - let megabytes = 512; + let megabytes = 511; megabytes * 1024 * 1024 }