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

Subversion Repositories c0or1k

[/] [c0or1k/] [trunk/] [conts/] [libl4/] [include/] [l4lib/] [arch/] [arm/] [v5/] [utcb.h] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 drasko
#ifndef __ARM_V5_UTCB_H__
2
#define __ARM_V5_UTCB_H__
3
 
4
/*
5
 * Pointer to Kernel Interface Page's UTCB pointer offset.
6
 */
7
extern struct utcb **kip_utcb_ref;
8
 
9
static inline struct utcb *l4_get_utcb()
10
{
11
        /*
12
         * By double dereferencing, we get the private TLS
13
         * (aka UTCB). First reference is to the KIP's utcb
14
         * offset, second is to the utcb itself, to which
15
         * the KIP's utcb reference had been updated during
16
         * context switch.
17
         */
18
        return *kip_utcb_ref;
19
}
20
 
21
#endif /* __ARM_V5_UTCB_H__ */

powered by: WebSVN 2.1.0

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