summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2021-05-13 13:33:11 +0000
committerIngo Schwarze <schwarze@openbsd.org>2021-05-13 13:33:11 +0000
commit9612983eb1a1d2d745462a4075bd2175d3e1411d (patch)
tree470ef3a435017916395c58b20f4257b8584371d2
parente95952eee8ed66ff1d62892866f3f9417647fdba (diff)
downloadmandoc-9612983eb1a1d2d745462a4075bd2175d3e1411d.tar.gz
Add OpenBSD riscv64 architecture; patch from jsg@.
While here, retire sgi and socppc.
-rw-r--r--arch.c2
-rw-r--r--cgi.c5
2 files changed, 4 insertions, 3 deletions
diff --git a/arch.c b/arch.c
index 3240a6ea..9335a3a6 100644
--- a/arch.c
+++ b/arch.c
@@ -26,7 +26,7 @@ arch_valid(const char *arch, enum mandoc_os os)
const char *openbsd_arch[] = {
"alpha", "amd64", "arm64", "armv7", "hppa", "i386",
"landisk", "loongson", "luna88k", "macppc", "mips64",
- "octeon", "powerpc64", "sgi", "sparc64", NULL
+ "octeon", "powerpc64", "riscv64", "sparc64", NULL
};
const char *netbsd_arch[] = {
"acorn26", "acorn32", "algor", "alpha", "amiga",
diff --git a/cgi.c b/cgi.c
index bdd5acf9..363b1a82 100644
--- a/cgi.c
+++ b/cgi.c
@@ -125,14 +125,15 @@ static const char *const arch_names[] = {
"amd64", "alpha", "armv7", "arm64",
"hppa", "i386", "landisk", "loongson",
"luna88k", "macppc", "mips64", "octeon",
- "powerpc64", "sgi", "socppc", "sparc64",
+ "powerpc64", "riscv64", "sparc64",
"amiga", "arc", "armish", "arm32",
"atari", "aviion", "beagle", "cats",
"hppa64", "hp300",
"ia64", "mac68k", "mvme68k", "mvme88k",
"mvmeppc", "palm", "pc532", "pegasos",
- "pmax", "powerpc", "solbourne", "sparc",
+ "pmax", "powerpc", "sgi", "socppc",
+ "solbourne", "sparc",
"sun3", "vax", "wgrisc", "x68k",
"zaurus"
};