diff options
author | davidcunado-arm <david.cunado@arm.com> | 2017-02-16 14:49:37 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-16 14:49:37 +0000 |
commit | 108e4df7f167bccc2c9ccef87bdd62d15c3aa74b (patch) | |
tree | eab88468edac4c5281fc3116536de4726368a70d /drivers/partition/gpt.c | |
parent | 406a4ade146a4d0caa8a763de8e024a92085a08a (diff) | |
parent | 32f0d3c6c3fb1fb9353ec0b82ddb099281b9328c (diff) |
Merge pull request #834 from douglas-raillard-arm/dr/use_dc_zva_zeroing
Use DC ZVA instruction to zero memory
Diffstat (limited to 'drivers/partition/gpt.c')
-rw-r--r-- | drivers/partition/gpt.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/partition/gpt.c b/drivers/partition/gpt.c index 9240d5a7..05f13f34 100644 --- a/drivers/partition/gpt.c +++ b/drivers/partition/gpt.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2016-2017, ARM Limited and Contributors. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -33,6 +33,7 @@ #include <errno.h> #include <gpt.h> #include <string.h> +#include <utils.h> static int unicode_to_ascii(unsigned short *str_in, unsigned char *str_out) { @@ -65,7 +66,7 @@ int parse_gpt_entry(gpt_entry_t *gpt_entry, partition_entry_t *entry) return -EINVAL; } - memset(entry, 0, sizeof(partition_entry_t)); + zeromem(entry, sizeof(partition_entry_t)); result = unicode_to_ascii(gpt_entry->name, (uint8_t *)entry->name); if (result != 0) { return result; |