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

Subversion Repositories c0or1k

[/] [c0or1k/] [trunk/] [conts/] [test_suite0/] [src/] [cli_serv/] [cli_serv.c] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 drasko
/*
2
 * Copyright (C) 2010 B Labs Ltd.
3
 *
4
 * Tests client/server style container setup
5
 *
6
 * Author: Bahadir Balban
7
 */
8
#include <tests.h>
9
 
10
/*
11
 * A container can be set up in many different combinations
12
 * of hierarchy where the hierarchical differences between
13
 * the threads are determined by a finely grained capability
14
 * configuration.
15
 *
16
 * However, this boils down to two main sets of hierarchical
17
 * setup: client/server or multithreaded/standalone entities.
18
 *
19
 * This test tests the client/server style hierarchical set up.
20
 */
21
int test_cli_serv(void)
22
{
23
        /*
24
         * Create a child thread in a new address space.
25
         * copying current pager's page tables to child
26
         */
27
 
28
        /* Copy current pager's all sections to child pages */
29
 
30
        /*
31
         * Set up child's registers to execute the special
32
         * child entry function
33
         */
34
 
35
        /*
36
         * Start the child
37
         */
38
 
39
        /*
40
         * Interact with the child:
41
         *
42
         * Handle short, full, extended ipc
43
         *
44
         * Handle page fault
45
         */
46
 
47
        /*
48
         * Destroy child
49
         */
50
 
51
        return 0;
52
}
53
 

powered by: WebSVN 2.1.0

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