Mercurial > sos > sos
view include/os/psw.h @ 150:e72f984619c7
Consolidated a lot of the defines which relate to the memory layout
There is a new file (include/os/memLayout.h) which now includes just
about all the #defines
author | Jonathan Pevarnek <pevarnj@gmail.com> |
---|---|
date | Wed, 02 Nov 2011 09:55:09 -0400 |
parents | 73cf7b972c19 |
children |
line wrap: on
line source
#ifndef __PSW_H #define __PSW_H struct psw { u8 _zero0:1, r:1, /* PER Mask (R) */ _zero1:3, t:1, /* DAT Mode (T) */ io:1, /* I/O Mask (IO) */ ex:1; /* External Mask (EX) */ u8 key:4, /* Key */ _zero2:1, m:1, /* Machine-Check Mask (M) */ w:1, /* Wait State (W) */ p:1; /* Problem State (P) */ u8 as:2, /* Address-Space Control (AS) */ cc:2, /* Condition Code (CC) */ prog_mask:4; /* Program Mask */ u8 _zero3:7, ea:1; /* Extended Addressing (EA) */ u32 ba:1, /* Basic Addressing (BA) */ _zero4:31; u64 ptr; }; typedef struct psw Psw; #define NUM_GPRS 16 #endif