bill@research.att.COM (09/15/87)
Has anyone successfully run gnuemacs on a Sun-4? I've done a few obvious things to get it to run but have been unsuccessful. Before I devote more time to it, I'd like to know if anyone else has done it already. Thanks, Bill Schell AT&T Bell Labs, Murray Hill, NJ allegra!bill OR schell@red.rutgers.edu
eb@kent-state.UUCP (Eric Benson) (09/15/87)
We have gotten Emacs running on a Sun-4. The main thing you need that isn't obvious is a definition for _start in crt0.c. Here is the one we used: asm(".seg \"text\""); asm(".global __start"); asm("__start:"); asm("mov 0, %fp"); asm("ld [%sp + 64], %o0"); asm("add %sp, 68, %o1"); asm("sll %o0, 2, %o2"); asm("add %o2, 4, %o2"); asm("add %o1, %o2, %o2"); asm("sethi %hi(_environ), %o3"); asm("st %o2, [%o3+%lo(_environ)]"); asm("andn %sp, 7, %sp"); asm("call _main"); asm("sub %sp, 24, %sp"); asm("call _exit"); asm("nop"); asm("call __exit"); asm("nop");