blob: 154ce67659caacb34f4d92f860eda3ce8e5d2609 [file] [log] [blame]
/*
* Copyright 2019 The Hafnium Authors.
*
* 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.
*/
#include "hf/arch/vm/interrupts_gicv3.h"
#include "hf/dlog.h"
#include "vmapi/hf/call.h"
#include "common.h"
#include "test/hftest.h"
/*
* Secondary VM that loops forever after receiving a message.
*/
TEST_SERVICE(busy)
{
dlog("Secondary waiting for message...\n");
mailbox_receive_retry();
EXPECT_EQ(ffa_rx_release().func, FFA_SUCCESS_32);
dlog("Secondary received message, looping forever.\n");
for (;;) {
}
}