zynq::ddr: fix usable ram size

master
Astro 2019-10-31 01:21:38 +01:00
parent 43501003f9
commit 91bab76ab6
1 changed files with 2 additions and 2 deletions

View File

@ -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
}