POWER3 / IBM 7028-6E1
Lyubomir Grigorov
lyubomir at grigorovl.eu
Tue Jan 10 18:44:50 UTC 2012
> There could be even some memory problem, but this is just a wild uneducated
> guess.
I localized the problem to the following source below. From this point I can't
do anything else. If I can provide some help, I will gladly do so.
sys/boot/ofw/common/main.c
...
...
48 #define HEAP_SIZE 0x80000
...
52 void
53 init_heap(void)
54 {
55 void *base;
56 ihandle_t stdout;
57
58 if ((base = ofw_alloc_heap(HEAP_SIZE)) == (void *)0xffffffff) {
59 OF_getprop(chosen, "stdout", &stdout, sizeof(stdout));
60 OF_puts(stdout, "Heap memory claim failed!\n");
61 OF_enter();
62 }
63
64 setheap(base, (void *)((int)base + HEAP_SIZE));
65 }
...
...
sys/boot/ofw/libofw/ofw_memory.c
...
...
119 ofw_alloc_heap(unsigned int size)
120 {
121 phandle_t memoryp, root;
122 cell_t available[4];
123 cell_t acells;
124
125 root = OF_finddevice("/");
126 acells = 1;
127 OF_getprop(root, "#address-cells", &acells, sizeof(acells));
128
129 memoryp = OF_instance_to_package(memory);
130 OF_getprop(memoryp, "available", available, sizeof(available));
131
132 heap_base = OF_claim((void *)available[acells-1], size,
133 sizeof(register_t));
134
135 if (heap_base != (void *)-1) {
136 heap_size = size;
137 }
138
139 return (heap_base);
140 }
...
...
--
Lyubomir Grigorov (bgalakazam)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 834 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freebsd.org/pipermail/freebsd-ppc/attachments/20120110/c95acf4f/attachment.pgp
More information about the freebsd-ppc
mailing list