Commit 21525052 authored by davidcunado-arm's avatar davidcunado-arm Committed by GitHub
Browse files

Merge pull request #1110 from masahir0y/xlat

Fix MAP_REGION for GCC 4.9
Showing with 2 additions and 2 deletions
+2 -2
...@@ -23,12 +23,12 @@ ...@@ -23,12 +23,12 @@
/* Helper macro to define entries for mmap_region_t. It allows to /* Helper macro to define entries for mmap_region_t. It allows to
* re-map address mappings from 'pa' to 'va' for each region. * re-map address mappings from 'pa' to 'va' for each region.
*/ */
#define MAP_REGION(_pa, _va, _sz, _attr) ((mmap_region_t){ \ #define MAP_REGION(_pa, _va, _sz, _attr) { \
.base_pa = (_pa), \ .base_pa = (_pa), \
.base_va = (_va), \ .base_va = (_va), \
.size = (_sz), \ .size = (_sz), \
.attr = (_attr), \ .attr = (_attr), \
}) }
/* /*
* Shifts and masks to access fields of an mmap_attr_t * Shifts and masks to access fields of an mmap_attr_t
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment