From 605636b67285a178ea99825dd726bd9bdcf692a4 Mon Sep 17 00:00:00 2001 From: Rudolf Cornelissen Date: Tue, 22 Nov 2005 14:57:12 +0000 Subject: [PATCH] added 512Mb memory detection. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15069 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/accelerants/nvidia/engine/nv_info.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/add-ons/accelerants/nvidia/engine/nv_info.c b/src/add-ons/accelerants/nvidia/engine/nv_info.c index 075817320f..8639ff820d 100644 --- a/src/add-ons/accelerants/nvidia/engine/nv_info.c +++ b/src/add-ons/accelerants/nvidia/engine/nv_info.c @@ -3042,7 +3042,7 @@ static void getRAMsize_arch_nv10_20_30_40(void) default: LOG(8,("INFO: (Memory detection) Strapinfo value is: $%08x\n", strapinfo)); - switch ((strapinfo & 0x1ff00000) >> 20) + switch ((strapinfo & 0x3ff00000) >> 20) { case 2: si->ps.memory_size = 2 * 1024 * 1024; @@ -3068,6 +3068,9 @@ static void getRAMsize_arch_nv10_20_30_40(void) case 256: si->ps.memory_size = 256 * 1024 * 1024; break; + case 512: + si->ps.memory_size = 512 * 1024 * 1024; + break; default: si->ps.memory_size = 16 * 1024 * 1024;