xref: /aosp_15_r20/trusty/kernel/lib/sm/README (revision 344aa361028b423587d4ef3fa52a23d194628137)
1*344aa361SAndroid Build Coastguard Workerlibsm
2*344aa361SAndroid Build Coastguard Worker=====
3*344aa361SAndroid Build Coastguard Worker
4*344aa361SAndroid Build Coastguard WorkerA library to support secure monitor mode implemented by ARM v7 Security
5*344aa361SAndroid Build Coastguard Workerextensions.
6*344aa361SAndroid Build Coastguard Worker
7*344aa361SAndroid Build Coastguard WorkerAPI:
8*344aa361SAndroid Build Coastguard Worker
9*344aa361SAndroid Build Coastguard Workersm_sched_secure - Switch to Secure OS
10*344aa361SAndroid Build Coastguard Workersm_sched_nonsecure - Switch to Nonsecure OS
11*344aa361SAndroid Build Coastguard Worker
12*344aa361SAndroid Build Coastguard Workersm_register_entity - Register fastcall/stdcall handlers for an entity
13*344aa361SAndroid Build Coastguard Worker(See ARM document DEN 0028A)
14*344aa361SAndroid Build Coastguard Worker
15*344aa361SAndroid Build Coastguard Workersm_get_boot_args - get a pointer/reference to boot parameter block
16*344aa361SAndroid Build Coastguard Workersm_put_boot_args - release a reference to boot parameter block
17*344aa361SAndroid Build Coastguard Worker(See bootloader spec)
18*344aa361SAndroid Build Coastguard Worker
19*344aa361SAndroid Build Coastguard WorkerNote that this library provides an implementation for the weak symbol
20*344aa361SAndroid Build Coastguard Worker"platform_reset". It also assumes that r0 contains the size of memory reserved
21*344aa361SAndroid Build Coastguard Workerfor the secure OS.
22