summaryrefslogtreecommitdiff
path: root/sys/arch/powerpc/stand
diff options
context:
space:
mode:
authorPer Fogelstrom <pefo@cvs.openbsd.org>1997-10-15 14:07:54 +0000
committerPer Fogelstrom <pefo@cvs.openbsd.org>1997-10-15 14:07:54 +0000
commitdf1fc979e9dafa311ec8c2b86389e9f06b05da68 (patch)
tree53d30a6279f8acc73c44942d422a2e4bc8b96c41 /sys/arch/powerpc/stand
parent3e4ed020b50433480ff6cb3280d3b5356afefc3f (diff)
Add shm/sem includes, fix up disklabel stuff
Diffstat (limited to 'sys/arch/powerpc/stand')
-rw-r--r--sys/arch/powerpc/stand/Makefile5
-rw-r--r--sys/arch/powerpc/stand/ofwboot/ofdev.c13
2 files changed, 10 insertions, 8 deletions
diff --git a/sys/arch/powerpc/stand/Makefile b/sys/arch/powerpc/stand/Makefile
index a7b3355a903..fb1d3abc93a 100644
--- a/sys/arch/powerpc/stand/Makefile
+++ b/sys/arch/powerpc/stand/Makefile
@@ -1,7 +1,8 @@
-# $OpenBSD: Makefile,v 1.6 1997/05/21 22:50:04 rahnds Exp $
+# $OpenBSD: Makefile,v 1.7 1997/10/15 14:07:53 pefo Exp $
# $NetBSD: Makefile,v 1.1 1996/09/30 16:34:59 ws Exp $
-SUBDIR= boot boot.mac ofwboot
+#SUBDIR= boot boot.mac ofwboot mbr
+SUBDIR= ofwboot mbr
SAREL=
KERNREL=
diff --git a/sys/arch/powerpc/stand/ofwboot/ofdev.c b/sys/arch/powerpc/stand/ofwboot/ofdev.c
index 5f6bebab1df..17ad77692db 100644
--- a/sys/arch/powerpc/stand/ofwboot/ofdev.c
+++ b/sys/arch/powerpc/stand/ofwboot/ofdev.c
@@ -186,7 +186,7 @@ search_label(devp, off, buf, lp, off0)
u_long off0;
{
size_t read;
- struct mbr_partition *p;
+ struct dos_partition *p;
int i;
u_long poff;
static int recursion;
@@ -200,10 +200,11 @@ search_label(devp, off, buf, lp, off0)
if (recursion++ <= 1)
off0 += off;
- for (p = (struct mbr_partition *)(buf + MBRPARTOFF), i = 4;
+ for (p = (struct dos_partition *)(buf + DOSPARTOFF), i = 4;
--i >= 0; p++) {
- if (p->mbr_type == MBR_NETBSD) {
- poff = get_long(&p->mbr_start) + off0;
+ if (p->dp_typ == DOSPTYP_OPENBSD ||
+ p->dp_typ == DOSPTYP_NETBSD) {
+ poff = get_long(&p->dp_start) + off0;
if (strategy(devp, F_READ, poff + LABELSECTOR,
DEV_BSIZE, buf, &read) == 0
&& read == DEV_BSIZE) {
@@ -217,8 +218,8 @@ search_label(devp, off, buf, lp, off0)
recursion--;
return ERDLAB;
}
- } else if (p->mbr_type == MBR_EXTENDED) {
- poff = get_long(&p->mbr_start);
+ } else if (p->dp_typ == DOSPTYP_EXTEND) {
+ poff = get_long(&p->dp_start);
if (!search_label(devp, poff, buf, lp, off0)) {
recursion--;
return 0;