15cff7825Smh# 25cff7825Smh# CDDL HEADER START 35cff7825Smh# 45cff7825Smh# The contents of this file are subject to the terms of the 55cff7825Smh# Common Development and Distribution License (the "License"). 65cff7825Smh# You may not use this file except in compliance with the License. 75cff7825Smh# 85cff7825Smh# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 95cff7825Smh# or http://www.opensolaris.org/os/licensing. 105cff7825Smh# See the License for the specific language governing permissions 115cff7825Smh# and limitations under the License. 125cff7825Smh# 135cff7825Smh# When distributing Covered Code, include this CDDL HEADER in each 145cff7825Smh# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 155cff7825Smh# If applicable, add the following below this CDDL HEADER, with the 165cff7825Smh# fields enclosed by brackets "[]" replaced with your own identifying 175cff7825Smh# information: Portions Copyright [yyyy] [name of copyright owner] 185cff7825Smh# 195cff7825Smh# CDDL HEADER END 205cff7825Smh# 21843e1988Sjohnlev 225cff7825Smh# 23*cd3e9333SAli Bahrami# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved. 245cff7825Smh# 255cff7825Smh 26*cd3e9333SAli Bahrami$mapfile_version 2 275cff7825Smh 285cff7825Smh# 29843e1988Sjohnlev# This is 1:1 mapped code to setup the kernel memory image. 30843e1988Sjohnlev# It needs to be after (in physical) the kernel bits, so that 31843e1988Sjohnlev# they have full 8 Meg of memory. 32843e1988Sjohnlev# 33*cd3e9333SAli BahramiLOAD_SEGMENT dboot { 34*cd3e9333SAli Bahrami FLAGS = READ WRITE EXECUTE; 35*cd3e9333SAli Bahrami NOHDR; 36*cd3e9333SAli Bahrami PADDR = 0x40800000; 37*cd3e9333SAli Bahrami VADDR = 0x40800000; 38*cd3e9333SAli Bahrami ASSIGN_SECTION { 39*cd3e9333SAli Bahrami IS_NAME = .data; 40*cd3e9333SAli Bahrami FILE_BASENAME = dboot.o; 41*cd3e9333SAli Bahrami }; 42*cd3e9333SAli Bahrami}; 435cff7825Smh 445cff7825Smh# 45843e1988Sjohnlev# kernel text segment 465cff7825Smh# 47*cd3e9333SAli BahramiLOAD_SEGMENT text { 48*cd3e9333SAli Bahrami FLAGS = READ EXECUTE; 49*cd3e9333SAli Bahrami NOHDR; 50*cd3e9333SAli Bahrami PADDR = 0x40000000; 51*cd3e9333SAli Bahrami VADDR = 0xf4c00000; 52*cd3e9333SAli Bahrami OS_ORDER = .text; 53*cd3e9333SAli Bahrami ASSIGN_SECTION { 54*cd3e9333SAli Bahrami TYPE = PROGBITS; 55*cd3e9333SAli Bahrami FLAGS = ALLOC !WRITE; 56*cd3e9333SAli Bahrami }; 57*cd3e9333SAli Bahrami}; 585cff7825Smh 595cff7825Smh# 60843e1988Sjohnlev# start the data segment on a new 4MB page boundary 615cff7825Smh# 62*cd3e9333SAli BahramiLOAD_SEGMENT data { 63*cd3e9333SAli Bahrami FLAGS = READ WRITE EXECUTE; 64*cd3e9333SAli Bahrami PADDR = 0x40400000; 65*cd3e9333SAli Bahrami VADDR = 0xf5000000; 66*cd3e9333SAli Bahrami OS_ORDER = .data; 67*cd3e9333SAli Bahrami ASSIGN_SECTION { 68*cd3e9333SAli Bahrami TYPE = PROGBITS; 69*cd3e9333SAli Bahrami FLAGS = ALLOC WRITE; 70*cd3e9333SAli Bahrami }; 71*cd3e9333SAli Bahrami ASSIGN_SECTION { 72*cd3e9333SAli Bahrami TYPE = NOBITS; 73*cd3e9333SAli Bahrami FLAGS = ALLOC WRITE; 74*cd3e9333SAli Bahrami }; 75*cd3e9333SAli Bahrami}; 765cff7825Smh 77*cd3e9333SAli BahramiNOTE_SEGMENT note { 78*cd3e9333SAli Bahrami ASSIGN_SECTION { 79*cd3e9333SAli Bahrami TYPE = NOTE; 80*cd3e9333SAli Bahrami }; 81*cd3e9333SAli Bahrami}; 82