06.08.2016 Views

Demystifying the Secure Enclave Processor

LytVKz

LytVKz

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

SEPOS App Initialization<br />

Initialize Apps<br />

Read application list<br />

from sep-firmware<br />

Creates new process<br />

and address space<br />

(L4_SpaceControl)<br />

proc_create( ) No Last app in list?<br />

Yes<br />

Compute CRC of<br />

loaded images<br />

Compares CRC with value<br />

stored in sep-firmware<br />

CRC valid?<br />

Yes<br />

Done<br />

Maps <strong>the</strong> Mach-O<br />

header from physical<br />

memory<br />

ertp_map_page( )<br />

No<br />

Panic<br />

Reads Mach-O header<br />

and maps segments<br />

(L4_MapControl)<br />

macho2vm( ) thread_create( )<br />

Create and start new<br />

thread at app entry point<br />

(L4_ThreadControl)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!