All of lore.kernel.org
 help / color / mirror / Atom feed
* More than 4G of memory on Sparc32?
@ 2007-09-26 19:21 Blue Swirl
  2007-09-26 19:57 ` Chris Newport
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Blue Swirl @ 2007-09-26 19:21 UTC (permalink / raw)
  To: sparclinux

Hi,

I've tried to add support to Qemu (and OpenBIOS) for more than 4G of
memory for the Sparc32 target. But now it seems that Linux can't use
this memory after all. The first show stopper is this code in
arch/sparc/prom/memory.c:

111                 /* Grrr, have to traverse the prom device tree ;( */
112                 node = prom_getchild(prom_root_node);
113                 node = prom_searchsiblings(node, "memory");
114                 num_regs = prom_getproperty(node, "available",
115                                             (char *) prom_reg_memlist,
116                                             sizeof(prom_reg_memlist));
117                 num_regs = (num_regs/sizeof(struct linux_prom_registers));
118                 for(iter=0; iter<num_regs; iter++) {
119                         prom_phys_avail[iter].start_adr 120                                 (char *) prom_reg_memlist[iter].phys_addr;
121                         prom_phys_avail[iter].num_bytes 122                                 (unsigned long)
prom_reg_memlist[iter].reg_size;
123                         prom_phys_avail[iter].theres_more 124                                 &prom_phys_avail[iter+1];
125                 }

Here prom_reg_memlist[iter].which_io is not used at all. It would be
needed to access the memory above the first 4G.

Some real Sparc32 machines could have >4G RAM (SC2000), maybe nobody
tried to run Linux on those. The BSDs aren't any better.

Will this ever be fixed? Anybody out there with a real machine and
lots of memory?

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-09-28 14:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-26 19:21 More than 4G of memory on Sparc32? Blue Swirl
2007-09-26 19:57 ` Chris Newport
2007-09-26 20:52 ` David Miller
2007-09-28 14:53 ` Blue Swirl

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.