Hi Xilong,

I can see why this would cause problems.

It would have been much more helpful if you had initially
* Stated what you had changed (in this case the boot strapping)
* Given an actual error message or description of what went wrong (something you still have not done)

Will get the simple implementations fixed ASAP

Adrian

On 05/01/15 12:12, Pei.XiLong(裴喜龙) wrote:

Hi Adrian,

         I bootstrap the environment with function bootstrap_new_2level_simple,  then the sel4test cause that error.

 

         the source code is as follows:

 

/* initialise our runtime environment */

static void

init_env(env_t env)

{

 

    /* create an allocator */

    // allocman = bootstrap_use_current_simple(&env->simple, ALLOCATOR_STATIC_POOL_SIZE, allocator_mem_pool);

    // allocman = bootstrap_new_1level_simple(&env->simple, ALLOCATOR_STATIC_POOL_SIZE, allocator_mem_pool);

    allocman = bootstrap_new_2level_simple(&env->simple, 6, 10, ALLOCATOR_STATIC_POOL_SIZE, allocator_mem_pool);

    assert(allocman);

 

 

}

 

 

 

         Xilong Pei

         Tongji University

         2015/1/5

 

发件人: Adrian Danis [mailto:Adrian.Danis@nicta.com.au]
发送时间: 201515 8:46
收件人: "Pei.XiLong(裴喜龙)"; devel@sel4.systems
主题: Re: [seL4] simple_default_cap_count doesn't contain seL4_CapDomain

 

Hi Xilong,

Could you please give more details on what is going wrong? The line of code you have given is from sel4test, which builds and runs for me. What are the exact error messages or unexpected behavior that you are getting?

I agree that the seL4_CapDomain is not currently being counted and we will get this fixed, however this is not a problem for sel4test, so if it is failing then there is some other reason.

Adrian

On 31/12/14 17:17, Pei.XiLong(
裴喜龙) wrote:

Hi PM,

 

The logic in these 2 functions doesn’t contain capability seL4_CapDomain

int simple_default_cap_count(void *data)

         seL4_CPtr simple_default_nth_cap(void *data, int n)

 

         So, these sentense cause error:

         // ……/sel4tes-drivers/src/main.c

env.init->domain = copy_cap_to_process(&test_process, simple_get_init_cap(&env.simple, seL4_CapDomain));

 

 

Xilong Pei

Tongji University

2014/12/31



_______________________________________________
Devel mailing list
Devel@sel4.systems
https://sel4.systems/lists/listinfo/devel

 



The information in this e-mail may be confidential and subject to legal professional privilege and/or copyright. National ICT Australia Limited accepts no liability for any damage caused by this email or its attachments.