#You must modify sysPhysMemDescTable in target/config/pcore750/sysLib.c
#
#Add an entry into sysPhysMemDescTable{} like:
#
#    {
#    (void *) 0xb0000000,
#    (void *) 0xb0000000,
#    0x01000000,
#    VM_STATE_MASK_VALID | VM_STATE_MASK_WRITABLE | VM_STATE_MASK_CACHEABLE |
#    VM_STATE_MASK_GUARDED,
#    VM_STATE_VALID      | VM_STATE_WRITABLE      | VM_STATE_CACHEABLE_NOT |
#    VM_STATE_GUARDED
#    },
#
#and setting the PMC card's command register to 0x0002 (to enable memory
#space address decoding).
#
#I would recommend using the vxWorks routine vxMemProbe (read) to
#see if everything is working correctly:  e.g.:
#
#   -> pmc_data = 0
#   -> vxMemProbe(0xb0000000,0,4,&pmc_data)
#
#If this returns 0, then you've both verified that the MMU mapping is
#correct, and also that the device on PCIbus was at the correct address
#and working correctly.
#
#


#change this
setenv VXFORCE "/ufs/gmbuild/force"


unsetenv CC
unsetenv CFLAGS
unsetenv CXX
unsetenv CXXFLAGS
unsetenv CPP


setenv CC "ccppc"


setenv CFLAGS '-B$(VXFORCE)/host/sun4-sunos4/lib/gcc-lib/ -mstrict-align -nostdinc -O2 -fvolatile -fno-builtin -Wall -Ih  -I$(VXFORCE)/target/config -I. -I$(VXFORCE)/target/config/all -I$(VXFORCE)/target/h -I$(VXFORCE)/target/src/config -I$(VXFORCE)/target/src/drv -DCPU=PPC604  -D_GNU_TOOL -DTARGET_DIR="pcore750" -DFORCE_PCORE750 -c'

setenv CXX "c++ppc"
setenv CXXFLAGS '-B$(VXFORCE)/host/sun4-sunos4/lib/gcc-lib/ -mstrict-align -nostdinc -O2 -fvolatile -fno-builtin -Wall -Ih  -I$(VXFORCE)/target/config -I. -I$(VXFORCE)/target/config/all -I$(VXFORCE)/target/h -I$(VXFORCE)/target/src/config -I$(VXFORCE)/target/src/drv -DCPU=PPC604  -D_GNU_TOOL -DTARGET_DIR="pcore750" -DFORCE_PCORE750 -c'

setenv CPP 'cppppc -nostdinc -I$(VXFORCE)/target/h -I$(VXFORCE)/target/config/pcore750 -I$(VXFORCE)/target/config/all -DCPU=PPC604 -DFORCE_PCORE750'

#./configure --target=ppc-vxworks
#make

