mirror of
https://github.com/dgibson/dtc.git
synced 2025-10-13 16:27:39 -04:00
Add a couple of missing cpu_to_be32() writing the version numbers out.
This commit is contained in:
parent
4ddf7c020c
commit
dffc2a8972
1 changed files with 2 additions and 2 deletions
|
@ -298,8 +298,8 @@ static void make_bph(struct boot_param_header *bph,
|
|||
memset(bph, 0xff, sizeof(*bph));
|
||||
|
||||
bph->magic = cpu_to_be32(OF_DT_HEADER);
|
||||
bph->version = vi->version;
|
||||
bph->last_comp_version = vi->last_comp_version;
|
||||
bph->version = cpu_to_be32(vi->version);
|
||||
bph->last_comp_version = cpu_to_be32(vi->last_comp_version);
|
||||
|
||||
/* Reserve map should be doubleword aligned */
|
||||
reserve_off = ALIGN(vi->hdr_size, 8);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue