OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
187623b
)
Documentation/x86/boot.rst: Correct the example of SETUP_INDIRECT
author
Cao jin
<jojing64@gmail.com>
Wed, 27 Jan 2021 08:49:11 +0000
(16:49 +0800)
committer
Jonathan Corbet
<corbet@lwn.net>
Thu, 28 Jan 2021 22:25:31 +0000
(15:25 -0700)
struct setup_data.len is the length of data field. In case of
SETUP_INDIRECT, it should be sizeof(setup_indirect).
Signed-off-by: Cao jin <jojing64@gmail.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
Link:
https://lore.kernel.org/r/20210127084911.63438-1-jojing64@gmail.com
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/x86/boot.rst
patch
|
blob
|
history
diff --git
a/Documentation/x86/boot.rst
b/Documentation/x86/boot.rst
index
abb9fc1
..
fc84491
100644
(file)
--- a/
Documentation/x86/boot.rst
+++ b/
Documentation/x86/boot.rst
@@
-851,7
+851,7
@@
Protocol: 2.09+
struct setup_data {
__u64 next = 0 or <addr_of_next_setup_data_struct>;
__u32 type = SETUP_INDIRECT;
- __u32 len = sizeof(setup_
data
);
+ __u32 len = sizeof(setup_
indirect
);
__u8 data[sizeof(setup_indirect)] = struct setup_indirect {
__u32 type = SETUP_INDIRECT | SETUP_E820_EXT;
__u32 reserved = 0;