File: netwrap.h

package info (click to toggle)
aboot 0.9b-3+etchnhalf.1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 980 kB
  • ctags: 1,656
  • sloc: ansic: 8,975; perl: 738; makefile: 382; asm: 309; sh: 3
file content (17 lines) | stat: -rw-r--r-- 280 bytes parent folder | download | duplicates (4)
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);
}