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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rc203soc/] [sw/] [uClinux/] [include/] [asm-i960/] [shm.h] - Blame information for rev 1633

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1633 jcastillo
#ifndef _I960_SHM_H
2
#define _I960_SHM_H
3
 
4
/* format of page table entries that correspond to shared memory pages
5
   currently out in swap space (see also mm/swap.c):
6
   bits 0-1 (PAGE_PRESENT) is  = 0
7
   bits 8..2 (SWP_TYPE) are = SHM_SWP_TYPE
8
   bits 31..9 are used like this:
9
   bits 15..9 (SHM_ID) the id of the shared memory segment
10
   bits 30..16 (SHM_IDX) the index of the page within the shared memory segment
11
                    (actually only bits 25..16 get used since SHMMAX is so low)
12
   bit 31 (SHM_READ_ONLY) flag whether the page belongs to a read-only attach
13
*/
14
/* FIXME does this comment mean anything on the i960? */
15
/* on the m68k both bits 0 and 1 must be zero */
16
 
17
#define SHM_ID_SHIFT    9
18
#define _SHM_ID_BITS    7
19
#define SHM_ID_MASK     ((1<<_SHM_ID_BITS)-1)
20
 
21
#define SHM_IDX_SHIFT   (SHM_ID_SHIFT+_SHM_ID_BITS)
22
#define _SHM_IDX_BITS   15
23
#define SHM_IDX_MASK    ((1<<_SHM_IDX_BITS)-1)
24
 
25
#endif /* _I960_SHM_H */

powered by: WebSVN 2.1.0

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