This commit is contained in:
tsutsui 2009-01-12 07:49:57 +00:00
parent e46a73d2df
commit e7cdb2297e
5 changed files with 9 additions and 11 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: Locore.c,v 1.21 2008/02/12 04:27:46 garbled Exp $ */
/* $NetBSD: Locore.c,v 1.22 2009/01/12 07:49:57 tsutsui Exp $ */
/*
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@ -515,7 +515,6 @@ OF_chain(void *virt, u_int size, boot_entry_t entry, void *arg, u_int len)
static int stdin;
static int stdout;
static int memory;
static void
setup(void)

View File

@ -1,10 +1,11 @@
# $NetBSD: Makefile,v 1.23 2008/02/13 20:11:38 garbled Exp $
# $NetBSD: Makefile,v 1.24 2009/01/12 07:49:57 tsutsui Exp $
S!= cd ${.CURDIR}/../../../.. ; pwd
PROG= ofwboot
SRCS= ofwstart.S Locore.c boot.c ofdev.c net.c netif_of.c vers.c
CFLAGS+= -msoft-float -Wno-main -ffreestanding
CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith
#CPPFLAGS+= -g -DALLOC_TRACE -DDEBUG #-DOFW_DEBUG -DNETIF_DEBUG
#CPPFLAGS+= -DOFWDUMP
CPPFLAGS+= -D_STANDALONE -DSUPPORT_DHCP -I${.CURDIR}

View File

@ -1,4 +1,4 @@
/* $NetBSD: boot.c,v 1.21 2008/04/28 20:23:31 martin Exp $ */
/* $NetBSD: boot.c,v 1.22 2009/01/12 07:49:57 tsutsui Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@ -155,7 +155,7 @@ parseargs(char *str, int *howtop)
static void
chain(boot_entry_t entry, char *args, void *ssym, void *esym)
{
extern char end[], *cp;
extern char end[];
u_int l, magic = 0x19730224;
/*
@ -190,7 +190,7 @@ main(void)
{
extern char bootprog_name[], bootprog_rev[],
bootprog_maker[], bootprog_date[];
int chosen, options, cpu, cpunode, j, is64=0;
int chosen, cpu, cpunode, j, is64=0;
char bootline[512]; /* Should check size? */
char *cp;
u_long marks[MARK_MAX];

View File

@ -1,4 +1,4 @@
/* $NetBSD: netif_of.c,v 1.7 2003/06/26 20:45:29 aymeric Exp $ */
/* $NetBSD: netif_of.c,v 1.8 2009/01/12 07:49:57 tsutsui Exp $ */
/*
* Copyright (C) 1995 Wolfgang Solfrank.
@ -70,8 +70,6 @@ int
netif_of_open(struct of_dev *op)
{
struct iodesc *io;
int fd, error;
char addr[32];
#ifdef NETIF_DEBUG
printf("netif_open...");

View File

@ -1,4 +1,4 @@
/* $NetBSD: ofdev.c,v 1.15 2008/01/03 06:40:02 mrg Exp $ */
/* $NetBSD: ofdev.c,v 1.16 2009/01/12 07:49:57 tsutsui Exp $ */
/*
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@ -358,7 +358,7 @@ devopen(struct open_file *of, const char *name, char **file)
#define RF_PROTECTED_SECTORS 64
ofdev.partoff += RF_PROTECTED_SECTORS;
DPRINTF("devopen: found RAID partition, "
"adjusting offset to %x\n", ofdev.partoff);
"adjusting offset to %lx\n", ofdev.partoff);
}
}