Remove the unused 'struct md_coredump'.diff -r1.21 -r1.22 src/sys/arch/amd64/include/pcb.h
(dsl)
--- src/sys/arch/amd64/include/pcb.h 2013/12/11 22:06:51 1.21
+++ src/sys/arch/amd64/include/pcb.h 2014/01/19 10:30:19 1.22
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: pcb.h,v 1.21 2013/12/11 22:06:51 dsl Exp $ */ | 1 | /* $NetBSD: pcb.h,v 1.22 2014/01/19 10:30:19 dsl Exp $ */ | |
2 | 2 | |||
3 | /*- | 3 | /*- | |
4 | * Copyright (c) 1998 The NetBSD Foundation, Inc. | 4 | * Copyright (c) 1998 The NetBSD Foundation, Inc. | |
5 | * All rights reserved. | 5 | * All rights reserved. | |
6 | * | 6 | * | |
7 | * This code is derived from software contributed to The NetBSD Foundation | 7 | * This code is derived from software contributed to The NetBSD Foundation | |
8 | * by Charles M. Hannum. | 8 | * by Charles M. Hannum. | |
9 | * | 9 | * | |
10 | * Redistribution and use in source and binary forms, with or without | 10 | * Redistribution and use in source and binary forms, with or without | |
11 | * modification, are permitted provided that the following conditions | 11 | * modification, are permitted provided that the following conditions | |
12 | * are met: | 12 | * are met: | |
13 | * 1. Redistributions of source code must retain the above copyright | 13 | * 1. Redistributions of source code must retain the above copyright | |
14 | * notice, this list of conditions and the following disclaimer. | 14 | * notice, this list of conditions and the following disclaimer. | |
@@ -92,28 +92,20 @@ struct pcb { | @@ -92,28 +92,20 @@ struct pcb { | |||
92 | uint64_t pcb_rsp; | 92 | uint64_t pcb_rsp; | |
93 | uint64_t pcb_rbp; | 93 | uint64_t pcb_rbp; | |
94 | uint64_t pcb_usersp; | 94 | uint64_t pcb_usersp; | |
95 | uint32_t pcb_unused[2]; /* unused */ | 95 | uint32_t pcb_unused[2]; /* unused */ | |
96 | struct savefpu pcb_savefpu __aligned(16); /* floating point state */ | 96 | struct savefpu pcb_savefpu __aligned(16); /* floating point state */ | |
97 | uint32_t pcb_unused_1[4]; /* unused */ | 97 | uint32_t pcb_unused_1[4]; /* unused */ | |
98 | void *pcb_onfault; /* copyin/out fault recovery */ | 98 | void *pcb_onfault; /* copyin/out fault recovery */ | |
99 | struct cpu_info *pcb_fpcpu; /* cpu holding our fp state. */ | 99 | struct cpu_info *pcb_fpcpu; /* cpu holding our fp state. */ | |
100 | uint64_t pcb_fs; | 100 | uint64_t pcb_fs; | |
101 | uint64_t pcb_gs; | 101 | uint64_t pcb_gs; | |
102 | int pcb_iopl; | 102 | int pcb_iopl; | |
103 | }; | 103 | }; | |
104 | 104 | |||
105 | /* | |||
106 | * The pcb is augmented with machine-dependent additional data for | |||
107 | * core dumps. For the i386, there is nothing to add. | |||
108 | */ | |||
109 | struct md_coredump { | |||
110 | long md_pad[8]; | |||
111 | }; | |||
112 | ||||
113 | #else /* __x86_64__ */ | 105 | #else /* __x86_64__ */ | |
114 | 106 | |||
115 | #include <i386/pcb.h> | 107 | #include <i386/pcb.h> | |
116 | 108 | |||
117 | #endif /* __x86_64__ */ | 109 | #endif /* __x86_64__ */ | |
118 | 110 | |||
119 | #endif /* _AMD64_PCB_H_ */ | 111 | #endif /* _AMD64_PCB_H_ */ |
--- src/sys/arch/i386/include/pcb.h 2013/12/01 01:05:16 1.50
+++ src/sys/arch/i386/include/pcb.h 2014/01/19 10:30:19 1.51
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: pcb.h,v 1.50 2013/12/01 01:05:16 christos Exp $ */ | 1 | /* $NetBSD: pcb.h,v 1.51 2014/01/19 10:30:19 dsl Exp $ */ | |
2 | 2 | |||
3 | /*- | 3 | /*- | |
4 | * Copyright (c) 1998, 2009 The NetBSD Foundation, Inc. | 4 | * Copyright (c) 1998, 2009 The NetBSD Foundation, Inc. | |
5 | * All rights reserved. | 5 | * All rights reserved. | |
6 | * | 6 | * | |
7 | * This code is derived from software contributed to The NetBSD Foundation | 7 | * This code is derived from software contributed to The NetBSD Foundation | |
8 | * by Charles M. Hannum, and by Andrew Doran. | 8 | * by Charles M. Hannum, and by Andrew Doran. | |
9 | * | 9 | * | |
10 | * Redistribution and use in source and binary forms, with or without | 10 | * Redistribution and use in source and binary forms, with or without | |
11 | * modification, are permitted provided that the following conditions | 11 | * modification, are permitted provided that the following conditions | |
12 | * are met: | 12 | * are met: | |
13 | * 1. Redistributions of source code must retain the above copyright | 13 | * 1. Redistributions of source code must retain the above copyright | |
14 | * notice, this list of conditions and the following disclaimer. | 14 | * notice, this list of conditions and the following disclaimer. | |
@@ -94,22 +94,14 @@ struct pcb { | @@ -94,22 +94,14 @@ struct pcb { | |||
94 | /* floating point state for FPU */ | 94 | /* floating point state for FPU */ | |
95 | union savefpu pcb_savefpu __aligned(16); | 95 | union savefpu pcb_savefpu __aligned(16); | |
96 | 96 | |||
97 | struct segment_descriptor pcb_fsd; /* %fs descriptor */ | 97 | struct segment_descriptor pcb_fsd; /* %fs descriptor */ | |
98 | struct segment_descriptor pcb_gsd; /* %gs descriptor */ | 98 | struct segment_descriptor pcb_gsd; /* %gs descriptor */ | |
99 | void * pcb_onfault; /* copyin/out fault recovery */ | 99 | void * pcb_onfault; /* copyin/out fault recovery */ | |
100 | int vm86_eflags; /* virtual eflags for vm86 mode */ | 100 | int vm86_eflags; /* virtual eflags for vm86 mode */ | |
101 | int vm86_flagmask; /* flag mask for vm86 mode */ | 101 | int vm86_flagmask; /* flag mask for vm86 mode */ | |
102 | void *vm86_userp; /* XXX performance hack */ | 102 | void *vm86_userp; /* XXX performance hack */ | |
103 | struct cpu_info *pcb_fpcpu; /* cpu holding our fp state. */ | 103 | struct cpu_info *pcb_fpcpu; /* cpu holding our fp state. */ | |
104 | char *pcb_iomap; /* I/O permission bitmap */ | 104 | char *pcb_iomap; /* I/O permission bitmap */ | |
105 | }; | 105 | }; | |
106 | 106 | |||
107 | /* | |||
108 | * The pcb is augmented with machine-dependent additional data for | |||
109 | * core dumps. For the i386, there is nothing to add. | |||
110 | */ | |||
111 | struct md_coredump { | |||
112 | long md_pad[8]; | |||
113 | }; | |||
114 | ||||
115 | #endif /* _I386_PCB_H_ */ | 107 | #endif /* _I386_PCB_H_ */ |