<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to declare __attribute__(aligned()) inside edl file in Intel Confidential Computing</title>
    <link>https://community.intel.com/t5/Intel-Confidential-Computing/How-to-declare-attribute-aligned-inside-edl-file/m-p/1137716#M2118</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am trying to declare an __attribute__ aligned field in my struct, so that my edl file will recognize it.&lt;BR /&gt;
	I'm getting a weird error like "unexpected token: ("&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Is there any other way to do it inside the Enclave.edl? or maybe I'm doing something wrong.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;file.h&lt;/STRONG&gt;&lt;BR /&gt;
	&lt;SPAN style="font-family: Consolas, &amp;quot;Lucida Console&amp;quot;, Menlo, Monaco, &amp;quot;DejaVu Sans Mono&amp;quot;, monospace, sans-serif; font-size: 1em;"&gt;#ifndef FILE_H&lt;/SPAN&gt;&lt;BR /&gt;
	&lt;SPAN style="font-family: Consolas, &amp;quot;Lucida Console&amp;quot;, Menlo, Monaco, &amp;quot;DejaVu Sans Mono&amp;quot;, monospace, sans-serif; font-size: 1em;"&gt;#define FILE_H&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-family: Consolas, &amp;quot;Lucida Console&amp;quot;, Menlo, Monaco, &amp;quot;DejaVu Sans Mono&amp;quot;, monospace, sans-serif; font-size: 1em;"&gt;#define ALIGN64 __attribute__((aligned(8)))&lt;/SPAN&gt;&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;struct TrustedData
{
      ALIGN64 UINT32 EncryptionMethods;
};
#endif&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Enclave.edl&lt;/STRONG&gt;&lt;/P&gt;

&lt;DIV&gt;
	&lt;PRE class="brush:cpp;"&gt;
enclave 
{
#include "RDP_Def.h"
    
    trusted 
    {   
        //some functions
        public void ecallFoo([in, out] TrustedData* td);
    };
  
    untrusted 
    {
       //some functions
    };
};&lt;/PRE&gt;
&lt;/DIV&gt;</description>
    <pubDate>Mon, 12 Feb 2018 14:16:05 GMT</pubDate>
    <dc:creator>Milrud__Guy</dc:creator>
    <dc:date>2018-02-12T14:16:05Z</dc:date>
    <item>
      <title>How to declare __attribute__(aligned()) inside edl file</title>
      <link>https://community.intel.com/t5/Intel-Confidential-Computing/How-to-declare-attribute-aligned-inside-edl-file/m-p/1137716#M2118</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am trying to declare an __attribute__ aligned field in my struct, so that my edl file will recognize it.&lt;BR /&gt;
	I'm getting a weird error like "unexpected token: ("&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Is there any other way to do it inside the Enclave.edl? or maybe I'm doing something wrong.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;file.h&lt;/STRONG&gt;&lt;BR /&gt;
	&lt;SPAN style="font-family: Consolas, &amp;quot;Lucida Console&amp;quot;, Menlo, Monaco, &amp;quot;DejaVu Sans Mono&amp;quot;, monospace, sans-serif; font-size: 1em;"&gt;#ifndef FILE_H&lt;/SPAN&gt;&lt;BR /&gt;
	&lt;SPAN style="font-family: Consolas, &amp;quot;Lucida Console&amp;quot;, Menlo, Monaco, &amp;quot;DejaVu Sans Mono&amp;quot;, monospace, sans-serif; font-size: 1em;"&gt;#define FILE_H&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-family: Consolas, &amp;quot;Lucida Console&amp;quot;, Menlo, Monaco, &amp;quot;DejaVu Sans Mono&amp;quot;, monospace, sans-serif; font-size: 1em;"&gt;#define ALIGN64 __attribute__((aligned(8)))&lt;/SPAN&gt;&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;struct TrustedData
{
      ALIGN64 UINT32 EncryptionMethods;
};
#endif&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Enclave.edl&lt;/STRONG&gt;&lt;/P&gt;

&lt;DIV&gt;
	&lt;PRE class="brush:cpp;"&gt;
enclave 
{
#include "RDP_Def.h"
    
    trusted 
    {   
        //some functions
        public void ecallFoo([in, out] TrustedData* td);
    };
  
    untrusted 
    {
       //some functions
    };
};&lt;/PRE&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 12 Feb 2018 14:16:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Confidential-Computing/How-to-declare-attribute-aligned-inside-edl-file/m-p/1137716#M2118</guid>
      <dc:creator>Milrud__Guy</dc:creator>
      <dc:date>2018-02-12T14:16:05Z</dc:date>
    </item>
  </channel>
</rss>

