17c478bd9Sstevel@tonic-gate# 27c478bd9Sstevel@tonic-gate# CDDL HEADER START 37c478bd9Sstevel@tonic-gate# 47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the 5ae115bc7Smrj# Common Development and Distribution License (the "License"). 6ae115bc7Smrj# You may not use this file except in compliance with the License. 77c478bd9Sstevel@tonic-gate# 87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 117c478bd9Sstevel@tonic-gate# and limitations under the License. 127c478bd9Sstevel@tonic-gate# 137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 187c478bd9Sstevel@tonic-gate# 197c478bd9Sstevel@tonic-gate# CDDL HEADER END 207c478bd9Sstevel@tonic-gate# 21*cd3e9333SAli Bahrami# Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved. 227c478bd9Sstevel@tonic-gate# 23*cd3e9333SAli Bahrami 24*cd3e9333SAli Bahrami$mapfile_version 2 257c478bd9Sstevel@tonic-gate 26ae115bc7Smrj# 27ae115bc7Smrj# this is the 32 bit 1:1 mapped code to which grub jumps. 28ae115bc7Smrj# 29*cd3e9333SAli BahramiLOAD_SEGMENT dboot { 30*cd3e9333SAli Bahrami FLAGS = READ WRITE EXECUTE; 31*cd3e9333SAli Bahrami NOHDR; 32*cd3e9333SAli Bahrami PADDR = 0xC00000; 33*cd3e9333SAli Bahrami VADDR = 0xC00000; 34*cd3e9333SAli Bahrami ASSIGN_SECTION { 35*cd3e9333SAli Bahrami TYPE = PROGBITS; 36*cd3e9333SAli Bahrami FLAGS = ALLOC WRITE; 37*cd3e9333SAli Bahrami FILE_BASENAME = dboot.o; 38*cd3e9333SAli Bahrami }; 39*cd3e9333SAli Bahrami}; 40ae115bc7Smrj 41ae115bc7Smrj# 42ae115bc7Smrj# this is the kernel text 43ae115bc7Smrj# 44*cd3e9333SAli BahramiLOAD_SEGMENT text { 45*cd3e9333SAli Bahrami FLAGS = READ EXECUTE; 46*cd3e9333SAli Bahrami NOHDR; 47*cd3e9333SAli Bahrami PADDR = 0x400000; 48*cd3e9333SAli Bahrami VADDR = 0xFE800000; 49*cd3e9333SAli Bahrami OS_ORDER = .text; 50*cd3e9333SAli Bahrami ASSIGN_SECTION { 51*cd3e9333SAli Bahrami TYPE = PROGBITS; 52*cd3e9333SAli Bahrami FLAGS = ALLOC !WRITE; 53*cd3e9333SAli Bahrami }; 54*cd3e9333SAli Bahrami}; 557c478bd9Sstevel@tonic-gate 567c478bd9Sstevel@tonic-gate# 577c478bd9Sstevel@tonic-gate# start the data segment on a new 4MB page boundary 587c478bd9Sstevel@tonic-gate# 59*cd3e9333SAli BahramiLOAD_SEGMENT data { 60*cd3e9333SAli Bahrami FLAGS = READ WRITE EXECUTE; 61*cd3e9333SAli Bahrami PADDR = 0x800000; 62*cd3e9333SAli Bahrami VADDR = 0xFEc00000; 63*cd3e9333SAli Bahrami OS_ORDER = .data; 64*cd3e9333SAli Bahrami ASSIGN_SECTION { 65*cd3e9333SAli Bahrami TYPE = PROGBITS; 66*cd3e9333SAli Bahrami FLAGS = ALLOC WRITE; 67*cd3e9333SAli Bahrami }; 68*cd3e9333SAli Bahrami ASSIGN_SECTION { 69*cd3e9333SAli Bahrami TYPE = NOBITS; 70*cd3e9333SAli Bahrami FLAGS = ALLOC WRITE; 71*cd3e9333SAli Bahrami }; 72*cd3e9333SAli Bahrami}; 737c478bd9Sstevel@tonic-gate 74*cd3e9333SAli BahramiNOTE_SEGMENT note { 75*cd3e9333SAli Bahrami ASSIGN_SECTION { 76*cd3e9333SAli Bahrami TYPE = NOTE; 77*cd3e9333SAli Bahrami }; 78*cd3e9333SAli Bahrami}; 79