if __HIDE_DELAY is defined, do not define delay() or DELAY(). needed by dtrace and ZFS.diff -r1.24 -r1.25 src/sys/arch/arm/include/arm32/param.h
(chs)
--- src/sys/arch/arm/include/arm32/param.h 2015/04/02 03:11:01 1.24
+++ src/sys/arch/arm/include/arm32/param.h 2017/06/09 01:16:54 1.25
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: param.h,v 1.24 2015/04/02 03:11:01 matt Exp $ */ | 1 | /* $NetBSD: param.h,v 1.25 2017/06/09 01:16:54 chs Exp $ */ | |
2 | 2 | |||
3 | /* | 3 | /* | |
4 | * Copyright (c) 1994,1995 Mark Brinicombe. | 4 | * Copyright (c) 1994,1995 Mark Brinicombe. | |
5 | * All rights reserved. | 5 | * All rights reserved. | |
6 | * | 6 | * | |
7 | * Redistribution and use in source and binary forms, with or without | 7 | * Redistribution and use in source and binary forms, with or without | |
8 | * modification, are permitted provided that the following conditions | 8 | * modification, are permitted provided that the following conditions | |
9 | * are met: | 9 | * are met: | |
10 | * 1. Redistributions of source code must retain the above copyright | 10 | * 1. Redistributions of source code must retain the above copyright | |
11 | * notice, this list of conditions and the following disclaimer. | 11 | * notice, this list of conditions and the following disclaimer. | |
12 | * 2. Redistributions in binary form must reproduce the above copyright | 12 | * 2. Redistributions in binary form must reproduce the above copyright | |
13 | * notice, this list of conditions and the following disclaimer in the | 13 | * notice, this list of conditions and the following disclaimer in the | |
14 | * documentation and/or other materials provided with the distribution. | 14 | * documentation and/or other materials provided with the distribution. | |
@@ -91,21 +91,23 @@ | @@ -91,21 +91,23 @@ | |||
91 | * addresses at the addresses monitored by the diagnostic code for stack overflows | 91 | * addresses at the addresses monitored by the diagnostic code for stack overflows | |
92 | * | 92 | * | |
93 | */ | 93 | */ | |
94 | 94 | |||
95 | #define USPACE_SVC_STACK_TOP (USPACE) | 95 | #define USPACE_SVC_STACK_TOP (USPACE) | |
96 | #define USPACE_SVC_STACK_BOTTOM (sizeof(struct pcb)) | 96 | #define USPACE_SVC_STACK_BOTTOM (sizeof(struct pcb)) | |
97 | 97 | |||
98 | #define arm_btop(x) ((unsigned)(x) >> PGSHIFT) | 98 | #define arm_btop(x) ((unsigned)(x) >> PGSHIFT) | |
99 | #define arm_ptob(x) ((unsigned)(x) << PGSHIFT) | 99 | #define arm_ptob(x) ((unsigned)(x) << PGSHIFT) | |
100 | #define arm_trunc_page(x) ((unsigned)(x) & ~PGOFSET) | 100 | #define arm_trunc_page(x) ((unsigned)(x) & ~PGOFSET) | |
101 | 101 | |||
102 | #ifdef _KERNEL | 102 | #ifdef _KERNEL | |
103 | #ifndef _LOCORE | 103 | #ifndef _LOCORE | |
104 | #ifndef __HIDE_DELAY | |||
104 | void delay(unsigned); | 105 | void delay(unsigned); | |
105 | #define DELAY(x) delay(x) | 106 | #define DELAY(x) delay(x) | |
106 | #endif | 107 | #endif | |
107 | #endif | 108 | #endif | |
109 | #endif | |||
108 | 110 | |||
109 | #include <arm/param.h> | 111 | #include <arm/param.h> | |
110 | 112 | |||
111 | #endif /* _ARM_ARM32_PARAM_H_ */ | 113 | #endif /* _ARM_ARM32_PARAM_H_ */ |
--- src/sys/arch/x86/include/cpu.h 2017/05/23 08:48:34 1.71
+++ src/sys/arch/x86/include/cpu.h 2017/06/09 01:16:54 1.72
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: cpu.h,v 1.71 2017/05/23 08:48:34 nonaka Exp $ */ | 1 | /* $NetBSD: cpu.h,v 1.72 2017/06/09 01:16:54 chs Exp $ */ | |
2 | 2 | |||
3 | /*- | 3 | /*- | |
4 | * Copyright (c) 1990 The Regents of the University of California. | 4 | * Copyright (c) 1990 The Regents of the University of California. | |
5 | * All rights reserved. | 5 | * All rights reserved. | |
6 | * | 6 | * | |
7 | * This code is derived from software contributed to Berkeley by | 7 | * This code is derived from software contributed to Berkeley by | |
8 | * William Jolitz. | 8 | * William Jolitz. | |
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. | |
@@ -358,28 +358,30 @@ extern void cpu_need_proftick(struct lwp | @@ -358,28 +358,30 @@ extern void cpu_need_proftick(struct lwp | |||
358 | 358 | |||
359 | /* | 359 | /* | |
360 | * Notify the LWP l that it has a signal pending, process as soon as | 360 | * Notify the LWP l that it has a signal pending, process as soon as | |
361 | * possible. | 361 | * possible. | |
362 | */ | 362 | */ | |
363 | extern void cpu_signotify(struct lwp *); | 363 | extern void cpu_signotify(struct lwp *); | |
364 | 364 | |||
365 | /* | 365 | /* | |
366 | * We need a machine-independent name for this. | 366 | * We need a machine-independent name for this. | |
367 | */ | 367 | */ | |
368 | extern void (*delay_func)(unsigned int); | 368 | extern void (*delay_func)(unsigned int); | |
369 | struct timeval; | 369 | struct timeval; | |
370 | 370 | |||
371 | #ifndef __HIDE_DELAY | |||
371 | #define DELAY(x) (*delay_func)(x) | 372 | #define DELAY(x) (*delay_func)(x) | |
372 | #define delay(x) (*delay_func)(x) | 373 | #define delay(x) (*delay_func)(x) | |
374 | #endif | |||
373 | 375 | |||
374 | extern int biosbasemem; | 376 | extern int biosbasemem; | |
375 | extern int biosextmem; | 377 | extern int biosextmem; | |
376 | extern int cputype; | 378 | extern int cputype; | |
377 | extern int cpuid_level; | 379 | extern int cpuid_level; | |
378 | extern int cpu_class; | 380 | extern int cpu_class; | |
379 | extern char cpu_brand_string[]; | 381 | extern char cpu_brand_string[]; | |
380 | extern int use_pae; | 382 | extern int use_pae; | |
381 | 383 | |||
382 | #ifdef __i386__ | 384 | #ifdef __i386__ | |
383 | extern int i386_fpu_present; | 385 | extern int i386_fpu_present; | |
384 | int npx586bug1(int, int); | 386 | int npx586bug1(int, int); | |
385 | extern int i386_fpu_fdivbug; | 387 | extern int i386_fpu_fdivbug; |