Merge changes If949288d,I9849065a,I121edee2

* changes:
  kata: LSC: rustfmt with global rustfmt.toml
  kata: update global rustfmt flags
  kata: Promote rustfmt.toml to all kata crates

GitOrigin-RevId: 452e66fa7231f39cff81dc2fbe37ad1a1fc62fb9
This commit is contained in:
Cindy Liu
2022-08-04 00:26:57 +00:00
committed by Sam Leffler
parent f33b5b4a9e
commit 50cd809320
62 changed files with 616 additions and 954 deletions

View File

@@ -23,9 +23,7 @@ pub unsafe extern "C" fn pre_init() {
}
#[no_mangle]
pub unsafe extern "C" fn mlcoord__init() {
ML_COORD.lock().init();
}
pub unsafe extern "C" fn mlcoord__init() { ML_COORD.lock().init(); }
#[no_mangle]
pub unsafe extern "C" fn run() {
@@ -109,14 +107,10 @@ pub unsafe extern "C" fn mlcoord_cancel(
}
#[no_mangle]
pub unsafe extern "C" fn host_req_handle() {
ML_COORD.lock().handle_host_req_interrupt();
}
pub unsafe extern "C" fn host_req_handle() { ML_COORD.lock().handle_host_req_interrupt(); }
#[no_mangle]
pub unsafe extern "C" fn finish_handle() {
ML_COORD.lock().handle_return_interrupt();
}
pub unsafe extern "C" fn finish_handle() { ML_COORD.lock().handle_return_interrupt(); }
#[no_mangle]
pub unsafe extern "C" fn instruction_fault_handle() {
@@ -124,16 +118,10 @@ pub unsafe extern "C" fn instruction_fault_handle() {
}
#[no_mangle]
pub unsafe extern "C" fn data_fault_handle() {
ML_COORD.lock().handle_data_fault_interrupt();
}
pub unsafe extern "C" fn data_fault_handle() { ML_COORD.lock().handle_data_fault_interrupt(); }
#[no_mangle]
pub unsafe extern "C" fn mlcoord_debug_state() {
ML_COORD.lock().debug_state();
}
pub unsafe extern "C" fn mlcoord_debug_state() { ML_COORD.lock().debug_state(); }
#[no_mangle]
pub unsafe extern "C" fn mlcoord_capscan() {
let _ = Camkes::capscan();
}
pub unsafe extern "C" fn mlcoord_capscan() { let _ = Camkes::capscan(); }