commit | a38648290ee277c7cb8a53eabdcdb08bb7a9f23f | [log] [tgz] |
---|---|---|
author | Ian Jackson <ian.jackson@eu.citrix.com> | Mon Dec 17 11:43:19 2012 +0000 |
committer | Stefano Stabellini <stefano.stabellini@eu.citrix.com> | Mon Dec 17 11:43:19 2012 +0000 |
tree | 08fcf5b90461b52d98bd2c30687005cf1dce8a2f | |
parent | f1b8caf1d927f30f66054733a783651a24db4999 [diff] |
cpu_ioreq_pio, cpu_ioreq_move: introduce read_phys_req_item, write_phys_req_item Replace a lot of formulaic multiplications (containing casts, no less) with calls to a pair of functions. This encapsulates in a single place the operations which require care relating to integer overflow. Cc: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com> Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>