diff options
Diffstat (limited to 'package/aboot/src/netwrap.h')
-rw-r--r-- | package/aboot/src/netwrap.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/package/aboot/src/netwrap.h b/package/aboot/src/netwrap.h new file mode 100644 index 000000000..20c9e4612 --- /dev/null +++ b/package/aboot/src/netwrap.h @@ -0,0 +1,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); +} + |