diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2017-12-31 18:47:16 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2017-12-31 18:47:25 +0100 |
commit | 3a96085b999220c4da0c5ef7d1f7ba26b9ddfb98 (patch) | |
tree | 77f1445aae2e6be5135594e95986b3278bbc061c /package/aboot/src/netwrap.h | |
parent | cc28479164b8dc8afd4310716da32f16022f5974 (diff) |
dec-multia: make netboot possible, add aboot bootloader
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); +} + |