From 8526824bcef034bce31c1b3afb3a8c7e399effba Mon Sep 17 00:00:00 2001 From: thorpej Date: Fri, 2 Nov 2001 23:43:13 +0000 Subject: [PATCH] Fix the LOADADDR() macro. --- sys/arch/arm32/include/loadfile_machdep.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/arch/arm32/include/loadfile_machdep.h b/sys/arch/arm32/include/loadfile_machdep.h index 38746bfa345b..571ddef5112c 100644 --- a/sys/arch/arm32/include/loadfile_machdep.h +++ b/sys/arch/arm32/include/loadfile_machdep.h @@ -1,4 +1,4 @@ -/* $NetBSD: loadfile_machdep.h,v 1.1 2001/11/02 01:27:41 thorpej Exp $ */ +/* $NetBSD: loadfile_machdep.h,v 1.2 2001/11/02 23:43:13 thorpej Exp $ */ /*- * Copyright (c) 1999 The NetBSD Foundation, Inc. @@ -42,7 +42,7 @@ #define LOAD_KERNEL (LOAD_ALL & ~LOAD_TEXTA) #define COUNT_KERNEL (COUNT_ALL & ~COUNT_TEXTA) -#define LOADADDR(a) (((u_long)(a)) + offset) +#define LOADADDR(a) (((u_long)(a))) #define ALIGNENTRY(a) ((u_long)(a)) #define READ(f, b, c) read((f), (void *)LOADADDR(b), (c)) #define BCOPY(s, d, c) memcpy((void *)LOADADDR(d), (void *)(s), (c))