Changeset 3bacee1 in mainline for kernel/arch/sparc64/src/sun4v/md.c
- Timestamp:
- 2018-04-12T16:27:17Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3cf22f9
- Parents:
- 76d0981d
- git-author:
- Jiri Svoboda <jiri@…> (2018-04-11 19:25:33)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-04-12 16:27:17)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/sun4v/md.c
r76d0981d r3bacee1 62 62 uint32_t name_blk_sz; /**< Size in bytes of name block */ 63 63 uint32_t data_blk_sz; /**< Size in bytes of data block */ 64 } __attribute__ 64 } __attribute__((packed)) md_header_t; 65 65 66 66 /** machine description element (in the node block) */ … … 91 91 uint64_t val; 92 92 } d; 93 } __attribute__ 93 } __attribute__((packed)) md_element_t; 94 94 95 95 /** index of the element within the node block */ … … 98 98 /** buffer to which the machine description will be saved */ 99 99 static uint8_t mach_desc[MD_MAX_SIZE] 100 __attribute__ ((aligned(16)));100 __attribute__((aligned(16))); 101 101 102 102 … … 129 129 */ 130 130 bool md_get_integer_property(md_node_t node, const char *key, 131 131 uint64_t *result) 132 132 { 133 133 element_idx_t idx = node; … … 152 152 */ 153 153 bool md_get_string_property(md_node_t node, const char *key, 154 154 const char **result) 155 155 { 156 156 md_header_t *md_header = (md_header_t *) mach_desc;
Note:
See TracChangeset
for help on using the changeset viewer.