On Thu, Jul 05, 2018 at 12:12:45AM -0600, Theo de Raadt wrote:
> Peter J. Philipp <p...@centroid.eu> wrote:
> 
> > Hi,
> > 
> > This week I bought a used G5 PowerMac7,3 with 4 GB RAM and dual
> > PowerPC 970FX cpu's.?? I didn't buy it because I miss the macppc all
> > that much but because I want to test the water of creating a 64 bit
> > port that goes onward to perhaps support IBM POWER5+ CPU's.?? It seems
> > Linux and FreeBSD are already there or on their way.
> > 
> > Since I'm a fan of OpenBSD I want an OpenBSD 64 bit Power(PC) port,
> > and asking if anyone has experience to make this happen? What are
> > hints that you can give??? Is it possible to just port over FreeBSD's
> > low kernel routines and get OpenBSD/powerpc64 working that way?
> > 
> > My use of OpenBSD/powerpc goes back to 2.9/3.0 days (when the macppc
> > port came), I had some time then and created some manpages for Dale
> > Rahn for the macppc system (which are probably in the attic by now).??
> > I love working with kernel code but I largely don't know what I'm
> > doing.?? My programming experience is limited, I program a DNS
> > authoritative server.
> > 
> > At my last job I was an AIX sysadmin (in training) and worked on a
> > POWER 7 machine running AIX 7.2.?? I left that job though so I can't
> > use that hardware to test a 64 bit port.?? It left an impression on me
> > though.
> 
> 60% of the work is in pmap.c, 20% of the work in trap.c, and 20%
> of the work is elsewhere.

Well I got started.  Since I've never done a port to any architecture, I did
not know where to begin.  I felt the header files needed work first especially
_types.h.  This is taking a long time and it's in the 
"20% of the work is elsewhere" category.  I did about 6 header files 
this morning, this morning was rare that I had time, I don't always have this 
much time.  In order to not duplicate work of other people attempting a port 
I put my files in my cvsweb on my vps.

We can share if you're working on this too.  And if I give up then the work is
not in vain.  The URL to this repo is:

http://centroid.eu/cgi-bin/cvsweb/powerpc64/

The reason I decided to reuse the header files from the powerpc arch is that
this is what FreeBSD is doing... this way I don't have to convert FreeBSD's
stuff to OpenBSD semantics, I just change it all to 64 bit and hope it'll work.

I did my best converting the ASM in atomic.h to 64 bit instructions with help
of an IBM programmers guide and the FreeBSD repo for hints.

I'll keep going when I find more time :-).  Crontab to sync this repo to my
vps's repo is set at hourly.

Regards,
-peter

Reply via email to