See MIPS Run, 2/e (Paperback)

Dominic Sweetman

  • 出版商: Morgan Kaufmann
  • 出版日期: 2006-10-01
  • 售價: $2,830
  • 貴賓價: 9.5$2,689
  • 語言: 英文
  • 頁數: 512
  • 裝訂: Paperback
  • ISBN: 0120884216
  • ISBN-13: 9780120884216
  • 相關分類: Linux
  • 立即出貨 (庫存 < 3)

買這商品的人也買了...

商品描述

Description

This second edition is not only a thorough update of the first edition, it is also a marriage of the best-known RISC architecture--MIPS--with the best-known open-source OS--Linux. The first part of the book begins with MIPS design principles and then describes the MIPS instruction set and programmers’ resources. It uses the MIPS32 standard as a baseline (the 1st edition used the R3000) from which to compare all other versions of the architecture and assumes that MIPS64 is the main option. The second part is a significant change from the first edition. It provides concrete examples of operating system low level code, by using Linux as the example operating system. It describes how Linux is built on the foundations the MIPS hardware provides and summarizes the Linux application environment, describing the libraries, kernel device-drivers and CPU-specific code. It then digs deep into application code and library support, protection and memory management, interrupts in the Linux kernel and multiprocessor Linux.

Sweetman has revised his best-selling MIPS bible for MIPS programmers, embedded systems designers, developers and programmers, who need an in-depth understanding of the MIPS architecture and specific guidance for writing software for MIPS-based systems, which are increasingly Linux-based.

 

Table of Contents

Chapter 1: RISCs and MIPS
1.1 Pipelines
1.2 The MIPS Five-Stage Pipeline
1.3 RISC and CISC
1.4 Great MIPS Chips of the Past and Present
1.5 MIPS Compared with CISC Architectures

Chapter 2: MIPS Architecture
2.1 A Flavor of MIPS Assembly Language
2.2 Registers
2.3 Integer Multiply Unit and Registers
2.4 Loading and Storing: Addressing Modes
2.5 Data Types in Memory and Registers
2.6 Synthesized Instructions in Assembly Language
2.7 MIPS I to MIPS64 ISAs: 64-Bit (and Other) Extensions
2.8 Basic Address Space
2.9 Pipeline Visibility

Chapter 3: Coprocessor 0: MIPS Processor Control
3.1 CPU Control Instructions
3.2 What Registers Are Relevant When?
3.3 CPU Control Registers and their encoding
3.4 CP0 Hazards—A Trap for the Unwary

Chapter 4: How Caches work on MIPS
4.1 Caches and Cache Management
4.2 How Caches Work
4.3 Write-Through Caches in Early MIPS CPUs
4.4 Write-Back Caches in MIPS CPUs
4.5 Other Choices in Cache Design
4.6 Managing Caches
4.7 L2 and L3 caches
4.8 Cache Configurations for MIPS CPUs
4.9 Programming MIPS32/64 Caches
4.10 Cache Efficiency
4.11 Reorganizing Software to Influence Cache Efficiency
4.12 Cache Aliases

Chapter 5: Exceptions, Interrupts, and Initialization
5.1 Precise Exceptions
5.2 When Exceptions Happen
5.3 Exception Vectors: Where Exception Handling Starts
5.4 Exception Handling: Basics
5.5 Returning from an Exception
5.6 Nesting Exceptions
5.7 An Exception Routine
5.8 Interrupts
5.9 Starting Up
5.10 Emulating Instructions

Chapter 6: Low-level Memory Management and the TLB
6.1 The TLB/MMU hardware and what it does
6.2 TLB/MMU Registers Described
6.3 TLB/MMU Control Instructions
6.4 Programming the TLB
6.5 Hardware-friendly page tables and refill mechanism
6.6 Everyday Use of the MIPS TLB
6.7 Memory Management in a simpler OS

Chapter 7: Floating-Point Support
7.1 A Basic Description of Floating Point
7.2 The IEEE754 Standard and Its Background
7.3 How IEEE Floating-Point Numbers Are Stored
7.4 MIPS Implementation of IEEE754
7.5 Floating-Point Registers
7.6 Floating-Point Exceptions/Interrupts
7.7 Floating-Point Control: The Control/Status Register
7.8 Floating-Point Implementation Register
7.9 Guide to FP Instructions
7.10 Paired-single floating-point instructions and MIPS 3D.
7.11 Instruction Timing Requirements
7.12 Instruction Timing for Speed
7.13 Initialization and Enabling on Demand
7.14 Floating-Point Emulation

Chapter 8: Complete Guide to the MIPS Instruction Set
8.1 A Simple Example
8.2 Assembler Instructions and What They Mean
8.3 Floating-Point Instructions
8.4 Differences in MIPS32/64 Release 1
8.5 Peculiar Instructions and Their Purposes
8.6 Instruction Encodings
8.7 Instructions by Functional Group

Chapter 9: Reading MIPS Assembler Language
9.1 A Simple Example
9.2 Syntax Overview
9.3 General Rules for Instructions
9.4 Addressing Modes
9.5 Object file and memory layout

Chapter 10: Porting Software to MIPS
10.1 Low-level software for MIPS: A Checklist of Frequently Encountered Problems
10.2 Endianness: Words, Bytes, and Bit Order
10.3 Trouble With Visible Caches
10.4 Memory access ordering and re-ordering
10.5 Writing it in C

Chapter 11: MIPS Software Standards (“ABI”s)
11.1 Data Representations and Alignment
11.2 Argument Passing and Stack Conventions for MIPS “ABIs”

Chapter 12: Debugging MIPS - debug and profiling features
12.1 The “EJTAG” onchip debug unit
12.2 Pre-EJTAG debug support—break instruction and CP0 Watchpoints
12.3 PDTrace
12.4 Performance counters

Chapter 13: GNU/Linux from Eight Miles High
13.1 Components
13.2 Layering in the kernel

Chapter 14: How hardware and software work together
14.1 The life and times of an interrupt
14.2 Threads, critical regions and atomicity
14.3 What happens on a system call 384
14.4 How addresses get translated in Linux/MIPS

Chapter 15: MIPS-specific issues in the Linux kernel
15.1 Explicit Cache Management
15.2 CP0 Pipeline hazards
15.3 Multiprocessor systems and coherent caches
15.4 Demon tweaks for a Critical Routine

Chapter 16 Linux Application Code, PIC and Libraries
16.1 How link units get into a program
16.2 Global Offset Table (“GOT”) organization

Appendix A: MIPS Multithreading
A.1 What is MT
A.2 Why is MT useful?
A.3 How to do MT for a RISC architecture
A.4 MT in action

Appendix B: Other Optional extensions to the MIPS instruction set
B.1 MIPS16 and MIPS16e
B.2 The MIPS DSP ASE 440
B.3 MDMX

商品描述(中文翻譯)

這是一本關於MIPS架構和Linux操作系統的書籍的描述。第二版不僅是第一版的全面更新,還將最知名的RISC架構MIPS與最知名的開源操作系統Linux結合在一起。書籍的第一部分從MIPS設計原則開始,然後描述了MIPS指令集和程序員資源。它以MIPS32標準作為基準(第一版使用了R3000),並假設MIPS64是主要選項。第二部分與第一版有很大的不同。它通過使用Linux作為示例操作系統,提供了操作系統低層代碼的具體示例。它描述了Linux是如何建立在MIPS硬件提供的基礎上的,並總結了Linux應用環境,描述了庫、內核設備驅動程序和特定於CPU的代碼。然後深入探討應用程序代碼和庫支持、保護和內存管理、Linux內核中的中斷和多處理器Linux。

Sweetman為MIPS程序員、嵌入式系統設計師、開發人員和程序員修訂了他最暢銷的MIPS聖經,他們需要深入了解MIPS架構並為基於MIPS的系統編寫軟件的具體指導,這些系統越來越多地基於Linux。

目錄:
第1章: RISC和MIPS
1.1 流水線
1.2 MIPS五級流水線
1.3 RISC和CISC
1.4 過去和現在的偉大MIPS芯片
1.5 MIPS與CISC架構的比較

第2章: MIPS架構
2.1 MIPS組合語言的一個味道
2.2 寄存器
2.3 整數乘法單元和寄存器
2.4 裝載和存儲: 地址模式
2.5 內存和寄存器中的數據類型
2.6 合成指令的組合語言
2.7 MIPS I到MIPS64指令集架構: 64位(和其他)擴展
2.8 基本地址空間
2.9 流水線可見性

第3章: 協處理器0: MIPS處理器控制
3.1 CPU控制指令
3.2 何時使用哪些寄存器?
3.3 CPU控制寄存器及其編碼
3.4 CP0危害-一個陷阱

第4章: MIPS上的高速緩存工作原理
4.1 緩存和緩存管理
4.2 緩存的工作原理
4.3 早期MIPS CPU中的寫通緩存
4.4 MIPS CPU中的寫回緩存
4.5 緩存設計中的其他選擇
4.6 管理緩存
4.7 L2和L3緩存
4.8 MIPS CPU的緩存配置
4.9 編程MIPS32/64緩存
4.10 緩存效率
4.11 重新組織軟件以影響緩存效率
4.12 緩存別名

第5章: 異常、中斷和初始化
5.1 精確異常
5.2 異常發生時
5.3 異常向量: 異常處理程序的位置