h48033
s 00008/00006/00027
d D 3.2 85/06/04 19:54:48 dock 2 1
c changed include files, added what strings
e
s 00033/00000/00000
d D 3.1 84/11/13 16:30:27 dan 1 0
c date and time created 84/11/13 16:30:27 by dan
e
u
U
t
T
I 1
D 2
/* viossize.c -- C source to create RAMviossize.m
E 2
I 2

/*
 * %M%: version %I% of %H%
 *
 * viossize.c -- C source to create RAMviossize.m
E 2
 * copyright (c) 1984  American Information Systems Corporation
 *
D 2
 *	Daniel Steinberg
 *	July, 1984
E 2
I 2
 *	Daniel Steinberg	July, 1984
E 2
 *
 *	This file is compiled to produce assembly language output that
 *	is editted (thru abs.sed) to become RAMviossize.m in which the
 *	initialized values below are turned into assembler .set directives.
 *	RAMviossize.m is assembled and linked with the RAM-Monitor/VIOS
 *	to define the end of the Absolute-Addressed RAM area.
D 2
 *
E 2
 */
D 2
#include "viosconf.h"
#include "hostflags.h"
E 2
I 2
#include "vinc/viosconf.h"
#include "vinc/hostflags.h"
E 2

/* Define macros to make symbol definitions */

#define Makeval(x,v) unsigned A_/**/x = (unsigned)(v);


/* Define some special locations and values */

#define ABSRAMSTART (((unsigned) A_monramstart) & (~(A_Grain-1)))
#define ABSRAMGRAIN (((unsigned) HOSTEND - ABSRAMSTART + A_Grain - 1) / A_Grain)
#define ABSRAMSIZE (ABSRAMGRAIN * A_Grain)

Makeval(ramstart, ABSRAMSTART)
Makeval(ramend, (ABSRAMSTART + ABSRAMSIZE))
Makeval(ramgrains, ABSRAMGRAIN)
Makeval(ramsize, ABSRAMSIZE)


E 1
