📄 cache-command.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>cache</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="Common Commands"HREF="common-commands.html"><LINKREL="PREVIOUS"TITLE="baudrate"HREF="baudrate-command.html"><LINKREL="NEXT"TITLE="channel"HREF="channel-command.html"></HEAD><BODYCLASS="REFENTRY"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="baudrate-command.html"ACCESSKEY="P">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom"></TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="channel-command.html"ACCESSKEY="N">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><H1><ANAME="CACHE-COMMAND">cache</H1><DIVCLASS="REFNAMEDIV"><ANAME="AEN3044"></A><H2>Name</H2>cache -- Control hardware caches</DIV><DIVCLASS="REFSYNOPSISDIV"><ANAME="AEN3047"><H2>Synopsis</H2><P><BCLASS="COMMAND">cache</B> [on | off]</P></DIV><DIVCLASS="REFSECT1"><ANAME="AEN3053"></A><H2>Arguments</H2><DIVCLASS="INFORMALTABLE"><ANAME="AEN3055"><P></P><TABLEBORDER="1"CLASS="CALSTABLE"><THEAD><TR><THWIDTH="25%"ALIGN="LEFT"VALIGN="TOP">Name</TH><THWIDTH="25%"ALIGN="LEFT"VALIGN="TOP">Type</TH><THWIDTH="25%"ALIGN="LEFT"VALIGN="TOP">Description</TH><THWIDTH="25%"ALIGN="LEFT"VALIGN="TOP">Default</TH></TR></THEAD><TBODY><TR><TDWIDTH="25%"ALIGN="LEFT"VALIGN="TOP">on</TD><TDWIDTH="25%"ALIGN="LEFT"VALIGN="TOP"> </TD><TDWIDTH="25%"ALIGN="LEFT"VALIGN="TOP">Turn the caches on</TD><TDWIDTH="25%"ALIGN="LEFT"VALIGN="TOP"><SPANCLASS="emphasis"><ICLASS="EMPHASIS">none</I></SPAN></TD></TR><TR><TDWIDTH="25%"ALIGN="LEFT"VALIGN="TOP">off</TD><TDWIDTH="25%"ALIGN="LEFT"VALIGN="TOP"> </TD><TDWIDTH="25%"ALIGN="LEFT"VALIGN="TOP">Turn the caches off</TD><TDWIDTH="25%"ALIGN="LEFT"VALIGN="TOP"><SPANCLASS="emphasis"><ICLASS="EMPHASIS">none</I></SPAN></TD></TR></TBODY></TABLE><P></P></DIV></DIV><DIVCLASS="REFSECT1"><ANAME="AEN3080"></A><H2>Description</H2><P>The <BCLASS="COMMAND">cache</B> command is used to manipulate the caches on the processor. </P><P>With no options, this command specifies the state of the system caches.</P><P>When an option is given, the caches are turned off or on appropriately.</P></DIV><DIVCLASS="REFSECT1"><ANAME="AEN3086"></A><H2>Examples</H2><P>Show the current cache state.<TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="SCREEN"> RedBoot> <TTCLASS="USERINPUT"><B>cache</B></TT>Data cache: On, Instruction cache: On</PRE></TD></TR></TABLE> </P><P>Disable the caches.<TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="SCREEN"> RedBoot> <TTCLASS="USERINPUT"><B>cache off</B></TT>RedBoot> <TTCLASS="USERINPUT"><B>cache</B></TT>Data cache: Off, Instruction cache: Off</PRE></TD></TR></TABLE> </P><P>Enable the caches.<TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="SCREEN"> RedBoot> <TTCLASS="USERINPUT"><B>cache on</B></TT>RedBoot> <TTCLASS="USERINPUT"><B>cache</B></TT>Data cache: On, Instruction cache: On</PRE></TD></TR></TABLE> </P></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="baudrate-command.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="channel-command.html"ACCESSKEY="N">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">baudrate</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="common-commands.html"ACCESSKEY="U">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">channel</TD></TR></TABLE></DIV></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -