zynq::ddr: fix usable ram size

This commit is contained in:
Astro 2019-10-31 01:21:38 +01:00
parent 43501003f9
commit 91bab76ab6

View File

@ -184,9 +184,9 @@ impl DdrRam {
pub fn size(&self) -> usize { pub fn size(&self) -> usize {
#[cfg(feature = "target_zc706")] #[cfg(feature = "target_zc706")]
let megabytes = 1024; let megabytes = 511;
#[cfg(feature = "target_cora_z7_10")] #[cfg(feature = "target_cora_z7_10")]
let megabytes = 512; let megabytes = 511;
megabytes * 1024 * 1024 megabytes * 1024 * 1024
} }