diff options
Diffstat (limited to 'hw/m68k/bootinfo.h')
-rw-r--r-- | hw/m68k/bootinfo.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/hw/m68k/bootinfo.h b/hw/m68k/bootinfo.h index ff4e155..bd8b212 100644 --- a/hw/m68k/bootinfo.h +++ b/hw/m68k/bootinfo.h @@ -56,4 +56,20 @@ stb_phys(as, base++, 0); \ base = (base + 1) & ~1; \ } while (0) + +#define BOOTINFODATA(as, base, id, data, len) \ + do { \ + int i; \ + stw_phys(as, base, id); \ + base += 2; \ + stw_phys(as, base, \ + (sizeof(struct bi_record) + len + 3) & ~1); \ + base += 2; \ + stw_phys(as, base, len); \ + base += 2; \ + for (i = 0; i < len; ++i) { \ + stb_phys(as, base++, data[i]); \ + } \ + base = (base + 1) & ~1; \ + } while (0) #endif |