diff options
author | Cao jin <jojing64@gmail.com> | 2021-01-27 16:49:11 +0800 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2021-01-28 15:25:31 -0700 |
commit | bcadb65fd64889cc3cf1ca4b8025d91b59ec1b02 (patch) | |
tree | f58b2cce1fabc3f570f29cd0127d4c5548cd3215 /Documentation/x86 | |
parent | 187623b1d8b21b6fdab9b963465f71ad47b8c279 (diff) | |
download | linux-bcadb65fd64889cc3cf1ca4b8025d91b59ec1b02.tar.gz linux-bcadb65fd64889cc3cf1ca4b8025d91b59ec1b02.tar.bz2 linux-bcadb65fd64889cc3cf1ca4b8025d91b59ec1b02.zip |
Documentation/x86/boot.rst: Correct the example of SETUP_INDIRECT
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>
Diffstat (limited to 'Documentation/x86')
-rw-r--r-- | Documentation/x86/boot.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/x86/boot.rst b/Documentation/x86/boot.rst index abb9fc164657..fc844913dece 100644 --- 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; |