Commit bcadb65f authored by Cao jin's avatar Cao jin Committed by Jonathan Corbet
Browse files

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: default avatarCao jin <jojing64@gmail.com>
Reviewed-by: default avatarDaniel Kiper <daniel.kiper@oracle.com>
Link: https://lore.kernel.org/r/20210127084911.63438-1-jojing64@gmail.com


Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
parent 187623b1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;