[okl4-developer] okl4_pd_attr_setconstructrootpd function problem

Hannes Payer hannes.payer at cs.uni-salzburg.at
Thu Oct 1 23:19:28 EST 2009


Hi,

pds_zones would be a very useful example. I also tried to get it correct but 
like crisvlad I am running into several problems. Has anyone a solution for 
the problems crisvlad mentioned? Disabling the assertions does nor really
help ;-)

-Hannes



crisvlad wrote:
> 
> Hi,
> 
>  I'm trying to compile the pds_zone example inside /example folder, in
> order to see how a shared-memory mechanism should be implemented in OKL4
> v3. and I get:
> examples/pds_zones/src/main.c:113: warning: implicit declaration of
> function 'okl4_pd_attr_setconstructrootpd'
> examples/pds_zones/src/main.c:113: warning: nested extern declaration of
> 'okl4_pd_attr_setconstructrootpd'
> 
>  As I have seen on this forum (there is a message posted by Alexandre
> Courbot) and from documentation I have (section B-21.34 in 'OKL4 Library
> Reference Manual',  Document Number:  OK 40292:2008 (revision 2), Software
> Version: 3.0, Date: October 13, 2008 which is marked as Draft)  the
> function above appears in there but has absolutely no reference below its
> name.
> 
>  I've tried to bypass this function, and I imagined that inside it some
> fields of the okl4_pd_attr structure should be initialized, namely those
> that are not touched by okl4_pd_attr_init(). Thus I put some more lines
> into okl4_pd_attr_init() function (in ./okl4/src/micro/pd_attr_init.c):
>  attr->virtmem_pool = NULL; 
>  attr->kclistid_pool = NULL; 
>  attr->kspaceid_pool = NULL;
> 
>  Additionally, I reversed the call order between 
> get_root_weaved_objects() and create_root_pd(). If I didn't do that, the
> following message should appear:
> Assertion failed: attr->virtmem_pool, function okl4_pd_create, file
> libs/okl4/src/micro/pd_create.c, line 409
> This says that some field inside attr structure (of type okl4_pd_attr_t)
> is not initialized, so remains NULL.
> 
>  Now, after all these changes my error is somewhere inside the
> okl4_zone_create() in ./okl4/src/micro/zone_create.c:
> Assertion failed: attr->range.size % OKL4_ZONE_ALIGNMENT == 0, function
> okl4_zone_create, file libs/okl4/src/micro/zone_create.c, line 115
> 
>  My questions are:
>  - is the example pds_zone an official one (therefore can be questioned
> upon, so supported)?
>  - why am I getting that assertion failed (what would the size of that
> zone be?)
> 
>  Any other comment related to this shared memory technique would be very
> useful.
> 

-- 
View this message in context: http://n2.nabble.com/okl4-pd-attr-setconstructrootpd-function-problem-tp3712011p3748975.html
Sent from the OKL4 Community Forum mailing list archive at Nabble.com.



More information about the Developer mailing list