1/* 2 * Copyright 2017, Data61 3 * Commonwealth Scientific and Industrial Research Organisation (CSIRO) 4 * ABN 41 687 119 230. 5 * 6 * This software may be distributed and modified according to the terms of 7 * the BSD 2-Clause license. Note that NO WARRANTY is provided. 8 * See "LICENSE_BSD2.txt" for details. 9 * 10 * @TAG(DATA61_BSD) 11 */ 12 13#define _VAR_STRINGIZE(...) #__VA_ARGS__ 14#define VAR_STRINGIZE(...) _VAR_STRINGIZE(__VA_ARGS__) 15 16 17#define RUMPRUN_META_CONNECTION(instance,platform) \ 18 connection seL4TimeServer instance##_timer(from instance.platform_timer, to platform.timer); \ 19 connection seL4RPCCall instance##_serial(from instance.platform_putchar, to platform.putchar); 20 21 22#define RUMPRUN_COMPONENT_DEFINITION() \ 23 control; \ 24 uses Timer platform_timer; \ 25 uses PutChar platform_putchar; \ 26 attribute int simple_untyped24_pool = 5; \ 27 attribute int cnode_size_bits = 16; \ 28 attribute int simple = 1; \ 29 attribute int rump_priority = 100; \ 30 attribute RumprunConfig rump_config; \ 31 attribute int sched_ctrl = 0; 32 33#define RUMPRUN_COMPONENT_CONFIGURATION(instance, id) 34 35