1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-11-22 15:47:37 +01:00

[x86-64] Minor reformatting for GNU-style and use memset() in lieu of bzero().

This commit is contained in:
David Mosberger-Tang 2006-08-10 21:34:31 -06:00
parent 795529eee3
commit 62bacfcf1f

View file

@ -119,12 +119,13 @@ validate_mem (unw_word_t addr)
addr = PAGE_START(addr);
for (i = 0; i < NLGA; i++) {
if (last_good_addr[i] && (addr == last_good_addr[i]))
return 0;
}
for (i = 0; i < NLGA; i++)
{
if (last_good_addr[i] && (addr == last_good_addr[i]))
return 0;
}
if (msync((void *) addr, 1, MS_SYNC) == -1)
if (msync ((void *) addr, 1, MS_SYNC) == -1)
return -1;
victim = lga_victim;
@ -251,7 +252,7 @@ x86_64_local_addr_space_init (void)
unw_flush_cache (&local_addr_space, 0, 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;
}