/[cmucl]/src/lisp/Config.x86_solaris_sunc
ViewVC logotype

Contents of /src/lisp/Config.x86_solaris_sunc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.2.1 - (show annotations)
Tue Dec 14 04:25:11 2010 UTC (3 years, 4 months ago) by rtoy
Branch: cross-sol-x86-branch
CVS Tags: cross-sol-x86-2010-12-20
Changes since 1.1: +14 -0 lines
First cut at a build for Solaris/x86.  Result doesn't work; it gets as
far as TYPE-INIT, but then crashes.

These changes still allow solaris/sparc and darwin/x86 to build, so we
haven't broken both sparc and x86 while doing this.

tools/cross-scripts/cross-x86-osx-solaris.lisp:
o New cross-compile script to use darwin/x86 to cross-compile to
  solaris/x86.

compiler/x86/parms.lisp:
o For now, put thel linkage space start at 0xc0000000 on Solaris/x86.

lisp/Config.sparc_common:
o Separate out the common parts between Solaris sparc and x86.  Move
  the different parts into the appropriate file.

lisp/Config.sparc_sunc:
o Add ASSEM_SRC and ARCH_SRC here, with the appropriate OS_SRC,
  OS_LINK_FLAGS, and OS_LIBS>

lisp/Config.x86_solaris_sunc:
o New file for building solaris/x86 using Sun C (aka Sun Studio aka
  Solaris Studio)

lisp/interrupt.c:
o Use a static array for the altstack.  Should eventually do what
  other x86 platforms do.

lisp/solaris-os.c:
o Don't need os_flush_icache on x86 (?), so make the body empty for
  x86.
o Add x86 version of os_sigcontext_reg and os_sigcontext_pc.

lisp/sunos-os.h:
o The pagesize is 4096 on x86 instead of 8192.
o Don't need (?) SAVE_CONTEXT.

lisp/x86-assem.S:
o Update to support Sun C assembler:
  - Add appropriate GNAME, FUNCDEF and ENDFUNC macros.
  - Sun assembler doesn't have int3 instruction, so add INT3 macro to
    do the appropriate things.
  - Sun assembler doesn't like control L characters in the file so
    remove them.

lisp/x86-validate.h:
o Add entry for Solaris.  This needs work, but it looks like these
  values will work.
1 # -*- Mode: makefile -*-
2 include Config.sparc_common
3
4 CC = cc -xlibmieee -g
5 CFLAGS += -Di386
6 CPP = cc -E
7 DEPEND_FLAGS = -xM
8
9 ASSEM_SRC = x86-assem.S
10 ARCH_SRC = x86-arch.c
11
12 OS_SRC = solaris-os.c os-common.c undefineds.c elf.c e_rem_pio2.c k_rem_pio2.c
13 OS_LINK_FLAGS=
14 OS_LIBS= -lsocket -lnsl -ldl

  ViewVC Help
Powered by ViewVC 1.1.5