The Bootstrap the Where Are Wenow?

Total Page:16

File Type:pdf, Size:1020Kb

The Bootstrap the Where Are Wenow? Dedicated Operating System March2011 Prof. Dr.Antônio AugustoFröhlich http://www.lisha.ufsc.br/Guto Getting ready for the OS for the ready Getting [email protected] LISHA/UFSC The Boot: The March 2011 (http://www.lisha.ufsc.br) 1 Dedicated Operating System March2011 ● ● ● BIOSgot the system ready for BIOSbrought the system on ● Lots of “jmp” so far, no calls, why? ● First instruction fetched ● initializedBIOS a complex architecture Where the stack?Where is 0x7c00 BIST, POST, hooks The Bootstrap Where are we now? we are Where (http://www.lisha.ufsc.br) =>Today class 2 EPOS Bootstrap: m src/boot/pc_boot.S e t ; CONSTANTS s ;============================================================ y ; PHYSICAL MEMORY MAP S ; 0x0000 0000 -+-----------------------+ BOOT_IDT ; | IDT (4 K) | g ; 0x0000 1000 -+-----------------------+ BOOT_GDT ; | GDT (4 K) | n i ; 0x0000 2000 -+-----------------------+ t ; : : a ; | BOOT STACK (23 K) | r ; 0x0000 7c00 -+-----------------------+ BOOTSTRAP_STACK e ; | BOOT CODE (512 b) | BOOTSTRAP_CODE p ; 0x0000 7e00 -+-----------------------+ ; | RESERVED (512 b) | O ; 0x0000 8000 -+-----------------------+ DISK_IMAGE ; | DISK IMAGE (608 K) | d ; : : e ; | | t ; 0x000a 0000 -+-----------------------+ a ; | UNUSED (384K) | c ; : : i ; | | d ; 0x000f f000 -+-----------------------+ e D March 2011 (http://www.lisha.ufsc.br) 3 EPOS Bootstrap: Notes m e t s Code to be ran at real mode (16 bits) y S Interrupts (IDT) ● g At real mode, always at 0x0000 n ● i At protected mode, anywhere (IDTR) t a Segmentation (GDT) r ● e Always on at x86, in any mode p ● GDTR O Bootstrap code d ● e Code starts at 0x7c00 t ● a Stack stays bellow 0x7c00 c ● i It uses BIOS to access discs and load system d e D March 2011 (http://www.lisha.ufsc.br) 4 Dedicated Operating System main: main entry March2011 EPOS Bootstrap: main point entry EPOS Bootstrap: main Basic segmentsinitialization mov sp,#BOOTSTRAP_STACK ; set stack pointer stack set ; sp,#BOOTSTRAP_STACK mov ss,ax mov es,ax mov ds,ax mov 0x00000 = base segment data ; ax,ax xor interrupts disable ; cli (http://www.lisha.ufsc.br) 5 EPOS Bootstrap: disc image layout ; DISK IMAGE LAYOUT ; -+-----------------------+ DISK_IMAGE_SYS_INFO m ; | SYS_INFO (512 bytes) | e t ; -+-----------------------+ DISK_IMAGE_SETUP s ; | SETUP | y ; : : S ; -+-----------------------+ ; | SYSTEM | g ; : : n i ; -+-----------------------+ t ; | INIT | a r ; : : e ; -+-----------------------+ p ; | LOADER/APP1 | ; : : O ; -+-----------------------+ d ; | APP1 | e ; : : t ; -+-----------------------+ a ; : : c i ; -+-----------------------+ d ; | APPn | e ; : : D ; -+-----------------------+ March 2011 (http://www.lisha.ufsc.br) 6 EPOS Bootstrap: loading image from disc m e ; Load the boot image from the disk into "DISK_IMAGE" t mov si,#msg_loading s call print_msg y push es S mov ax,#IMAGE_SEG mov es,ax ; don©t try to load es directly g mov bx,#0 ; set es:bx to DISK_IMAGE n mov ax,[n_sec_image] i t mov cx,#0x0002 ; starts at track #0, sector #2, a mov dx,#0x0000 ; side #0, first drive r call load_image e pop es p mov si,#msg_done call print_msg O d ; Stop the drive motor e call stop_drive t a c Function calling (e.g., “print_msg”) i d ● Parameter passing e D March 2011 (http://www.lisha.ufsc.br) 7 EPOS Bootstrap: print_msg – BIOS access ;==================================================================== ; PRINT_MSG = m ; = e ; Desc: Print a \0 terminated string on the screen using the BIOS = t ; Message must end with 00h ; = s ; = y ; Parm: si -> pointer to the string = S ;==================================================================== print_msg: g pushf push ax n i push bx t push bp BIOS access a cld r ● “int 0x10” e print_char: lodsb p CISC magics cmp al,#0 O jz end_print ● “cld” mov ah,#0x0E d mov bx,#0x0007 ● “lodsb” e int 0x10 t jmp print_char a c end_print: i pop bp d pop bx pop ax e popf D ret March 2011 (http://www.lisha.ufsc.br) 8 EPOS Bootstrap: load_sector – BIOS access ;========================================================================= ; LOAD_ONE_SECTOR = m ; = e ; Desc: Load a single sector from disk using the BIOS. = t ; = s ; Parm: es:bx -> buffer = y ; cx -> track (ch) and sector number (cl) = S ; dx -> side (dh) and drive number (dl) = ;========================================================================= g load_sector: pushf n i push ax t a mov ax,#0x0201 ; function #2, load 1 sector r int 0x13 e cli ; int 0x13 sets IF jc ls_disk_error ; if CY=1, error on reading p O pop ax popf d ret e t ls_disk_error: a mov si,#msg_disk_error c call print_msg ; print error msg if disk is bad i call stop_drive d ls_disk_halt: “method signatures” e jmp ls_disk_halt ; halt D depend on BIOS API March 2011 (http://www.lisha.ufsc.br) 9 EPOS Bootstrap: loading image from disc m e ; Load the boot image from the disk into "DISK_IMAGE" t mov si,#msg_loading s call print_msg y push es S mov ax,#IMAGE_SEG mov es,ax ; don©t try to load es directly g mov bx,#0 ; set es:bx to DISK_IMAGE n mov ax,[n_sec_image] i t mov cx,#0x0002 ; starts at track #0, sector #2, a mov dx,#0x0000 ; side #0, first drive r call load_image e pop es p mov si,#msg_done call print_msg O d ; Stop the drive motor e call stop_drive t a c Print => Load Image => Print => Stop Drive i d Why stop drive? e D March 2011 (http://www.lisha.ufsc.br) 10 EPOS Bootstrap: memory initialization m e ; Get extended memory size (in K) t ; xor dx,dx s ; mov ah,#0x88 y ; int 0x15 ; what if memory size > 64 Mb? S ; push ds ; push #INFO_SEG g ; pop ds BIOS info on memory is n ; mov [0],ax i t ; mov [2],dx unreliable a ; pop ds r EPOS will test memory e ; Say hello; by itself p mov si,#msg_hello call print_msg O A20 line d ; Enable A20 bus line ● DOS access data and IO in e call enable_a20 t one segment until 80186 a ● c 80286 needed this line to i access 16MB memory, so d e we have this legacy D March 2011 (http://www.lisha.ufsc.br) 11 EPOS Bootstrap: entering protected mode m e ; Zero IDT and GDT t cld s xor ax,ax y mov cx,#0x1000 ; IDT + GDT = 8K (4K WORDS) S mov di,#BOOT_IDT ; initial address (relative to ES) rep ; zero IDT and GDT with AX g stosw n i t ; Set GDT a mov si,#GDT_CODE ; Set GDT[1]=GDT_CODE and r mov di,#BOOT_GDT ; GDT[2]=GDT_DATA e add di,#8 ; offset GDT[1] = 8 p mov cx,#8 ; sizeof GDT[1] + GDT[2] = 8 WORDS rep ; move WORDS O movsw d Protected mode e ; Set GDTR t lgdt GDTR configured a c ; Enable Protected Mode But not entered i mov eax,cr0 d or al,#0x01 ; set PE flag and MP flag yet... e mov cr0,eax D March 2011 (http://www.lisha.ufsc.br) 12 EPOS Bootstrap: breaking the pre-fetch queue m ; Adjust selectors e mov bx,#2 * 8 ; adjust data selectors to use t mov ds,bx ; GDT[2] (DATA) with RPL = 00 s mov es,bx y mov fs,bx S mov gs,bx mov ss,bx g n i ; As Linux as86 can©t generate 32 bit instructions, we have to code t ; it by hand. The instruction below is a inter segment jump to a ; GDT[GDT_CODE]:SETUP. Jump into "SETUP" (actually ix86 Protected r ; Mode starts here) e ; jmp 0x0008:#SETUP_ENTRY p .byte 0x66 .byte 0xEA O .long SETUP_ENTRY d .word 0x0008 e t a Need to break the pre-fetch queue c ● i Force CPU to read configuration registers d LDT and IDT not assempled yet e ● D Next class: pc_setup.cc March 2011 (http://www.lisha.ufsc.br) 13.
Recommended publications
  • Kontron / ICS Advent SB586P(V) Manual (Pdf)
    Full-service, independent repair center -~ ARTISAN® with experienced engineers and technicians on staff. TECHNOLOGY GROUP ~I We buy your excess, underutilized, and idle equipment along with credit for buybacks and trade-ins. Custom engineering Your definitive source so your equipment works exactly as you specify. for quality pre-owned • Critical and expedited services • Leasing / Rentals/ Demos equipment. • In stock/ Ready-to-ship • !TAR-certified secure asset solutions Expert team I Trust guarantee I 100% satisfaction Artisan Technology Group (217) 352-9330 | [email protected] | artisantg.com All trademarks, brand names, and brands appearing herein are the property o f their respective owners. Find the Kontron / ICS Advent SB586PV at our website: Click HERE Model SB586P(V) Product Manual MANUAL NUMBER : 00431-027-3C Page - ii FOREWORD This product manual provides information to install, operate and or program the referenced product(s) manufactured or distributed by ICS Advent. The following pages contain information regarding the war- ranty and repair policies. Technical assistance is available at: 800-480-0044. Manual Errors, Omissions and Bugs: A "Bug Sheet" is included as the last page of this manual. Please use the "Bug Sheet" if you experience any problems with the manual that requires correction. The information in this document is provided for reference only. ICS Advent does not assume any liability arising from the application or use of the information or products described herein. This document may contain or reference information and products protected by copyrights or patents and does not convey any license under the patent rights of ICS Advent, nor the rights of others.
    [Show full text]
  • SOS Internals
    Understanding a Simple Operating System SOS is a Simple Operating System designed for the 32-bit x86 architecture. Its purpose is to understand basic concepts of operating system design. These notes are meant to help you recall the class discussions. Chapter 1 : Starting Up SOS 3 Registers in the IA-32 x86 Architecture BIOS (Basic Input/Ouput System) Routines Real Mode Addressing Organization of SOS on Disk and Memory Master Boot Record SOS Startup A20 Line 32-bit Protected Mode Addressing Privilege Level Global Descriptor Table (GDT) More on Privilege Levels The GDT Setup Enabling Protected Mode Calling main() Chapter 2 : SOS Initializations 10 In main() Disk Initialization Display Initialization Setting Up Interrupt Handlers Interrupt Descriptor Table (IDT) A Default Interrupt Handler Load IDT The Programmable Interrupt Controller (PIC) The Keyboard Interrupt Handler Starting the Console Putting It All Together Chapter 3: SOS1 – Single-tasking SOS 16 Running User Programs GDT Entries Default Exception Handler User Programs Executable Format System Calls Creating User Programs The run Command Understanding a Simple Operating System The DUMB Memory Manager Program Address Space Process Control Block Switching to a User Program Kernel-Mode Stack Chapter 4 : SOS2 – Multi-tasking SOS 24 Running Multiple User Programs NAÏVE Memory Manager Programmable Interval Timer (PIT) Process States Timer Interrupt Handler Sleep System Call The run Command Process Queue The Scheduler The Complete Picture ps Command Chapter 5 : SOS3 – Paging in SOS 31
    [Show full text]
  • Computing :: Operatingsystems :: DOS Beyond 640K 2Nd
    DOS® Beyond 640K 2nd Edition DOS® Beyond 640K 2nd Edition James S. Forney Windcrest®/McGraw-Hill SECOND EDITION FIRST PRINTING © 1992 by James S. Forney. First Edition © 1989 by James S. Forney. Published by Windcrest Books, an imprint of TAB Books. TAB Books is a division of McGraw-Hill, Inc. The name "Windcrest" is a registered trademark of TAB Books. Printed in the United States of America. All rights reserved. The publisher takes no responsibility for the use of any of the materials or methods described in this book, nor for the products thereof. Library of Congress Cataloging-in-Publication Data Forney, James. DOS beyond 640K / by James S. Forney. - 2nd ed. p. cm. Rev. ed. of: MS-DOS beyond 640K. Includes index. ISBN 0-8306-9717-9 ISBN 0-8306-3744-3 (pbk.) 1. Operating systems (Computers) 2. MS-DOS (Computer file) 3. PC -DOS (Computer file) 4. Random access memory. I. Forney, James. MS-DOS beyond 640K. II. Title. QA76.76.063F644 1991 0058.4'3--dc20 91-24629 CIP TAB Books offers software for sale. For information and a catalog, please contact TAB Software Department, Blue Ridge Summit, PA 17294-0850. Acquisitions Editor: Stephen Moore Production: Katherine G. Brown Book Design: Jaclyn J. Boone Cover: Sandra Blair Design, Harrisburg, PA WTl To Sheila Contents Preface Xlll Acknowledgments xv Introduction xvii Chapter 1. The unexpanded system 1 Physical limits of the system 2 The physical machine 5 Life beyond 640K 7 The operating system 10 Evolution: a two-way street 12 What else is in there? 13 Out of hiding 13 Chapter 2.
    [Show full text]
  • Protected Mode - Wikipedia
    2/12/2019 Protected mode - Wikipedia Protected mode In computing, protected mode, also called protected virtual address mode,[1] is an operational mode of x86- compatible central processing units (CPUs). It allows system software to use features such as virtual memory, paging and safe multi-tasking designed to increase an operating system's control over application software.[2][3] When a processor that supports x86 protected mode is powered on, it begins executing instructions in real mode, in order to maintain backward compatibility with earlier x86 processors.[4] Protected mode may only be entered after the system software sets up one descriptor table and enables the Protection Enable (PE) bit in the control register 0 (CR0).[5] Protected mode was first added to the x86 architecture in 1982,[6] with the release of Intel's 80286 (286) processor, and later extended with the release of the 80386 (386) in 1985.[7] Due to the enhancements added by protected mode, it has become widely adopted and has become the foundation for all subsequent enhancements to the x86 architecture,[8] although many of those enhancements, such as added instructions and new registers, also brought benefits to the real mode. Contents History The 286 The 386 386 additions to protected mode Entering and exiting protected mode Features Privilege levels Real mode application compatibility Virtual 8086 mode Segment addressing Protected mode 286 386 Structure of segment descriptor entry Paging Multitasking Operating systems See also References External links History https://en.wikipedia.org/wiki/Protected_mode
    [Show full text]
  • IMS D7305A IBM 386 PC Occam 2 Toolset Delivery Manual
    ·. ,i .. W .. ~.~.. mrumos®[] IMS D7305A IBM 386 PC occam 2 Toolset delivery manual INMOS"'Y£'-is a member of the SGS-THOMSON Microelectronics Group © INMOS Limited 1993. This document may not be copied, in whole or in part, without prior written consent of INMOS. •,DIITI11OS·, IMS, and occam are trademarks of INMOS Limited. ~~em is a registered trademark of the SGS-THOMSON Microelectronics Group. INMOS Limited is a member of the SGS-THOMSON Microelectronics Group. WATCOM is a trademark of WATCOM Systems Inc. INMOS document number: 72 TDS 389 01 IContents 1 Introduction . 1 1.1 Layout of this manual . 1 1.2 Prerequisites for running the toolset . 1 1.3 Compatibility with previous releases . 1 2 Installing the release . 3 2.1 Installation . 3 2.2 Hosted and non-hosted tools . 4 2.3 Setting up the toolset for use . 5 2.3.1 Setting the FILES variable . 5 2.3.2 Setting the correct PATH . 5 2.3.3 Configuring the DOS extender . 5 2.3.4 Setting up the iserver . 6 Selecting the required iserver . 6 Special notes for users of the PC-NFS iserver . 7 Notes common to both versions of the iserver . 7 Note for users of the IMS B008 motherboard . 8 2.3.5 Use of the iserver by transputer tool driver programs 8 2.3.6 Setting the board memory size . 9 2.3.7 Setting root memory size for idebug . 9 2.3.8 Setting a file system search path . 9 2.3.9 Setting the device driver and terminal definition file 10 2.3.10 Environment space .
    [Show full text]
  • Microsoft Windows Resource
    Chapter 13 Troubleshooting Windows 3.1 This chapter provides information about troubleshooting Microsoft Windows for both general users and experts. If you have trouble installing Windows, or if Windows doesn’t run as well as you expected, this chapter will help you find out why and show you how to isolate and solve common problems. Related Information • Windows User’s Guide: Chapter 15, “Maintaining Windows with Setup” See also Chapter 4, “Troubleshooting,” in the Getting Started booklet • Windows Resource Kit: “The Troubleshooting Flowcharts for Windows 3.1” in “Welcome” Contents of this chapter About Troubleshooting.....................................................................................396 Getting Started with Troubleshooting........................................................396 Creating a “Clean Boot” for Troubleshooting ...........................................398 Troubleshooting Setup......................................................................................399 Troubleshooting TSR s During Setup .........................................................400 Troubleshooting MS-DOS Mode Setup......................................................401 Troubleshooting Windows Mode Setup ....................................................402 Troubleshooting Windows Configuration ........................................................403 Troubleshooting the Desktop Configuration .............................................403 Troubleshooting TSR Compatibility Problems ..........................................404
    [Show full text]
  • Memory Management
    University of Mississippi eGrove American Institute of Certified Public Guides, Handbooks and Manuals Accountants (AICPA) Historical Collection 1993 Memory management American Institute of Certified Public Accountants. Information echnologyT Division Follow this and additional works at: https://egrove.olemiss.edu/aicpa_guides Part of the Accounting Commons, and the Taxation Commons Recommended Citation American Institute of Certified Public Accountants. Information echnologyT Division, "Memory management" (1993). Guides, Handbooks and Manuals. 486. https://egrove.olemiss.edu/aicpa_guides/486 This Book is brought to you for free and open access by the American Institute of Certified Public Accountants (AICPA) Historical Collection at eGrove. It has been accepted for inclusion in Guides, Handbooks and Manuals by an authorized administrator of eGrove. For more information, please contact [email protected]. INFORMATION TECHNOLOGY DIVISION BULLETIN AICPA American Institute of Certified Public Accountants TECHNOLOGY Notice to Readers This technology bulletin is the first in a series of bulletins that provide accountants with information about a particular technology. These bulletins are issued by the AICPA Information Technology Division for the benefit of Information Technology Section Members. This bulletin does not establish standards or preferred practice; it represents the opinion of the author and does not necessarily reflect the policies of the AICPA or the Information Technology Division. The Information Technology Division expresses its appreciation to the author of this technology bulletin, Liz O’Dell. She is employed by Crowe, Chizek and Company in South Bend, Indiana, as a manager of firmwide microcomputer operations, supporting both hardware and software applications. Liz is an Indiana University graduate with an associate’s degree in computer information systems and a bachelor’s degree in business management.
    [Show full text]
  • Hardware & Booting
    PC Hardware & Booting Chester Rebeiro IIT Madras Outline • Memory and Device Addresses • PC Organization • x86 Evolution • Powering up • Booting xv6 • Multiprocessor booting 2 CPUs Processor i386 3 Everything has an address 0x3c0:0x3cf 0x60:0x6f Processor i386 0x1f0:0x1f7 0x0 : 0x200000 0x60:0x6f 4 Address Types • Memory Addresses • IO Addresses • Memory Mapped IO Addresses 5 Address Types : (Memory Addresses) • Range : 0 to (RAM size or 232-1) • Where main memory is mapped – Used to store data for code, heap, stack, OS, etc. • Accessed by load/store instructions Memory Map 6 Low and Extended Memory (Legacy Issues) • Why study it? – Backward compatibility • 8088 has 20 address lines; can address 220 bytes (1MB) • Memory Ranges – 0 to 640KB used by IBM PC MSDOS • Other DOS versions have a different memory limit – 640 KB to 1MB used by video buffers, expansion ROMS, BIOS ROMs – 1 MB onwards called extended memory • Modern processors have more usable memory – OSes like Linux and x86 simply ignore the first 1MB and load kernel in extended memory 7 Address Types : (IO Ports) • Range : 0 to 216-1 • Used to access devices • Uses a different bus compared to RAM memory access – Completely isolated from memory • Accessed by in/out instructions inb $0x64, %al outb %al, $0x64 ref : http://bochs.sourceforge.net/techspec/PORTS.LST 8 Memory Mapped I/O • Why? – More space • Devices and RAM share the same address space • Instructions used to access RAM can also be used to access devices. – Eg load/store Memory Map 9 Who decides the address ranges? • Standards / Legacy – Such as the IBM PC standard – Fixed for all PCs.
    [Show full text]
  • C++ Memory Management
    C++ Memory Management Len Dorfman Marc J. Neuberger Winderest /McGraw-Hill New York San Francisco Washington, D.C. Auckland Bogota Caracas Lisbon London Madrid Mexico City Milan Montreal New Delhi San Juan Singapore Sydney Tokyo Toronto Contents What you need to use this book Introduction 1 Memory management overview Using expanded memory for dynamic memory allocation Using extended memory for dynamic memory allocation Using the hard disk for dynamic memory allocation 7 Summary 7 2 Understanding memory control blocks Preparatory memory management routines 11 Writing a memory chain display utility program 12 Summary 23 3 EMS 3.0 and 3.2 About the EMS programmer's interface 25 EMS 3.0 demonstration programs 26 The EMS 3.0 and 3.2 interface 46 C++ interface functions 64 Initialize EMS 64 Get the EMM status 64 Get the page frame address 66 Get the number of free EMS pages 67 Allocate EMS handle and pages 68 Map an expanded memory page 70 Free a handle and the associated EMS pages 71 Get the EMS version number 72 Save the contents of page map registers 74 Restore the contents of page map registers 75 Get the number of active EMM handles 76 Get number of pages for handle 77 Get number of pages for all handles 79 EMS 3.2 functions 81 Save page map to a buffer 81 Restore page map from a buffer 82 Swap page maps 83 Get the size of a map register save area 85 Summary 87 4 EMS 4.0 EMS 4.0 enhancements 89 EMS 4.0 demonstration programs 90 C++interface functions 115 Save a partial page map 115 Restore a partial page map 117 Get the size of partial
    [Show full text]
  • Intel Entry Server Board SE7221BA1-E
    Intel® Entry Server Board SE7221BA1-E Technical Product Specification Revision 1.5 Apr 10, 2005 Enterprise Platforms and Services Division Revision History Intel® Entry Server Board SE7221BA1-E TPS Revision History Date Revision Modifications Number September 0.8 Initial Draft 30, 2004 Oct 20, 2004 0.9 Second Draft Nov 11, 2004 0.99 Final Draft Dec 31, 2004 1.00 Release Jan 4, 2004 1.1 Web links updated Jan 25, 2005 1.2 Updated Sep 16, 2005 1.3 Updated with supported video resolutions Oct 5, 2005 1.4 Update the memory information Apr 10, 2006 1.5 Updated release ii Revision 1.5 Intel® Entry Server Board SE7221BA1-E TPS Disclaimers Disclaimers Information in this document is provided in connection with Intel® products. No license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted by this document. Except as provided in Intel's Terms and Conditions of Sale for such products, Intel assumes no liability whatsoever, and Intel disclaims any express or implied warranty, relating to sale and/or use of Intel products including liability or warranties relating to fitness for a particular purpose, merchantability, or infringement of any patent, copyright or other intellectual property right. Intel products are not intended for use in medical, life saving, or life sustaining applications. Intel may make changes to specifications and product descriptions at any time, without notice. Designers must not rely on the absence or characteristics of any features or instructions marked "reserved" or "undefined." Intel reserves these for future definition and shall have no responsibility whatsoever for conflicts or incompatibilities arising from future changes to them.
    [Show full text]
  • Datalight BIOS to TRANSFER Files by Means of the Console, in Cases Where the Console Is Implemented by Means of a Serial Port
    Datalight ROM-DOS Version 7.1 User’s Guide Printed: April 2002 Datalight ROM-DOS User’s Guide Copyright © 1993 - 2002 by Datalight, Inc. All Rights Reserved Datalight, Inc. assumes no liability for the use or misuse of this software. Liability for any warranties implied or stated is limited to the original purchaser only and to the recording medium (disk) only, not the information encoded on it. THE SOFTWARE DESCRIBED HEREIN, TOGETHER WITH THIS DOCUMENT, ARE FURNISHED UNDER A SEPARATE SOFTWARE OEM LICENSE AGREEMENT AND MAY BE USED OR COPIED ONLY IN ACCORDANCE WITH THE TERMS AND CONDITIONS OF THAT AGREEMENT. Datalight, the Datalight logo, FlashFX and ROM-DOS are trademarks or registered trademarks of Datalight, Inc. Microsoft and MS-DOS are registered trademarks of Microsoft Corporation. All other trademarks are the property of their respective holders. Part Number: 3010-0200-0306 Contents Chapter 1, Introduction...........................................................................................................1 Conventions Used in this Manual .......................................................................................1 Terminology Used in this Manual.......................................................................................1 Random Access Memory (RAM) ................................................................................2 Read Only Memory (ROM).........................................................................................2 Disks and Disk Drives.........................................................................................................2
    [Show full text]
  • Chapter 1 Bootstrap
    DRAFT as of September 23, 2010: Copyright 2009 Cox, Kaashoek, Morris Chapter 1 Bootstrap Hardware A computer’s CPU (central processing unit, or processor) runs a conceptually sim- ple loop: it inspects the value of a register called the program counter, reads a ma- chine instruction from that address in memory, advances the program counter past the instuction, and executes the instruction. Repeat. If the execution of the instruction does not modify the program counter, this loop will interpret the memory pointed at by the program counter as a sequence of machine instructions to run one after the other. Instructions that do change the program counter implement conditional branches, unconditional branches, and function calls. The execution engine is useless without the ability to store and modify program data. The fastest storage for data is provided by the processor’s register set. A register is a storage cell inside the processor itself, capable of holding a machine word-sized value (typically 16, 32, or 64 bits). Data stored in registers can typically be read or written quickly, in a single CPU cycle. The x86 provides eight general purpose 32-bit registers—%eax, %ebx, %ecx, %edx, %edi, %esi, %ebp, and %esp—and a program counter %eip (the ‘‘instruction pointer’’). The common e prefix stands for extended, as these are 32-bit extensions of the 16-bit registers %ax, %bx, %cx, %dx, %di, %si, %bp, %sp, and %ip. The two register sets are aliased so that, for example, %ax is the bottom half of %eax: writing to %ax changes the value stored in %eax and vice versa.
    [Show full text]