1 /* 2 * Copyright 2020 The Hafnium Authors. 3 * 4 * Use of this source code is governed by a BSD-style 5 * license that can be found in the LICENSE file or at 6 * https://opensource.org/licenses/BSD-3-Clause. 7 */ 8 9 /* 10 * Run tests where secondary VMs are passed the memory size directly, rather 11 * than a pointer to the FDT. 12 */ 13 14 #include <stdalign.h> 15 #include <stdint.h> 16 17 #include "hf/mm.h" 18 #include "hf/static_assert.h" 19 #include "hf/std.h" 20 21 #include "vmapi/hf/call.h" 22 23 #include "primary_with_secondary.h" 24 #include "test/hftest.h" 25 #include "test/vmapi/ffa.h" 26 27 #define SECONDARY_VM1 (HF_VM_ID_OFFSET + 1) 28 29 /** 30 * Runs the secondary VM and waits for it to yield. 31 */ TEST(no_fdt,run_secondary)32TEST(no_fdt, run_secondary) 33 { 34 struct ffa_value run_res; 35 36 run_res = ffa_run(SECONDARY_VM1, 0); 37 EXPECT_EQ(run_res.func, FFA_YIELD_32); 38 } 39