OG hack port from alpha code to C
4/29/2006
brad@heeltoe.com

What the heck is this?
----------------------

This is a port of Open Genera to X64_64 linux.  It runs Open Genera
under linux on a 64 bit X64 machine.

In a moment of insanity I decided to hack up the "Open Genera" (OG)
lisp code which assembles the Alpha version of OG. I changed the assembler
to emit C code instead of assembler.  I wrote support routines and made
the C code "appear" to the existing emulator code as the original asm.

I did have to make a few very small (1 line) changes to the original
support code.  My goal was not to make any, but some were required.

The code is still a bit rough and there are still open issues.  But OG
runs and seems resonably stable.  You can run all of the normal
programs.  Networking works and you can NFS mount local file systems.

The code is running with -O, but there are many places ripe for easy
speed improvements.


What do you run it on?
----------------------

I'm using a 64 bit x86 machine running linux.  Specifically, It's a
Pentium 4 805 cpu.  This is (perhaps) the cheapest dual cpu EM64T chip
you can buy.  I bought the intel motherboard and cpu for $150.  The
machine has a single 1gb sdram sim init.

I installed the X86_64 version of RedHat EWS 4.0.  This gives you a 64
bit kernel and a 64 bit userland & gcc.  I did have to rebuild the
kernel to get a better IDE driver as the stock ide driver would not
run the ide in dma mode which made the install excrutiatingly slow.
SATA would have been a better choice.



How do I run it?
----------------

- copy "dot.VLM" to ".VLM"

    The emulator code looks for this.  Edit the file so the path to
    MIT.vlod and VLM_debugger is correct.

- run with "./genera"

    This will pop up an X window with the cold load stream. "DEBUG-IO" as
    http.translations can not be found.

    You need to enter "super-d".  I hacked the keyboard code to make
    the RIGHT-CONTROL button into the "super" key.  Hold down "right
    control" and then hit "d".

    The cold load stream window should iconify and a new, bigger, window
    should appear and fill up with the Genera herald.

    behold.

    (the view is wonderful now that I've managed to get up on the sholders
     of these giants :-)

    You need to define a site.  you can then optimize world and save world.

    I need to write more detailed instruction on the "define site".  My setup
    is a 64 bit host and a separate NFS server.

    F1 -> select
    delete -> rubout
    keypad "-" -> abort

    try "F1", "?"

---

vlm: wide-vlm 10.0.0.2
host: wide 10.0.0.1

----

I use "define site" to make the local vlm it's own name server and
to give me NFS access to the local machine.

define site heeltoe
Namespace Server Name:		wide-vlm

edit System File Directory - "wide:..."; right click, "edit this field"
edit Namespace Descriptor File - "wide:..."; right click, "edit this field"
edit unix host name - wide
#edit Address for wide: MIT|INTERNET 10.0.0.1 (not needed)
should pick up ip address of local host via dns
click on "end"


