mirror of
https://github.com/drasko/codezero.git
synced 2026-02-22 23:03:14 +01:00
Changes since April
Clean up of build directories. Simplifications to capability model.
This commit is contained in:
53
conts/baremetal/test_suite/src/cli_serv/cli_serv.c
Normal file
53
conts/baremetal/test_suite/src/cli_serv/cli_serv.c
Normal file
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright (C) 2010 B Labs Ltd.
|
||||
*
|
||||
* Tests client/server style container setup
|
||||
*
|
||||
* Author: Bahadir Balban
|
||||
*/
|
||||
#include <tests.h>
|
||||
|
||||
/*
|
||||
* A container can be set up in many different combinations
|
||||
* of hierarchy where the hierarchical differences between
|
||||
* the threads are determined by a finely grained capability
|
||||
* configuration.
|
||||
*
|
||||
* However, this boils down to two main sets of hierarchical
|
||||
* setup: client/server or multithreaded/standalone entities.
|
||||
*
|
||||
* This test tests the client/server style hierarchical set up.
|
||||
*/
|
||||
int test_cli_serv(void)
|
||||
{
|
||||
/*
|
||||
* Create a child thread in a new address space.
|
||||
* copying current pager's page tables to child
|
||||
*/
|
||||
|
||||
/* Copy current pager's all sections to child pages */
|
||||
|
||||
/*
|
||||
* Set up child's registers to execute the special
|
||||
* child entry function
|
||||
*/
|
||||
|
||||
/*
|
||||
* Start the child
|
||||
*/
|
||||
|
||||
/*
|
||||
* Interact with the child:
|
||||
*
|
||||
* Handle short, full, extended ipc
|
||||
*
|
||||
* Handle page fault
|
||||
*/
|
||||
|
||||
/*
|
||||
* Destroy child
|
||||
*/
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user