summaryrefslogtreecommitdiff
path: root/sys/arch/vax/stand/xxboot/genassym.cf
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2011-09-29 18:02:42 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2011-09-29 18:02:42 +0000
commit0e328f183e606cb69d230296096c3d594b6849c1 (patch)
tree29cc1b18d0d059f71382fe7a333b24cbf1186930 /sys/arch/vax/stand/xxboot/genassym.cf
parentc4ad09d10b9bdbdd80e929e4eda28aed10ce9aad (diff)
Get size of struct disklabel for the sake of the assembly code with a
genassym script, instead of relying upon <sys/disklabel.h> to provide them as proper .set statements if _LOCORE is defined. Requested by weingart@ long ago; ok jsing@ krw@
Diffstat (limited to 'sys/arch/vax/stand/xxboot/genassym.cf')
-rw-r--r--sys/arch/vax/stand/xxboot/genassym.cf21
1 files changed, 21 insertions, 0 deletions
diff --git a/sys/arch/vax/stand/xxboot/genassym.cf b/sys/arch/vax/stand/xxboot/genassym.cf
new file mode 100644
index 00000000000..da511b58c0d
--- /dev/null
+++ b/sys/arch/vax/stand/xxboot/genassym.cf
@@ -0,0 +1,21 @@
+# $OpenBSD: genassym.cf,v 1.1 2011/09/29 18:02:41 miod Exp $
+#
+# Copyright (c) 2011 Miodrag Vallat.
+#
+# Permission to use, copy, modify, and distribute this software for any
+# purpose with or without fee is hereby granted, provided that the above
+# copyright notice and this permission notice appear in all copies.
+#
+# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
+include <sys/param.h>
+include <sys/disklabel.h>
+
+struct disklabel
+export LABELOFFSET