debuggers.hg

view tools/libxc/ia64/dom_fw_acpi.c @ 0:7d21f7218375

Exact replica of unstable on 051908 + README-this
author Mukesh Rathor
date Mon May 19 15:34:57 2008 -0700 (2008-05-19)
parents
children 5c0bf00e371d
line source
1 #include <inttypes.h>
2 #include "xc_dom_ia64_util.h"
3 #include <xen/acpi.h>
5 uint8_t
6 generate_acpi_checksum(void *tbl, unsigned long len)
7 {
8 uint8_t *ptr, sum = 0;
10 for ( ptr = tbl; len > 0 ; len--, ptr++ )
11 sum += *ptr;
13 return 0 - sum;
14 }