Source to include/mach/param.h
0001 /*
0002 * param.h
0003 * Global parameters
0004 */
0005 #ifndef _MACHPARAM_H
0006 #define _MACHPARAM_H
0007
0008 /*
0009 * Values and macros relating to hardware pages
0010 */
0011 #define NBPG (4096) /* # bytes in a page */
0012 #define NBBY (8) /* # bits in a byte */
0013 #define PGSHIFT (12) /* LOG2(NBPG) */
0014 #define ptob(x) ((ulong)(x) << PGSHIFT)
0015 #define btop(x) ((ulong)(x) >> PGSHIFT)
0016 #define btorp(x) (((ulong)(x) + (NBPG-1)) >> PGSHIFT)
0017
0018 /*
0019 * How often our clock "ticks"
0020 */
0021 #define HZ (20)
0022
0023 /*
0024 * Which console device to use for printf() and such
0025 */
0026 #undef SERIAL /* Define for COM1, else use screen */
0027
0028 #endif /* _MACHPARAM_H */