📄 dom_fw_acpi.c
字号:
#include <inttypes.h>#include "xc_dom_ia64_util.h"#include <xen/acpi.h>#include <acpi/actables.h>/* stolen from xen/drivers/acpi/tables/tbutils.c *//******************************************************************************* * * FUNCTION: acpi_tb_checksum * * PARAMETERS: Buffer - Pointer to memory region to be checked * Length - Length of this memory region * * RETURN: Checksum (u8) * * DESCRIPTION: Calculates circular checksum of memory region. * ******************************************************************************/u8 acpi_tb_checksum(u8 * buffer, acpi_native_uint length){ u8 sum = 0; u8 *end = buffer + length; while (buffer < end) { sum = (u8) (sum + *(buffer++)); } return sum;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -