From 4a7d98477a4c81b03e50c95a954d34141d77b614 Mon Sep 17 00:00:00 2001 From: Christian Lamparter Date: Wed, 13 Oct 2010 21:39:17 +0200 Subject: [PATCH] carl9170 firmware: update pram size comment Only 16 kbytes are reserved for the program ram (+ stack), or at least visible for my customer device. Signed-off-by: Christian Lamparter --- carlfw/carl9170.lds | 6 +++--- carlfw/src/main.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/carlfw/carl9170.lds b/carlfw/carl9170.lds index 726a9e2..97dda68 100644 --- a/carlfw/carl9170.lds +++ b/carlfw/carl9170.lds @@ -1,9 +1,9 @@ /* * The carl9170 firwmare gets copied into the device's - * Program RAM (pram), which has a size of 32K, but + * Program RAM (pram), which has a size of 16K, but * also has to accomodate the stack the device uses, - * which starts at the top of the 32k, so we pretend - * that we just have 16k of pram. + * which starts at the top of the 16k, so we pretend + * that we just have 16256 (16k - 128) of pram. * * This section documents some of the other areas * mapped into the firmware processor's address space diff --git a/carlfw/src/main.c b/carlfw/src/main.c index 55acb44..b9239c8 100644 --- a/carlfw/src/main.c +++ b/carlfw/src/main.c @@ -159,8 +159,8 @@ static void __noreturn main_loop(void) /* * The bootcode will work with the device driver to load the firmware - * onto the device's Program SRAM. The Program SRAM has a size of 32 KB - * and also contains the stack, which grows down from 0x208000. + * onto the device's Program SRAM. The Program SRAM has a size of 16 KB + * and also contains the stack, which grows down from 0x204000. * * The Program SRAM starts at address 0x200000 on the device. * The firmware entry point (0x200004) is located in boot.S. -- 2.31.1