mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-30 02:27:38 +01:00
[x86-64] Minor reformatting for GNU-style and use memset() in lieu of bzero().
This commit is contained in:
parent
795529eee3
commit
62bacfcf1f
1 changed files with 7 additions and 6 deletions
|
@ -119,7 +119,8 @@ validate_mem (unw_word_t addr)
|
||||||
|
|
||||||
addr = PAGE_START(addr);
|
addr = PAGE_START(addr);
|
||||||
|
|
||||||
for (i = 0; i < NLGA; i++) {
|
for (i = 0; i < NLGA; i++)
|
||||||
|
{
|
||||||
if (last_good_addr[i] && (addr == last_good_addr[i]))
|
if (last_good_addr[i] && (addr == last_good_addr[i]))
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -251,7 +252,7 @@ x86_64_local_addr_space_init (void)
|
||||||
unw_flush_cache (&local_addr_space, 0, 0);
|
unw_flush_cache (&local_addr_space, 0, 0);
|
||||||
|
|
||||||
local_addr_space.validate = 0;
|
local_addr_space.validate = 0;
|
||||||
bzero(last_good_addr, sizeof(unw_word_t) * NLGA);
|
memset (last_good_addr, 0, sizeof (unw_word_t) * NLGA);
|
||||||
lga_victim = 0;
|
lga_victim = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue