[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] doc: fix manual wording to mention correct offsets
From: |
Sergei Trofimovich |
Subject: |
[PATCH] doc: fix manual wording to mention correct offsets |
Date: |
Fri, 26 Feb 2021 23:25:54 +0000 |
---
doc/poke.texi | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/doc/poke.texi b/doc/poke.texi
index cc74c7b8..5d353543 100644
--- a/doc/poke.texi
+++ b/doc/poke.texi
@@ -365,7 +365,7 @@ type Packet =
@{
uint<16> magic = 0xef;
uint<32> size;
- byte[size] data @@ 64#B;
+ byte[size] data @@ 8#B;
@};
@end example
@@ -375,12 +375,12 @@ encoding):
@itemize @minus
@item
-Read four bytes from the IO space, mount them into an unsigned 16-bit
+Read two bytes from the IO space, mount them into an unsigned 16-bit
integer using whatever current endianness, and put it in
@code{magic}. If this unsigned 16-bit integer doesn't equal to
@code{0xef}, then stop and emit a ``data integrity'' error.
@item
-Read eight bytes, mount them into an unsigned 32-bit integer using the
+Read four bytes, mount them into an unsigned 32-bit integer using the
same endianness, and put it in @code{size}.
@item
Seek the IO space to advance 16 bits.
--
2.30.1
- [PATCH] doc: fix manual wording to mention correct offsets,
Sergei Trofimovich <=