⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hal-porting-guide.html

📁 有关ecos2。0介绍了实时嵌入式的结构以及线程调度的实现和内存的管理等
💻 HTML
字号:
<!-- Copyright (C) 2003 Red Hat, Inc.                                --><!-- This material may be distributed only subject to the terms      --><!-- and conditions set forth in the Open Publication License, v1.0  --><!-- or later (the latest version is presently available at          --><!-- http://www.opencontent.org/openpub/).                           --><!-- Distribution of the work or derivative of the work in any       --><!-- standard (paper) book form is prohibited unless prior           --><!-- permission is obtained from the copyright holder.               --><HTML><HEAD><TITLE>	Porting Guide</TITLE><meta name="MSSmartTagsPreventParsing" content="TRUE"><METANAME="GENERATOR"CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+"><LINKREL="HOME"TITLE="eCos Reference Manual"HREF="ecos-ref.html"><LINKREL="UP"TITLE="The eCos Hardware Abstraction Layer (HAL)"HREF="the-ecos-hardware-abstraction-layer.html"><LINKREL="PREVIOUS"TITLE="Default Interrupt Handling"HREF="hal-default-interrupt-handling.html"><LINKREL="NEXT"TITLE="HAL Structure"HREF="hal-porting-structure.html"></HEAD><BODYCLASS="CHAPTER"BGCOLOR="#FFFFFF"TEXT="#000000"LINK="#0000FF"VLINK="#840084"ALINK="#0000FF"><DIVCLASS="NAVHEADER"><TABLESUMMARY="Header navigation table"WIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><THCOLSPAN="3"ALIGN="center">eCos Reference Manual</TH></TR><TR><TDWIDTH="10%"ALIGN="left"VALIGN="bottom"><AHREF="hal-default-interrupt-handling.html"ACCESSKEY="P">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom"></TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="hal-porting-structure.html"ACCESSKEY="N">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><DIVCLASS="CHAPTER"><H1><ANAME="HAL-PORTING-GUIDE">Chapter 11. 	Porting Guide</H1><DIVCLASS="TOC"><DL><DT><B>Table of Contents</B></DT><DT><AHREF="hal-porting-guide.html#HAL-PORTING-INTRO">Introduction</A></DT><DT><AHREF="hal-porting-structure.html">HAL Structure</A></DT><DT><AHREF="hal-calling-if.html">Virtual Vectors (eCos/ROM Monitor Calling Interface)</A></DT><DT><AHREF="hal-porting-coding-conventions.html">HAL Coding Conventions</A></DT><DT><AHREF="hal-porting-platform.html">Platform HAL Porting</A></DT><DT><AHREF="hal-porting-variant.html">Variant HAL Porting</A></DT><DT><AHREF="hal-porting-architecture.html">Architecture HAL Porting</A></DT></DL></DIV><DIVCLASS="SECTION"><H1CLASS="SECTION"><ANAME="HAL-PORTING-INTRO">Introduction</H1><P>eCos has been designed to be fairly easy to port to new targets. Atarget is a specific platform (board) using a given architecture (CPUtype). The porting is facilitated by the hierarchical layering of theeCos sources - all architecture and platform specific code isimplemented in a HAL (hardware abstraction layer).</P><P>By porting the eCos HAL to a new target the core functionality of eCos(infra, kernel, uITRON, etc) will be able to run on the target. It maybe necessary to add further platform specific code such as serialdrivers, display drivers, ethernet drivers, etc. to get a fullycapable system.</P><P>This document is intended as a help to the HAL porting process. Due tothe nature of a porting job, it is impossible to give a completedescription of what has to be done for each and every potentialtarget. This should not be considered a clear-cut recipe - you willprobably need to make some implementation decisions, tweak a fewthings, and just plain have to rely on common sense.</P><P>However, what is covered here should be a large part of theprocess. If you get stuck, you are advised to read the<AHREF="http://sourceware.cygnus.com/ml/ecos-discuss/"TARGET="_top">ecos-discuss archive</A>where you may find discussions which apply to the problem athand. You are also invited to ask questions on the<AHREF="http://sourceware.cygnus.com/ecos/intouch.html"TARGET="_top">ecos-discuss mailing list</A>to help you resolve problems - but as is always the casewith community lists, do not consider it an oracle for any and allquestions. Use common sense - if you ask too many questions whichcould have been answered by reading the<AHREF="http://sourceware.cygnus.com/ecos/docs-latest/"TARGET="_top">documentation</A>,<AHREF="http://sourceware.cygnus.com/fom/ecos"TARGET="_top">FAQ</A> or<AHREF="http://sourceware.cygnus.com/cgi-bin/cvsweb.cgi/ecos/packages/?cvsroot=ecos"TARGET="_top">source code</A>, you are likely to be ignored.</P><P>This document will be continually improved by Red Hat engineers astime allows. Feedback and help with improving the document is sought,so if you have any comments at all, please do not hesitate to postthem on<AHREF="mailto:ecos-discuss@sourceware.cygnus.com?subject=[porting]<subject>"TARGET="_top">ecos-discuss</A>(please prefix the subject with [porting]).</P><P>At the moment this document is mostly an outline. There are manydetails to fill in before it becomes complete. Many places you'll justfind a list of keywords / concepts that should be described (pleasepost on ecos-discuss if there are areas you think are not covered).</P><P>All pages or sections where the caption ends in [TBD] contain littlemore than key words and/or random thoughts - there has been no workdone as such on the content. The word FIXME may appear in the text tohighlight places where information is missing.</P></DIV></DIV><DIVCLASS="NAVFOOTER"><HRALIGN="LEFT"WIDTH="100%"><TABLESUMMARY="Footer navigation table"WIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top"><AHREF="hal-default-interrupt-handling.html"ACCESSKEY="P">Prev</A></TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="ecos-ref.html"ACCESSKEY="H">Home</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top"><AHREF="hal-porting-structure.html"ACCESSKEY="N">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">Default Interrupt Handling</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="the-ecos-hardware-abstraction-layer.html"ACCESSKEY="U">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">HAL Structure</TD></TR></TABLE></DIV></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -