diff options
author | Yinghai Lu <yinghai@kernel.org> | 2010-02-10 04:20:10 -0500 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2010-02-10 20:47:17 -0500 |
commit | 97445c3b86e0b64e059b4829a7193f8e26fb5bfc (patch) | |
tree | 32ec570ee5f4fc70d7f5c69ad2360f0d1304299c /arch/x86/pci | |
parent | 3e3da00c01d050307e753fb7b3e84aefc16da0d0 (diff) |
x86/pci: Use u64 instead of size_t in amd_bus.c
Prepare to enable it for 32bit.
-v2: remove not needed cast
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
LKML-Reference: <1265793639-15071-7-git-send-email-yinghai@kernel.org>
Acked-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/x86/pci')
-rw-r--r-- | arch/x86/pci/amd_bus.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/arch/x86/pci/amd_bus.c b/arch/x86/pci/amd_bus.c index ae50b8fa0c60..f06bb1b4a80a 100644 --- a/arch/x86/pci/amd_bus.c +++ b/arch/x86/pci/amd_bus.c | |||
@@ -82,8 +82,8 @@ static int __init early_fill_mp_bus_info(void) | |||
82 | struct pci_root_info *info; | 82 | struct pci_root_info *info; |
83 | u32 reg; | 83 | u32 reg; |
84 | struct resource *res; | 84 | struct resource *res; |
85 | size_t start; | 85 | u64 start; |
86 | size_t end; | 86 | u64 end; |
87 | struct range range[RANGE_NUM]; | 87 | struct range range[RANGE_NUM]; |
88 | u64 val; | 88 | u64 val; |
89 | u32 address; | 89 | u32 address; |
@@ -173,7 +173,7 @@ static int __init early_fill_mp_bus_info(void) | |||
173 | 173 | ||
174 | info = &pci_root_info[j]; | 174 | info = &pci_root_info[j]; |
175 | printk(KERN_DEBUG "node %d link %d: io port [%llx, %llx]\n", | 175 | printk(KERN_DEBUG "node %d link %d: io port [%llx, %llx]\n", |
176 | node, link, (u64)start, (u64)end); | 176 | node, link, start, end); |
177 | 177 | ||
178 | /* kernel only handle 16 bit only */ | 178 | /* kernel only handle 16 bit only */ |
179 | if (end > 0xffff) | 179 | if (end > 0xffff) |
@@ -207,7 +207,7 @@ static int __init early_fill_mp_bus_info(void) | |||
207 | address = MSR_K8_TOP_MEM1; | 207 | address = MSR_K8_TOP_MEM1; |
208 | rdmsrl(address, val); | 208 | rdmsrl(address, val); |
209 | end = (val & 0xffffff800000ULL); | 209 | end = (val & 0xffffff800000ULL); |
210 | printk(KERN_INFO "TOM: %016lx aka %ldM\n", end, end>>20); | 210 | printk(KERN_INFO "TOM: %016llx aka %lldM\n", end, end>>20); |
211 | if (end < (1ULL<<32)) | 211 | if (end < (1ULL<<32)) |
212 | subtract_range(range, RANGE_NUM, 0, end - 1); | 212 | subtract_range(range, RANGE_NUM, 0, end - 1); |
213 | 213 | ||
@@ -246,7 +246,7 @@ static int __init early_fill_mp_bus_info(void) | |||
246 | info = &pci_root_info[j]; | 246 | info = &pci_root_info[j]; |
247 | 247 | ||
248 | printk(KERN_DEBUG "node %d link %d: mmio [%llx, %llx]", | 248 | printk(KERN_DEBUG "node %d link %d: mmio [%llx, %llx]", |
249 | node, link, (u64)start, (u64)end); | 249 | node, link, start, end); |
250 | /* | 250 | /* |
251 | * some sick allocation would have range overlap with fam10h | 251 | * some sick allocation would have range overlap with fam10h |
252 | * mmconf range, so need to update start and end. | 252 | * mmconf range, so need to update start and end. |
@@ -272,13 +272,13 @@ static int __init early_fill_mp_bus_info(void) | |||
272 | endx = fam10h_mmconf_start - 1; | 272 | endx = fam10h_mmconf_start - 1; |
273 | update_res(info, start, endx, IORESOURCE_MEM, 0); | 273 | update_res(info, start, endx, IORESOURCE_MEM, 0); |
274 | subtract_range(range, RANGE_NUM, start, endx); | 274 | subtract_range(range, RANGE_NUM, start, endx); |
275 | printk(KERN_CONT " ==> [%llx, %llx]", (u64)start, endx); | 275 | printk(KERN_CONT " ==> [%llx, %llx]", start, endx); |
276 | start = fam10h_mmconf_end + 1; | 276 | start = fam10h_mmconf_end + 1; |
277 | changed = 1; | 277 | changed = 1; |
278 | } | 278 | } |
279 | if (changed) { | 279 | if (changed) { |
280 | if (start <= end) { | 280 | if (start <= end) { |
281 | printk(KERN_CONT " %s [%llx, %llx]", endx?"and":"==>", (u64)start, (u64)end); | 281 | printk(KERN_CONT " %s [%llx, %llx]", endx ? "and" : "==>", start, end); |
282 | } else { | 282 | } else { |
283 | printk(KERN_CONT "%s\n", endx?"":" ==> none"); | 283 | printk(KERN_CONT "%s\n", endx?"":" ==> none"); |
284 | continue; | 284 | continue; |
@@ -301,7 +301,7 @@ static int __init early_fill_mp_bus_info(void) | |||
301 | address = MSR_K8_TOP_MEM2; | 301 | address = MSR_K8_TOP_MEM2; |
302 | rdmsrl(address, val); | 302 | rdmsrl(address, val); |
303 | end = (val & 0xffffff800000ULL); | 303 | end = (val & 0xffffff800000ULL); |
304 | printk(KERN_INFO "TOM2: %016lx aka %ldM\n", end, end>>20); | 304 | printk(KERN_INFO "TOM2: %016llx aka %lldM\n", end, end>>20); |
305 | subtract_range(range, RANGE_NUM, 1ULL<<32, end - 1); | 305 | subtract_range(range, RANGE_NUM, 1ULL<<32, end - 1); |
306 | } | 306 | } |
307 | 307 | ||