Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/prep/stand/mkbootimage Provide MBR_PTYPE_PREP and M...
details: https://anonhg.NetBSD.org/src/rev/e1d03e0583e0
branches: trunk
changeset: 526504:e1d03e0583e0
user: kleink <kleink%NetBSD.org@localhost>
date: Sat May 04 20:46:23 2002 +0000
description:
Provide MBR_PTYPE_PREP and MBR_FLAGS_ACTIVE locally, if not available.
diffstat:
sys/arch/prep/stand/mkbootimage/mkbootimage.c | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diffs (25 lines):
diff -r 7bdacb47d3c8 -r e1d03e0583e0 sys/arch/prep/stand/mkbootimage/mkbootimage.c
--- a/sys/arch/prep/stand/mkbootimage/mkbootimage.c Sat May 04 20:42:25 2002 +0000
+++ b/sys/arch/prep/stand/mkbootimage/mkbootimage.c Sat May 04 20:46:23 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mkbootimage.c,v 1.3 2002/04/25 23:30:26 kleink Exp $ */
+/* $NetBSD: mkbootimage.c,v 1.4 2002/05/04 20:46:23 kleink Exp $ */
/*-
* Copyright (C) 1999, 2000 NONAKA Kimihiro (nonaka%netbsd.org@localhost)
@@ -47,6 +47,15 @@
#include "byteorder.h"
#include "magic.h"
+#ifndef MBR_PTYPE_PREP
+#define MBR_PTYPE_PREP 0x41
+#endif
+
+#ifndef MBR_FLAGS_ACTIVE
+#define MBR_FLAGS_ACTIVE 0x80
+#endif
+
+
int
main(argc, argv)
int argc;
Home |
Main Index |
Thread Index |
Old Index