hc
2024-11-01 2f529f9b558ca1c1bd74be7437a84e4711743404
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
 * SPDX-License-Identifier: GPL-2.0
 *
 * Copyright (C) 2005 Philippe Gerum <rpm@xenomai.org>
 * Copyright (C) 2005 Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
 */
 
#include <linux/irqstage.h>
#include <pipeline/pipeline.h>
#include <pipeline/kevents.h>
#include <cobalt/kernel/assert.h>
#include <xenomai/posix/syscall.h>
 
int handle_pipelined_syscall(struct irq_stage *stage, struct pt_regs *regs)
{
   if (unlikely(running_inband()))
       return handle_root_syscall(regs);
 
   return handle_head_syscall(stage == &inband_stage, regs);
}
 
int handle_oob_syscall(struct pt_regs *regs)
{
   return handle_head_syscall(false, regs);
}