summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2001-12-07 00:49:06 +0000
committermiod <miod@openbsd.org>2001-12-07 00:49:06 +0000
commit01a1262159bc5b8ec246b79f31e5cadfe9f9bbcb (patch)
tree920bd7e241baf9bf63e9c1f834b829a581ad748f
parentMake vnds larger than 2G work, mostly by Daniel Lucq <daniel@lucq.org>. (diff)
downloadwireguard-openbsd-01a1262159bc5b8ec246b79f31e5cadfe9f9bbcb.tar.xz
wireguard-openbsd-01a1262159bc5b8ec246b79f31e5cadfe9f9bbcb.zip
In uni_n_config(), only return a base address if a base address was found.
-rw-r--r--sys/arch/macppc/dev/uni_n.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/macppc/dev/uni_n.c b/sys/arch/macppc/dev/uni_n.c
index 4d3e44efac5..5802866ec4f 100644
--- a/sys/arch/macppc/dev/uni_n.c
+++ b/sys/arch/macppc/dev/uni_n.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uni_n.c,v 1.1 2001/09/01 15:50:00 drahn Exp $ */
+/* $OpenBSD: uni_n.c,v 1.2 2001/12/07 00:49:06 miod Exp $ */
/*
* Copyright (c) 1998-2001 Dale Rahn. All rights reserved.
@@ -110,8 +110,8 @@ uni_n_config(int handle)
baseaddr = mapiodev(address, NBPG);
ctladdr = (void*)(baseaddr + 0x20);
*ctladdr |= 0x02;
+ return baseaddr;
}
- return baseaddr;
}
}
return 0;