Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/hpcsh/include fix comment.



details:   https://anonhg.NetBSD.org/src/rev/1d7815d41dee
branches:  trunk
changeset: 508782:1d7815d41dee
user:      uch <uch%NetBSD.org@localhost>
date:      Thu Apr 19 18:21:19 2001 +0000

description:
fix comment.
fix KERNBASE, KERNTEXTOFF.

diffstat:

 sys/arch/hpcsh/include/param.h |  12 +++---------
 1 files changed, 3 insertions(+), 9 deletions(-)

diffs (42 lines):

diff -r ad713fdd4b6a -r 1d7815d41dee sys/arch/hpcsh/include/param.h
--- a/sys/arch/hpcsh/include/param.h    Thu Apr 19 18:02:57 2001 +0000
+++ b/sys/arch/hpcsh/include/param.h    Thu Apr 19 18:21:19 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: param.h,v 1.2 2001/01/28 03:31:31 uch Exp $    */
+/*     $NetBSD: param.h,v 1.3 2001/04/19 18:21:19 uch Exp $    */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -39,7 +39,7 @@
  */
 
 /*
- * Machine dependent constants for Intel 386.
+ * Machine dependent constants for hpcsh
  */
 
 #ifndef _HPCSH_PARAM_H_
@@ -75,22 +75,16 @@
 #define ALIGNBYTES             (sizeof(int) - 1)
 #define ALIGN(p)               (((u_int)(p) + ALIGNBYTES) &~ ALIGNBYTES)
 #define ALIGNED_POINTER(p, t)  ((((u_long)(p)) & (sizeof(t)-1)) == 0)
-/* #define ALIGNED_POINTER(p, t)       1 */
 
 #define        PGSHIFT         12              /* LOG2(NBPG) */
 #define        NBPG            (1 << PGSHIFT)  /* bytes/page */
 #define        PGOFSET         (NBPG-1)        /* byte offset into page */
 #define        NPTEPG          (NBPG/(sizeof (pt_entry_t)))
 
-#ifdef _KERNEL
-#ifndef _LOCORE
+#if defined  _KERNEL && !defined _LOCORE
 extern vaddr_t ram_start;
 #define        KERNBASE        ram_start       /* start of kernel virtual space */
 #define        KERNTEXTOFF     ram_start       /* start of kernel text */
-#else
-#define        KERNBASE        IOM_RAM_BEGIN   /* start of kernel virtual space */
-#define        KERNTEXTOFF     IOM_RAM_BEGIN   /* start of kernel text */
-#endif
 #endif
 #define        KERNSIZE        0x01800000      /* size of kernel virtual space */
 #define        BTOPKERNBASE    ((u_long)KERNBASE >> PGSHIFT)



Home | Main Index | Thread Index | Old Index