kvm tools: Drop ALIGN from bios.h

Drops align from bios.h, fixes related code to use
<linux/kernel.h> instead.

Acked-by: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
This commit is contained in:
Sasha Levin
2015-06-01 16:39:43 +01:00
committed by Will Deacon
parent c9ad1e3c72
commit ab9e4f1c87
2 changed files with 1 additions and 13 deletions
-13
View File
@@ -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.
+1
View File
@@ -4,6 +4,7 @@
#include "kvm/mptable.h"
#include "kvm/util.h"
#include <linux/kernel.h>
#include <string.h>
/*