From edd5fa2492def21f0e01b3369c344e035a20b67e Mon Sep 17 00:00:00 2001 From: peter Date: Sat, 24 May 2003 21:12:14 +0000 Subject: Add __amd64__ ifdefs to enable the bootblock handling code, slices, etc. Approved by: re (murray) Obtained from: obrien --- usr.sbin/sade/disks.c | 6 +++--- usr.sbin/sade/install.c | 2 +- usr.sbin/sade/label.c | 2 +- usr.sbin/sade/menus.c | 2 +- usr.sbin/sade/sade.h | 6 +++--- 5 files changed, 9 insertions(+), 9 deletions(-) (limited to 'usr.sbin/sade') diff --git a/usr.sbin/sade/disks.c b/usr.sbin/sade/disks.c index 702ea5d..93050f7 100644 --- a/usr.sbin/sade/disks.c +++ b/usr.sbin/sade/disks.c @@ -234,7 +234,7 @@ getBootMgr(char *dname, u_char **bootipl, size_t *bootipl_size, static void getBootMgr(char *dname, u_char **bootCode, size_t *bootCodeSize) { -#ifdef __i386__ /* only meaningful on x86 */ +#if defined(__i386__) || defined(__amd64__) /* only meaningful on x86 */ static u_char *mbr, *boot0; static size_t mbr_size, boot0_size; char str[80]; @@ -847,14 +847,14 @@ diskPartitionWrite(dialogMenuItem *self) for (i = 0; devs[i]; i++) { Disk *d = (Disk *)devs[i]->private; static u_char *boot1; -#if defined(__i386__) || defined(__ia64__) +#if defined(__i386__) || defined(__ia64__) || defined(__amd64__) static u_char *boot2; #endif if (!devs[i]->enabled) continue; -#if defined(__i386__) || defined(__ia64__) +#if defined(__i386__) || defined(__ia64__) || defined(__amd64__) if (!boot1) boot1 = bootalloc("boot1", NULL); if (!boot2) boot2 = bootalloc("boot2", NULL); Set_Boot_Blocks(d, boot1, boot2); diff --git a/usr.sbin/sade/install.c b/usr.sbin/sade/install.c index 1a4dee1..2a0e0be 100644 --- a/usr.sbin/sade/install.c +++ b/usr.sbin/sade/install.c @@ -807,7 +807,7 @@ installFixupBase(dialogMenuItem *self) /* All of this is done only as init, just to be safe */ if (RunningAsInit) { -#ifdef __i386__ +#if defined(__i386__) || defined(__amd64__) if ((fp = fopen("/boot/loader.conf", "a")) != NULL) { if (!kstat || !OnVTY) fprintf(fp, "# -- sysinstall generated deltas -- #\n"); diff --git a/usr.sbin/sade/label.c b/usr.sbin/sade/label.c index 798fb5f..bf97140 100644 --- a/usr.sbin/sade/label.c +++ b/usr.sbin/sade/label.c @@ -59,7 +59,7 @@ /* * Minimum partition sizes */ -#if defined(__alpha__) || defined(__ia64__) || defined(__sparc64__) +#if defined(__alpha__) || defined(__ia64__) || defined(__sparc64__) || defined(__amd64__) #define ROOT_MIN_SIZE 128 #else #define ROOT_MIN_SIZE 118 diff --git a/usr.sbin/sade/menus.c b/usr.sbin/sade/menus.c index 16ac0bd..183f1a7 100644 --- a/usr.sbin/sade/menus.c +++ b/usr.sbin/sade/menus.c @@ -1418,7 +1418,7 @@ DMenu MenuInstallCustom = { { NULL } }, }; -#ifdef __i386__ +#if defined(__i386__) || defined(__amd64__) #ifdef PC98 /* IPL type menu */ DMenu MenuIPLType = { diff --git a/usr.sbin/sade/sade.h b/usr.sbin/sade/sade.h index cf53575..264dc40 100644 --- a/usr.sbin/sade/sade.h +++ b/usr.sbin/sade/sade.h @@ -54,12 +54,12 @@ /*** Defines ***/ -#if defined(__i386__) || defined(__alpha__) || defined(__ia64__) +#if defined(__i386__) || defined(__alpha__) || defined(__ia64__) || defined(__amd64__) #define WITH_SYSCONS #define WITH_MICE #endif -#if defined(__i386__) || defined(__ia64__) +#if defined(__i386__) || defined(__ia64__) || defined(__amd64__) #define WITH_SLICES #endif @@ -421,7 +421,7 @@ extern int BootMgr; /* Which boot manager to use */ extern int StatusLine; /* Where to print our status messages */ extern DMenu MenuInitial; /* Initial installation menu */ extern DMenu MenuFixit; /* Fixit repair menu */ -#ifdef __i386__ +#if defined(__i386__) || defined(__amd64__) #ifdef PC98 extern DMenu MenuIPLType; /* Type of IPL to write on the disk */ #else -- cgit v1.1