[haiku-bugs] Re: [Haiku] #1048: add support for PowerPC

  • From: "stevenh" <trac@xxxxxxxxxxxx>
  • Date: Thu, 06 May 2010 13:56:42 -0000

#1048: add support for PowerPC
-------------------------+--------------------------------------------------
 Reporter:  wkornewald   |       Owner:  bonefish        
     Type:  enhancement  |      Status:  new             
 Priority:  normal       |   Milestone:  Unscheduled     
Component:  System       |     Version:  R1/pre-alpha1   
 Keywords:               |   Blockedby:  5182, 5193, 5275
 Platform:  PowerPC      |    Blocking:                  
-------------------------+--------------------------------------------------

Comment(by stevenh):

 Ok, it turns out that this error above is when it's trying to dprintf from
 the kernel _start. If I change these to printf (and then include
 <stdio.h>) it fails when relocating the elfs... if I include
 <boot/platform/generic/text_console.h> instead of <stdio.h> then it
 relocates... but still causes the above error.

 kallista, you had the same error in comment 2... I haven't had a chance to
 try kprintf instead, I will do this tomorrow. Any idea what causes this? I
 imagine there is no printf defined for the kernel in ppc arch at this
 point? printf works from the openfirmware code though.

 Meanwhile, the error above with #SRR at 0x1000000 is just the stack
 popping back. I had to comment out this in arch_start_kernel.S to be able
 to use '.registers' once the kernel had returned to the ofw prompt.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/1048#comment:10>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: