From ab9e4f1c87d8f7d26d4b47cdd51037391786e491 Mon Sep 17 00:00:00 2001 From: Sasha Levin Date: Tue, 3 May 2011 23:28:06 +0300 Subject: [PATCH] kvm tools: Drop ALIGN from bios.h Drops align from bios.h, fixes related code to use instead. Acked-by: Cyrill Gorcunov Signed-off-by: Sasha Levin Signed-off-by: Pekka Enberg --- include/kvm/bios.h | 13 ------------- mptable.c | 1 + 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/include/kvm/bios.h b/include/kvm/bios.h index 914720b..7586e2a 100644 --- a/include/kvm/bios.h +++ b/include/kvm/bios.h @@ -51,19 +51,6 @@ #define MB_BIOS_SS 0xfff7 #define MB_BIOS_SP 0x40 -#ifndef ALIGN -#define ALIGN(x, a) \ - (((x) + ((a) - 1)) & ~((a) - 1)) -#endif - -/* - * note we use 16 bytes alignment which makes segment based - * addressing easy to compute, dont change it otherwise you - * may break local variables offsets in BIOS irq routines - */ -#define BIOS_NEXT_IRQ_ADDR(addr, size) \ - ALIGN((addr + size + 1), 16) - /* * When interfere with assembler code we need to be sure how * arguments are passed in real mode. diff --git a/mptable.c b/mptable.c index 5bbe7ea..b74c491 100644 --- a/mptable.c +++ b/mptable.c @@ -4,6 +4,7 @@ #include "kvm/mptable.h" #include "kvm/util.h" +#include #include /*