blob: b69c1676317c2accafb404adc90e7fb8706a86d9 [file] [log] [blame]
Martin Roth9b1b3352016-02-24 12:27:06 -08001/* defs.h - MemTest-86 Version 3.3
2 * assembler/compiler definitions
3 *
4 * Released under version 2 of the Gnu Public License.
5 * By Chris Brady
Martin Roth4dcd13d2016-02-24 13:53:07 -08006 */
Martin Roth9b1b3352016-02-24 12:27:06 -08007
8#define SETUPSECS 4 /* Number of setup sectors */
9
10/*
11 * Caution!! There is magic in the build process. Read
Martin Roth4dcd13d2016-02-24 13:53:07 -080012 * README.build-process before you change anything.
Martin Roth9b1b3352016-02-24 12:27:06 -080013 * Unlike earlier versions all of the settings are in defs.h
14 * so the build process should be more robust.
15 */
16#define LOW_TEST_ADR 0x00010000 /* Final adrs for test code */
17
18#define BOOTSEG 0x07c0 /* Segment adrs for inital boot */
19#define INITSEG 0x9000 /* Segment adrs for relocated boot */
20#define SETUPSEG (INITSEG+0x20) /* Segment adrs for relocated setup */
21#define TSTLOAD 0x1000 /* Segment adrs for load of test */
22
23#define KERNEL_CS 0x10 /* 32 bit segment adrs for code */
24#define KERNEL_DS 0x18 /* 32 bit segment adrs for data */
25#define REAL_CS 0x20 /* 16 bit segment adrs for code */
26#define REAL_DS 0x28 /* 16 bit segment adrs for data */