ftp.nice.ch/pub/next/developer/languages/c/egcs.1.1.1.1beta.I.b.tar.gz#/lib/gcc-lib/i386-next-nextstep3/egcs-2.91.60/include/bsd/sparc/machparam.h

This is machparam.h in view mode; [Download] [Up]

/* 
 * Copyright (c) 1994 NeXT, Inc. All rights reserved.
 *
 * HISTORY
 *
 * 21-Apr-1994 Mac Gillon at NeXT
 *	Created from i386 version.
 */ 

#ifndef	_SPARC_MACHPARAM_
#define	_SPARC_MACHPARAM_

#import <mach/vm_param.h>

/*
 * Machine dependent 'constants'.
 */
#define	NBPG	PAGE_SIZE	/* bytes/page */
#define	PGOFSET	(NBPG-1)	/* byte offset into page */
#define	PGSHIFT	PAGE_SHIFT	/* LOG2(NBPG) */

#define	CLSIZE			1
#define	CLSIZELOG2		0

#define STACKSIZE 4			/* pages in kernel stack */
#define	UPAGES	(USIZE+STACKSIZE)	/* total pages in u-area */
					/* red zone is beyond this */

/*
 * Some macros for units conversion
 */
/* Core clicks (NeXT_page_size bytes) to segments and vice versa */
#define	ctos(x)	(x)
#define	stoc(x)	(x)

/* clicks to bytes */
#define	ctob(x)	((x) << PGSHIFT)

/* bytes to clicks */
#define	btoc(x)	((((unsigned)(x)+PGOFSET) >> PGSHIFT))


#if	defined(KERNEL) || defined(STANDALONE)
#define	DELAY(n) us_spin(n)

#else
#define	DELAY(n)	{ register int N = (n); while (--N > 0); }
#endif

/*
 * The following symbols are required for the Sun4m architecture.
 *	OPENPROMS	# Open Boot Prom interface
 */
#define	OPENPROMS

#endif

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.