blob: fece9f64fb7b6d6044e88c9fee8fec7b1750aa24 [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(spci_rx_release().func, SPCI_SUCCESS_32);
dlog("Secondary received message, looping forever.\n");
for (;;) {
}
}