view include/svc.h @ 95:cabcdc3727e3

arch: implemented swapcontext & fixed few minor issues
author Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
date Thu, 12 May 2011 15:56:46 -0400
parents e7b9148156c4
children
line wrap: on
line source

#ifndef __SVC_H
#define __SVC_H

#include <psw.h>

extern void setcontext(struct psw *psw, u64 *regs);
extern void savecontext(struct psw *psw, u64 *regs);
extern void swapcontext(struct psw *oldpsw, u64 *oldregs,
			struct psw *newpsw, u64 *newregs);
extern void set_svc_handler(u64(*f)(u64, u64, u64, u64, u64), void *stack);

#endif