1/* 2 * Copyright 2019, Data61, CSIRO (ABN 41 687 119 230) 3 * 4 * SPDX-License-Identifier: BSD-2-Clause 5 */ 6 7#include <camkes.h> 8#include <stdio.h> 9#include <camkes/dataport.h> 10 11#include "client_events.h" 12 13void notification_event_loop(void) 14{ 15 seL4_CPtr event_notification = notification_ready_notification(); 16 while (true) { 17 seL4_Word badge; 18 seL4_Wait(event_notification, &badge); 19 event_handler(data); 20 } 21} 22 23int run(void) 24{ 25 notification_event_loop(); 26 return 0; 27} 28