Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hp300/stand/uboot Create an empty bootinfo structure.
details: https://anonhg.NetBSD.org/src/rev/eb2f8f573971
branches: trunk
changeset: 511958:eb2f8f573971
user: gmcgarry <gmcgarry%NetBSD.org@localhost>
date: Sun Jul 01 01:38:14 2001 +0000
description:
Create an empty bootinfo structure.
diffstat:
sys/arch/hp300/stand/uboot/uboot.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diffs (29 lines):
diff -r c95f4ac2a1b1 -r eb2f8f573971 sys/arch/hp300/stand/uboot/uboot.c
--- a/sys/arch/hp300/stand/uboot/uboot.c Sun Jul 01 00:20:47 2001 +0000
+++ b/sys/arch/hp300/stand/uboot/uboot.c Sun Jul 01 01:38:14 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uboot.c,v 1.5 2001/01/02 04:14:35 simonb Exp $ */
+/* $NetBSD: uboot.c,v 1.6 2001/07/01 01:38:14 gmcgarry Exp $ */
/*-
* Copyright (c) 1982, 1986, 1990, 1993
@@ -152,6 +152,7 @@
int howto;
{
u_long marks[MARK_MAX];
+ struct btinfo_magic *bt;
int fd;
marks[MARK_START] = loadaddr;
@@ -163,6 +164,11 @@
marks[MARK_ENTRY], marks[MARK_NSYM],
marks[MARK_SYM], marks[MARK_END]);
+ bt = (struct btinfo_magic *)lowram;
+ bt->common.type = BTINFO_MAGIC;
+ bt->magic1 = BOOTINFO_MAGIC1;
+ bt->magic2 = BOOTINFO_MAGIC2;
+
machdep_start((char *)marks[MARK_ENTRY], howto,
(char *)loadaddr, (char *)marks[MARK_SYM],
(char *)marks[MARK_END]);
Home |
Main Index |
Thread Index |
Old Index