From 657f4273136f0cec38d2f688dcd2587d2edecf38 Mon Sep 17 00:00:00 2001 From: martin Date: Thu, 4 Apr 2013 12:52:25 +0000 Subject: [PATCH] Calculate the disklabel size (for asm code) dynamically based on MAXPARTITIONS. --- sys/sys/disklabel.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/sys/disklabel.h b/sys/sys/disklabel.h index 42e38f73df99..7ba39da44272 100644 --- a/sys/sys/disklabel.h +++ b/sys/sys/disklabel.h @@ -1,4 +1,4 @@ -/* $NetBSD: disklabel.h,v 1.112 2012/01/16 18:47:58 christos Exp $ */ +/* $NetBSD: disklabel.h,v 1.113 2013/04/04 12:52:25 martin Exp $ */ /* * Copyright (c) 1987, 1988, 1993 @@ -267,7 +267,7 @@ struct olddisklabel { .set d_ncylinders,52 .set d_secpercyl,56 .set d_secperunit,60 - .set d_end_,276 /* size of disk label */ + .set d_end_,148+(MAXPARTITIONS*16) #endif /* _LOCORE */ /*