summaryrefslogtreecommitdiff
path: root/package/aboot/src/netwrap.h
blob: 20c9e4612225e3120268171650190a0d427daada (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
struct header {
	int header_size;
	int kern_size;
	int ird_size; 
	char boot_arg[200]; 
} ;

unsigned long align_pagesize(unsigned long v)
{
        return ((v + (PAGE_SIZE-1)) & ~(PAGE_SIZE-1));
}

unsigned long align_512(unsigned long v)
{
        return ((v + 511) & ~511);
}