diff options
author | peter <peter@FreeBSD.org> | 2002-10-27 00:21:02 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2002-10-27 00:21:02 +0000 |
commit | 29db798cec468c41893c359a01ae7b74c7e8035c (patch) | |
tree | 89626631ddf1264b0fc55bb15b84de6cf34c8135 /lib/libdisk/disk.c | |
parent | 588d4313cdf4c89a2bb7466afd610e848c95d7e7 (diff) | |
download | FreeBSD-src-29db798cec468c41893c359a01ae7b74c7e8035c.zip FreeBSD-src-29db798cec468c41893c359a01ae7b74c7e8035c.tar.gz |
Add back ia64 support that was removed in the last few revisions.
I've cloned write_ia64_disk.c from write_i386_disk.c.
Diffstat (limited to 'lib/libdisk/disk.c')
-rw-r--r-- | lib/libdisk/disk.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/libdisk/disk.c b/lib/libdisk/disk.c index 119493e..3675b44 100644 --- a/lib/libdisk/disk.c +++ b/lib/libdisk/disk.c @@ -778,6 +778,10 @@ Debug_Disk(struct disk *d) #elif defined(__alpha__) printf(" boot1=%p, bootmgr=%p\n", d->boot1, d->bootmgr); +#elif defined(__ia64__) + printf("\n"); +#else +/* Should be: error "Debug_Disk: unknown arch"; */ #endif Debug_Chunk(d->chunks); } @@ -791,9 +795,13 @@ Free_Disk(struct disk *d) if(d->bootipl) free(d->bootipl); if(d->bootmenu) free(d->bootmenu); #else +#if !defined(__ia64__) if(d->bootmgr) free(d->bootmgr); #endif +#endif +#if !defined(__ia64__) if(d->boot1) free(d->boot1); +#endif #if defined(__i386__) if(d->boot2) free(d->boot2); #endif @@ -868,6 +876,7 @@ void Set_Boot_Mgr(struct disk *d, const u_char *b, const size_t s) #endif { +#if !defined(__ia64__) #ifdef PC98 if (bootipl_size % d->sector_size != 0) return; @@ -908,6 +917,7 @@ Set_Boot_Mgr(struct disk *d, const u_char *b, const size_t s) memcpy(d->bootmgr, b, s); } #endif +#endif } int @@ -927,6 +937,10 @@ Set_Boot_Blocks(struct disk *d, const u_char *b1, const u_char *b2) d->boot1 = malloc(15 * 512); if(!d->boot1) return -1; memcpy(d->boot1, b1, 15 * 512); +#elif defined(__ia64__) + /* nothing */ +#else +/* Should be: #error "Set_Boot_Blocks: unknown arch"; */ #endif return 0; } |