Changeset cfffb290 in mainline for kernel/generic/include/arch.h


Ignore:
Timestamp:
2006-08-05T16:05:25Z (19 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e2882a7
Parents:
b006a2c8
Message:

finish security context isolation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/arch.h

    rb006a2c8 rcfffb290  
    4444#include <arch/asm.h>
    4545
     46#define DEFAULT_CONTEXT         0
     47
    4648#define CPU                     THE->cpu
    4749#define THREAD                  THE->thread
    4850#define TASK                    THE->task
    4951#define AS                      THE->as
     52#define CONTEXT         (THE->task ? THE->task->context : DEFAULT_CONTEXT)
    5053#define PREEMPTION_DISABLED     THE->preemption_disabled
     54
     55#define context_check(ctx1, ctx2)       ((ctx1) == (ctx2))
    5156
    5257/**
     
    6166        cpu_t *cpu;                     /**< Executing cpu. */
    6267        as_t *as;                       /**< Current address space. */
    63         context_id_t context;   /**< Current security context. */
    6468};
    6569
    66 #define THE             ((the_t *)(get_stack_base()))   
     70#define THE             ((the_t *)(get_stack_base()))
    6771
    6872extern void the_initialize(the_t *the);
Note: See TracChangeset for help on using the changeset viewer.