File: mtest.h

package info (click to toggle)
hwtools 0.3-4
  • links: PTS
  • area: main
  • in suites: hamm, slink
  • size: 992 kB
  • ctags: 905
  • sloc: ansic: 6,699; tcl: 2,140; asm: 683; makefile: 271; sh: 227; csh: 42
file content (35 lines) | stat: -rw-r--r-- 1,435 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/* mtest.h - MemTest-86 defines */

/* Copyright 1995,  Chris Brady
 *
 * Permission to use, copy, modify, and distribute this
 * software and its documentation for any purpose and without fee
 * is granted provided that the above copyright notice appears in all copies.
 * It is provided "as is" without express or implied warranty.
 */ 

#define SKIP_START	0xa0000
#define SKIP_END	0xf0000
#define APM		1		/* 1 = Turn off APM if available */
#define SCREEN_ADR	0xb8000
#define SETUPSECS	4		/* Number of setup sectors */

/*
 * Caution!! Do not change TESTADR, MAINSZ, TESTSZ or RELOBASE without also
 * editing the Makefile.
 */
#define TESTADR		0x1000		/* Final adrs for the test code */
#define MAINSZ		0x1800		/* Size of primary test code */
#define TSTSIZE		0x3400		/* Total test size, 2*MAINSZ+0x400 */
#define RELOBASE	0x100000	/* Relocation base address */

#define LOW_ADR		0x00 	        /* Lowest adrs for testing */
#define START_ADR	TSTSIZE+TESTADR /* Starting adrs for testing */
#define BOOTSEG		0x07c0		/* Segment adrs for inital boot */
#define INITSEG		0x9000		/* Segment adrs for relocated boot */
#define SETUPSEG	INITSEG+0x20	/* Segment adrs for relocated setup */
#define TESTSEG		TESTADR/0x10	/* Final segment adrs for test code */
#define TSTLOAD		0x1000		/* Segment adrs for load of test */
#define KERNEL_CS	0x10		/* 32 bit segment adrs for code */
#define KERNEL_DS	0x18		/* 32 bit segment adrs for data */