History

remoteproc: Use u64 type for boot_addr

elf64 entry is defined as a u64. Since boot_addr is used to store the elf entry point, change boot_addr type to u64 to support both elf32 and elf64. In the same time, fix users that were using this variable.

Clement Leger committed 6 years ago

Commit e4ae4b71 parent 096ee784 files · +6 −6Browse files

Showing the changes to include/linux (1 of 4 files). Show all

Unified · Split

include/linux/remoteproc.h+2−2
@@ -382,7 +382,7 @@ struct rproc_ops { · 381 unmodified lines
382382 struct rproc *rproc, const struct firmware *fw);
383383 int (*load)(struct rproc *rproc, const struct firmware *fw);
384384 int (*sanity_check)(struct rproc *rproc, const struct firmware *fw);
385− u32 (*get_boot_addr)(struct rproc *rproc, const struct firmware *fw);
385+ u64 (*get_boot_addr)(struct rproc *rproc, const struct firmware *fw);
386386 };
387387
388388 /**
@@ -498,7 +498,7 @@ struct rproc { · 109 unmodified lines
498498 int num_traces;
499499 struct list_head carveouts;
500500 struct list_head mappings;
501− u32 bootaddr;
501+ u64 bootaddr;
502502 struct list_head rvdevs;
503503 struct list_head subdevs;
504504 struct idr notifyids;