-
Notifications
You must be signed in to change notification settings - Fork 5
Mem object #15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mem object #15
Conversation
Move some shared symbols from qcomte_object.c. Move tee_call_t refernce to the root object to keep life easier. Signed-off-by: Amirreza Zarrabi <[email protected]>
Update based on commit 9c20f36. Signed-off-by: Amirreza Zarrabi <[email protected]>
Rename some symbols for consistency. Signed-off-by: Amirreza Zarrabi <[email protected]>
The return values was not handelled. Also, some cleanups for namespace codes. Signed-off-by: Amirreza Zarrabi <[email protected]>
Signed-off-by: Amirreza Zarrabi <[email protected]>
562e578 to
bf549f7
Compare
| set(SRC | ||
| src/qcomtee_object.c | ||
| src/objects/credentials_obj.c | ||
| src/objects/mem_obj.c |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indent.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ack.
libqcomtee/src/objects/mem_obj.c
Outdated
| #include <qcomtee_object_private.h> | ||
|
|
||
| /* MEMORY Object. */ | ||
| struct qcomtee_memmory { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo? qcomtee_memory?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ack.
libqcomtee/src/objects/mem_obj.c
Outdated
| #include <qcomtee_object_private.h> | ||
|
|
||
| /* MEMORY Object. */ | ||
| /* Which TEE API was used to prepare the meory object: */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo, 'memory object'.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ack.
libqcomtee/src/qcomtee_object.c
Outdated
|
|
||
| /* Simple id allocator. */ | ||
| for (i = 0; i < TABLE_SIZE; i++) { | ||
| if (idx == 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comparing possibly uninitialized idx here is giving a compilation error..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ack.
58c3722 to
3d78ec3
Compare
harshaldev27
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This commit looks good to me.
harshaldev27
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This commit looks good to me.
harshaldev27
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me.
harshaldev27
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This commit looks good to me.
harshaldev27
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This commit looks good to me.
- Add new object ID. This is the ID seen by QTEE. The original object_id is the ID visibale locally. - Improve ns table to accept type to search for tee_object_id. Signed-off-by: Amirreza Zarrabi <[email protected]>
Introduce these APIs: - qcomtee_memory_object_alloc to create a new memory object. - qcomtee_memory_object_addr to get address of memory object. - qcomtee_memory_object_size to get size of memory object. - qcomtee_memory_object_release to release the meory object. Signed-off-by: Amirreza Zarrabi <[email protected]>
Signed-off-by: Amirreza Zarrabi <[email protected]>
Run unittest path_to_bin 0 cmd [use buffer] Run unittest path_to_bin 1 cmd [use memory object] Signed-off-by: Amirreza Zarrabi <[email protected]>
Signed-off-by: Amirreza Zarrabi <[email protected]>
All commit to prepare for memory object, including: