Ryan O'Leary has uploaded this change for review.

View Change

em100: Increase maximum ROM size to 64MB

The previous maximum ROM size was 16MB. This is necessary to use em100
for emulating flash parts larger than 16MB, but I do not make any
promise that all flash parts larger than 16MB will work.

Change-Id: I94385eb9a46853e50550aa43aaa4822f24a0b095
Signed-off-by: Ryan O'Leary <ryanoleary@google.com>
---
M em100.c
1 file changed, 3 insertions(+), 3 deletions(-)

git pull ssh://review.coreboot.org:29418/em100 refs/changes/45/28945/1
diff --git a/em100.c b/em100.c
index d4c215a..4673266 100644
--- a/em100.c
+++ b/em100.c
@@ -748,8 +748,8 @@
}

if (read_filename) {
- /* largest size - 16MB */
- int maxlen = desiredchip ? chip->size : 0x1000000;
+ /* largest size - 64MB */
+ int maxlen = desiredchip ? chip->size : 0x4000000;
void *data = malloc(maxlen);
if (data == NULL) {
printf("FATAL: couldn't allocate memory\n");
@@ -775,7 +775,7 @@
}

if (filename) {
- int maxlen = 0x1000000; /* largest size - 16MB */
+ int maxlen = 0x4000000; /* largest size - 64MB */
void *data = malloc(maxlen);
if (data == NULL) {
printf("FATAL: couldn't allocate memory\n");

To view, visit change 28945. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: em100
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I94385eb9a46853e50550aa43aaa4822f24a0b095
Gerrit-Change-Number: 28945
Gerrit-PatchSet: 1
Gerrit-Owner: Ryan O'Leary (1002134)