Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/ia64/include Make restorectx() and swapctx() match ...



details:   https://anonhg.NetBSD.org/src/rev/0b682b816afa
branches:  trunk
changeset: 822818:0b682b816afa
user:      scole <scole%NetBSD.org@localhost>
date:      Sat Apr 08 18:04:34 2017 +0000

description:
Make restorectx() and swapctx() match original FreeBSD defs

diffstat:

 sys/arch/ia64/include/pcb.h |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (21 lines):

diff -r 3e86e2f8cb10 -r 0b682b816afa sys/arch/ia64/include/pcb.h
--- a/sys/arch/ia64/include/pcb.h       Sat Apr 08 18:03:33 2017 +0000
+++ b/sys/arch/ia64/include/pcb.h       Sat Apr 08 18:04:34 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pcb.h,v 1.2 2008/03/20 09:09:20 kochi Exp $    */
+/*     $NetBSD: pcb.h,v 1.3 2017/04/08 18:04:34 scole Exp $    */
 
 /*-
  * Copyright (c) 2003,2004 Marcel Moolenaar
@@ -67,8 +67,9 @@
 struct trapframe;
 
 void makectx(struct trapframe *, struct pcb *);
-/*void restorectx(struct pcb *) __dead2;*/
-int swapctx(struct pcb *old, struct pcb *new);
+/* XXX not sure about the attributes, for now use equivalent to freebsd */
+void restorectx(struct pcb *) __attribute__ ((__noreturn__)); /* same as __dead2? */
+int swapctx(struct pcb *old, struct pcb *new) __returns_twice;
 
 void ia32_restorectx(struct pcb *);
 void ia32_savectx(struct pcb *);



Home | Main Index | Thread Index | Old Index