<!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML//EN">
<title>SPARC Architectural Model: User Commands
</title>
<body bgcolor=
"#FFFFFF" LANG=
"en-US">
<div STYLE=
"margin-bottom: 0cm"></div>
set - set a value to a specified physical address
set [-cpu
<i>cpu_set
</i>]
[-pa|-ra|-va] [-context_id
<i>context
</i>] [-partition-id
<i>partition
</i>] [-size
<i>size
</i>] [-count
<i>count
</i>]
<i>address
</i> <i>value
</i>
<b>deprecated form:
</b><br>
set [-cpu
<i>cpu_set
</i>]
[-pa|-ra|-va] [-context_id
<i>context
</i>] [-partition-id
<i>partition
</i>]
<i>address
</i> <i>value
</i> <i>size
</i>
Set physical memory at location
<i>address
</i> to
<i>value
</i>.
The size option determines how many bytes are written.
Valid size options are
1,
2,
4, or
8.
The default size is
4 bytes.
The -count option lets
<i>value
</i> to be written to consecutive
locations of size
<i>size
</i>, starting at
<i>address
</i>.
If specified, the arguments
<i>size
</i> and
<i>count
</i> determine the
width of each write and how many writes occur.
Each write advances through memory by
<i>size
</i> bytes.
In the deprecated form, the default size argument is
4 bytes, but can be
1,
2,
4, and
8*N (N
> 0) bytes.
The behaviour of set is undefined if
<i>value
</i> does not fit in the
By default,
<i>address
</i> is treated as physical.
The -pa, -ra, and -va flags override this default.
More details on these and the -context and -partition flags can
be found
<a href=
"flag_addressing_options.html">here
</a>.
If -va is given,
<i>address
</i> is virtual and is translated in the context
of the current cpu, specified by
<a href=
"cmd_pselect.html">pselect
</a>.
This may be overriden by the
<a href=
"flag_cpu.html">-cpu
</a> flag.
<ul><a href=
"cmd_get.html">get
</a></ul>