mirror of
https://github.com/AmbiML/sparrow-kata-full.git
synced 2025-04-28 02:40:40 +00:00
This includes adding it to TOML files and CAmkES assembly files. Change-Id: I263e7a566df91fccc04f9b2186edab13331290c5 GitOrigin-RevId: 48a35b06ca868a0a4d379f881068cc4dad491669
30 lines
974 B
Rust
30 lines
974 B
Rust
// Copyright 2022 Google LLC
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// https://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
//! SMP support.
|
|
// TODO(sleffler): maybe merge into arch code
|
|
|
|
use super::sel4_sys;
|
|
|
|
use sel4_sys::seL4_Result;
|
|
use sel4_sys::seL4_TCB_SetAffinity;
|
|
use sel4_sys::seL4_Word;
|
|
|
|
use static_assertions::assert_cfg;
|
|
assert_cfg!(feature = "CONFIG_SMP_SUPPORT");
|
|
|
|
pub fn TCB_SetAffinity(sel4_tcb: seL4_Word, affinity: seL4_Word) -> seL4_Result {
|
|
seL4_TCB_SetAffinity(sel4_tcb, affinity)
|
|
}
|