OpenCores
URL https://opencores.org/ocsvn/eco32/eco32/trunk

Subversion Repositories eco32

[/] [eco32/] [trunk/] [monitor/] [monitor/] [common/] [common.h] - Diff between revs 59 and 257

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 59 Rev 257
Line 5... Line 5...
 
 
#ifndef _COMMON_H_
#ifndef _COMMON_H_
#define _COMMON_H_
#define _COMMON_H_
 
 
 
 
#define PAGE_SHIFT      12                      /* log2 of page size */
#define PAGE_SHFT       12                      /* log2 of page size */
#define PAGE_SIZE       (1 << PAGE_SHIFT)       /* page size in bytes */
#define PAGE_SIZE       ((Word) 1 << PAGE_SHFT) /* page size in bytes */
#define OFFSET_MASK     (PAGE_SIZE - 1)         /* mask for offset in page */
#define OFFSET_MASK     (PAGE_SIZE - 1)         /* mask for offset in page */
#define PAGE_MASK       (~OFFSET_MASK)          /* mask for page number */
#define PAGE_MASK       (~OFFSET_MASK)          /* mask for page number */
 
 
 
 
typedef enum { false, true } Bool;              /* truth values */
typedef enum { false, true } Bool;              /* truth values */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.