]> git.saurik.com Git - apple/boot.git/blame - gen/libsa/memory.h
boot-132.tar.gz
[apple/boot.git] / gen / libsa / memory.h
CommitLineData
14c7c974
A
1/*
2 * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
4f6e3300
A
6 * Portions Copyright (c) 1999 Apple Computer, Inc. All Rights
7 * Reserved. This file contains Original Code and/or Modifications of
8 * Original Code as defined in and that are subject to the Apple Public
9 * Source License Version 1.1 (the "License"). You may not use this file
10 * except in compliance with the License. Please obtain a copy of the
11 * License at http://www.apple.com/publicsource and read it before using
12 * this file.
14c7c974
A
13 *
14 * The Original Code and all software distributed under the License are
4f6e3300 15 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
14c7c974
A
16 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
17 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
4f6e3300
A
18 * FITNESS FOR A PARTICULAR PURPOSE OR NON- INFRINGEMENT. Please see the
19 * License for the specific language governing rights and limitations
20 * under the License.
14c7c974
A
21 *
22 * @APPLE_LICENSE_HEADER_END@
23 */
24/* memory addresses used by booter and friends */
25
26/* these are all "virtual" addresses...
27 * which are physical addresses plus MEMBASE.
28 */
29
30#define MEMBASE 0x0
31#define BASE_SEG 0x0
32
33/* these are virtual addresses */
34
35#define BIOS_ADDR 0x00C00 // BIOS buffer
36#define BIOS_LEN 0x02400 // 9k
37#define BOOTER_LOAD_ADDR 0x03000 // loaded here for compat.
38#define BOOTER_ADDR 0x03000 // start of booter code
39#define BOOTER_LEN 0x08000 // max of 32k
40#define STACK_ADDR 0x0FFF0
41#define BOOTSTRUCT_ADDR 0x11000
42#define BOOTSTRUCT_LEN 0x0F000 // it's slightly smaller
43#define EISA_CONFIG_ADDR 0x20000
44#define EISA_CONFIG_LEN 0x10000
45#define RLD_ADDR 0x30000
46#define RLD_LEN 0x24000 // 140k
47#define ZALLOC_ADDR 0x54000
48#define ZALLOC_LEN 0x12000 // 72k
49#define MODULE_ADDR 0x66000
50#define RLD_MEM_ADDR 0x680000
51#define RLD_MEM_LEN 0x100000 // 1Mb
52#define KSYM_ADDR 0x780000
53#define KSYM_LEN 0x080000 // 512k
54
55/* these are physical values */
56
57//#define CONVENTIONAL_LEN 0xA0000 // 640k
58#define EXTENDED_ADDR 0x100000 // 1024k
59#define KERNEL_BOOT_ADDR 0x100000 /* load at 1Mb */
60
61#define KERNEL_SYMBOL_OFFSET 0x100000 /* load at top - 1Mb */
62
63#define SAIO_TABLE_POINTER (BOOTER_ADDR + SAIO_TABLE_PTR_OFFSET)
64#define SAIO_TABLE_PTR_OFFSET 0x30
65
66#define ptov(paddr) ((paddr) - MEMBASE)
67#define vtop(vaddr) ((vaddr) + MEMBASE)
68
69#define MIN_EXT_MEM_KB (7 * 1024) /* 8 Mb minimum total */