Mon Jul 6 11:09:15 2020 UTC ()
Include required opt_*.h for sure.


(rin)
diff -r1.82 -r1.83 src/sys/arch/powerpc/powerpc/trap_subr.S

cvs diff -r1.82 -r1.83 src/sys/arch/powerpc/powerpc/trap_subr.S (expand / switch to unified diff)

--- src/sys/arch/powerpc/powerpc/trap_subr.S 2020/07/06 09:34:18 1.82
+++ src/sys/arch/powerpc/powerpc/trap_subr.S 2020/07/06 11:09:15 1.83
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: trap_subr.S,v 1.82 2020/07/06 09:34:18 rin Exp $ */ 1/* $NetBSD: trap_subr.S,v 1.83 2020/07/06 11:09:15 rin Exp $ */
2 2
3/* 3/*
4 * Copyright (C) 1995, 1996 Wolfgang Solfrank. 4 * Copyright (C) 1995, 1996 Wolfgang Solfrank.
5 * Copyright (C) 1995, 1996 TooLs GmbH. 5 * Copyright (C) 1995, 1996 TooLs GmbH.
6 * All rights reserved. 6 * All rights reserved.
7 * 7 *
8 * Redistribution and use in source and binary forms, with or without 8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions 9 * modification, are permitted provided that the following conditions
10 * are met: 10 * are met:
11 * 1. Redistributions of source code must retain the above copyright 11 * 1. Redistributions of source code must retain the above copyright
12 * notice, this list of conditions and the following disclaimer. 12 * notice, this list of conditions and the following disclaimer.
13 * 2. Redistributions in binary form must reproduce the above copyright 13 * 2. Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in the 14 * notice, this list of conditions and the following disclaimer in the
@@ -30,26 +30,29 @@ @@ -30,26 +30,29 @@
30 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 30 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
31 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 */ 32 */
33 33
34/* 34/*
35 * NOTICE: This is not a standalone file. to use it, #include it in 35 * NOTICE: This is not a standalone file. to use it, #include it in
36 * your port's locore.S, like so: 36 * your port's locore.S, like so:
37 * 37 *
38 * #include <powerpc/powerpc/trap_subr.S> 38 * #include <powerpc/powerpc/trap_subr.S>
39 */ 39 */
40 40
41#ifdef _KERNEL_OPT 41#ifdef _KERNEL_OPT
42#include "opt_altivec.h" 42#include "opt_altivec.h"
 43#include "opt_ddb.h"
 44#include "opt_kgdb.h"
 45#include "opt_ppcarch.h"
43#endif 46#endif
44 47
45/* LINTSTUB: include <sys/param.h> */ 48/* LINTSTUB: include <sys/param.h> */
46/* LINTSTUB: include <powerpc/oea/bat.h> */ 49/* LINTSTUB: include <powerpc/oea/bat.h> */
47 50
48#ifdef ALTIVEC 51#ifdef ALTIVEC
49#define SAVE_VRSAVE(tf,b) \ 52#define SAVE_VRSAVE(tf,b) \
50 mfspr b,SPR_VRSAVE; \ 53 mfspr b,SPR_VRSAVE; \
51 stint b,FRAME_VRSAVE(tf); 54 stint b,FRAME_VRSAVE(tf);
52 55
53#define RESTORE_VRSAVE(tf,b) \ 56#define RESTORE_VRSAVE(tf,b) \
54 ldint b,FRAME_VRSAVE(tf); \ 57 ldint b,FRAME_VRSAVE(tf); \
55 mtspr SPR_VRSAVE,b; 58 mtspr SPR_VRSAVE,b;