diff options
author | Marc G. Fournier | 1998-02-03 01:25:47 +0000 |
---|---|---|
committer | Marc G. Fournier | 1998-02-03 01:25:47 +0000 |
commit | eb348bf41cb231d1f808a91f3367bfbb96af27d5 (patch) | |
tree | dbfebed4867d8999c1736b64094509e750d08839 /src/backend/main | |
parent | fe3737f6f9c9380a84d6b3c98de0f208f1a82c36 (diff) |
Clean up the alpha port, remove the backend/port/alpha subdirectory
structure, and move the init_address_fixup() code directly into
backend/main/main.c with appropriate #ifdefs around it...
Diffstat (limited to 'src/backend/main')
-rw-r--r-- | src/backend/main/main.c | 29 |
1 files changed, 25 insertions, 4 deletions
diff --git a/src/backend/main/main.c b/src/backend/main/main.c index 2777ff061db..8cfce24e1ad 100644 --- a/src/backend/main/main.c +++ b/src/backend/main/main.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/main/main.c,v 1.11 1997/12/19 02:05:42 scrappy Exp $ + * $Header: /cvsroot/pgsql/src/backend/main/main.c,v 1.12 1998/02/03 01:25:23 scrappy Exp $ * *------------------------------------------------------------------------- */ @@ -38,9 +38,18 @@ main(int argc, char *argv[]) { int len; +#if defined(alpha) +# ifdef NOFIXADE + int buffer[] = {SSIN_UACPROC, UAC_SIGBUS}; +# endif /* NOFIXADE */ +# ifdef NOPRINTADE + int buffer[] = {SSIN_UACPROC, UAC_NOPRINT}; +# endif /* NOPRINTADE */ +#endif + #ifdef USE_LOCALE setlocale(LC_CTYPE, ""); /* take locale information from an - * environment */ + * environment */ setlocale(LC_COLLATE, ""); setlocale(LC_MONETARY, ""); #endif @@ -50,8 +59,20 @@ main(int argc, char *argv[]) * Must be first so that the bootstrap code calls it, too. (Only * needed on some RISC architectures.) */ - init_address_fixup(); -#endif /* NOFIXADE || NOPRINTADE */ + +#if defined(ultrix4) + syscall(SYS_sysmips, MIPS_FIXADE, 0, NULL, NULL, NULL); +#endif + +#if defined(alpha) + if (setsysinfo(SSI_NVPAIRS, buffer, 1, (caddr_t) NULL, + (unsigned long) NULL) < 0) + { + elog(NOTICE, "setsysinfo failed: %d\n", errno); + } +#endif + +#endif /* NOFIXADE || NOPRINTADE */ /* * use one executable for both postgres and postmaster, invoke one or |