Sparc V9 chip; which sys/isa_defs.h ?

Sparc V9 chip; which sys/isa_defs.h ?

Post by Richard Math » Tue, 08 Feb 2000 04:00:00



Which are the "correct" settings for the Sparc V9 chip of a Sparc Server 450
in the /usr/include/sys/isa_defs.h ? Would the defines that come with
the comment

/*
 * The following set of definitions characterize the Solaris on SPARC system.
 *
 * The flag __sparc is only guaranteed to indicate SPARC processors version 8
 * or earlier.
 */
#elif defined(__sparc) || defined(sparc)

/*

be still correct?

/usr/include/sys/isa_defs.h:

/*
 * The following set of definitions characterize the Solaris on SPARC system.
 *
 * The flag __sparc is only guaranteed to indicate SPARC processors version 8
 * or earlier.
 */
#elif defined(__sparc) || defined(sparc)

/*
 * Make sure that the ANSI-C "politically correct" symbol is defined.
 */
#if !defined(__sparc)
#define __sparc
#endif

/*
 * Define the appropriate "processor characteristics"
 */
#define _BIG_ENDIAN
#define _STACK_GROWS_DOWNWARD
#define _LONG_LONG_HTOL
#define _BIT_FIELDS_HTOL
#define _IEEE_754
#define _CHAR_IS_SIGNED
#define _CHAR_ALIGNMENT         1
#define _SHORT_ALIGNMENT        2
#define _INT_ALIGNMENT          4
#define _LONG_ALIGNMENT         4
#define _LONG_LONG_ALIGNMENT    8
#define _DOUBLE_ALIGNMENT       8
#define _LONG_DOUBLE_ALIGNMENT  8
#define _POINTER_ALIGNMENT      4
#define _MAX_ALIGNMENT          8
#define _ALIGNMENT_REQUIRED     1

/*
 * Define the appropriate "implementation choices".
 */
#define _SUNOS_VTOC_8
#define _DMA_USES_VIRTADDR
#define _NO_FDISK_PRESENT

/*
 * #error is strictly ansi-C, but works as well as anything for K&R systems.
 */
#else
#error ISA not supported
#endif


 
 
 

1. netdb.h, sys/cdefs.h, sys/bitypes.h in Sparc 2.4

explorer:~/src/ncftp-2.0.2:$make
gcc -O2 -DHAVE_CONFIG_H -I. Cmdline.c -c
gcc -O2 -DHAVE_CONFIG_H -I. Cmdlist.c -c
gcc -O2 -DHAVE_CONFIG_H -I. Cmds.c -c
In file included from Cmds.c:6:
/usr/include/netdb.h:66: sys/bitypes.h: No such file or directory
/usr/include/netdb.h:68: sys/cdefs.h: No such file or directory
make: *** [Cmds.o] Error 1

What gives?  netdb.h includes these two files, but they are missing.  They
are not on Sparc Solaris 2.3, either, but netdb.h doesn't include them.
Solaris 2.4 x86 - same as Sparc Solaris 2.3.

I am going to try using the netdb.h from Solaris 2.3 instead, and hope
that will do the trick until this problem gets fixed.  I did not do the
upgrade from 2.3 to 2.4; that was done by Clark.net's staff, so this
problem is out of my control.

Here is the relevant section from the netdb.h installed on this system
right now:

/*

 *      $Id: netdb.h,v 8.2 1995/01/11 08:57:51 vixie Exp $
 */

#ifndef _NETDB_H_
#define _NETDB_H_

#include <sys/param.h>
#if (!defined(BSD)) || (BSD < 199306)
# include <sys/bitypes.h>
#endif
#include <sys/cdefs.h>

Both Solaris x86 2.4 and Sparc Solaris 2.3 have completely different
version numbers from this.  I am wondering if somehow, Clark.net's staff
stuck in a netdb.h from Solaris 1 somehow???
--

"Supporting Windows is like buying a puppy.  The dog only cost $100, but
we spent another $500 cleaning the carpet."
 - Marc Dodge, "Reality Check", _Open Computing_, December 1994

2. cant compile the kernel

3. Sparc v9 emulator?

4. thanks (Linux device drivers writing)

5. application call stack on SPARC v9

6. UDMA and Linux?

7. Using SPARC v9

8. how to use those tools ?

9. Looking for the SPARC Architecture Manuals V8 and V9

10. Is GCC supporting SPARC V9 architecture?

11. Linux Sparc V9 code optimazation

12. using little endian on sparc v9

13. SPARC v9 memory model