Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 112321
b: refs/heads/master
c: 3319f5e
h: refs/heads/master
i:
  112319: c0588d6
v: v3
  • Loading branch information
Nicolas Pitre authored and Russell King committed Oct 2, 2008
1 parent b1006c8 commit c7cbed7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4ba3f7c55938d7e51e23c1feedd035dd46716ae7
refs/heads/master: 3319f5e51a20f3e3c59ed7dac9fc2d5c89aa2d9f
9 changes: 2 additions & 7 deletions trunk/arch/arm/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -478,18 +478,13 @@ request_standard_resources(struct meminfo *mi, struct machine_desc *mdesc)
kernel_data.end = virt_to_phys(&_end - 1);

for (i = 0; i < mi->nr_banks; i++) {
unsigned long virt_start, virt_end;

if (mi->bank[i].size == 0)
continue;

virt_start = __phys_to_virt(mi->bank[i].start);
virt_end = virt_start + mi->bank[i].size - 1;

res = alloc_bootmem_low(sizeof(*res));
res->name = "System RAM";
res->start = __virt_to_phys(virt_start);
res->end = __virt_to_phys(virt_end);
res->start = mi->bank[i].start;
res->end = mi->bank[i].start + mi->bank[i].size - 1;
res->flags = IORESOURCE_MEM | IORESOURCE_BUSY;

request_resource(&iomem_resource, res);
Expand Down

0 comments on commit c7cbed7

Please sign in to comment.