| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: cpu.h,v 1.110 2019/12/01 15:34:45 ad Exp $ */ | | 1 | /* $NetBSD: cpu.h,v 1.111 2020/06/27 07:33:51 macallan Exp $ */ |
2 | | | 2 | |
3 | /* | | 3 | /* |
4 | * Copyright (C) 1999 Wolfgang Solfrank. | | 4 | * Copyright (C) 1999 Wolfgang Solfrank. |
5 | * Copyright (C) 1999 TooLs GmbH. | | 5 | * Copyright (C) 1999 TooLs GmbH. |
6 | * Copyright (C) 1995-1997 Wolfgang Solfrank. | | 6 | * Copyright (C) 1995-1997 Wolfgang Solfrank. |
7 | * Copyright (C) 1995-1997 TooLs GmbH. | | 7 | * Copyright (C) 1995-1997 TooLs GmbH. |
8 | * All rights reserved. | | 8 | * All rights reserved. |
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. |
| @@ -406,28 +406,30 @@ void cpu_boot_secondary_processors(void) | | | @@ -406,28 +406,30 @@ void cpu_boot_secondary_processors(void) |
406 | void cpu_halt(void); | | 406 | void cpu_halt(void); |
407 | void cpu_halt_others(void); | | 407 | void cpu_halt_others(void); |
408 | void cpu_pause(struct trapframe *); | | 408 | void cpu_pause(struct trapframe *); |
409 | void cpu_pause_others(void); | | 409 | void cpu_pause_others(void); |
410 | void cpu_resume(cpuid_t); | | 410 | void cpu_resume(cpuid_t); |
411 | void cpu_resume_others(void); | | 411 | void cpu_resume_others(void); |
412 | int cpu_is_paused(int); | | 412 | int cpu_is_paused(int); |
413 | void cpu_debug_dump(void); | | 413 | void cpu_debug_dump(void); |
414 | #endif /* MULTIPROCESSOR */ | | 414 | #endif /* MULTIPROCESSOR */ |
415 | #endif /* !_MODULE */ | | 415 | #endif /* !_MODULE */ |
416 | | | 416 | |
417 | #define cpu_proc_fork(p1, p2) | | 417 | #define cpu_proc_fork(p1, p2) |
418 | | | 418 | |
| | | 419 | #ifndef __HIDE_DELAY |
419 | #define DELAY(n) delay(n) | | 420 | #define DELAY(n) delay(n) |
420 | void delay(unsigned int); | | 421 | void delay(unsigned int); |
| | | 422 | #endif /* __HIDE_DELAY */ |
421 | | | 423 | |
422 | #define CLKF_USERMODE(cf) cpu_clkf_usermode(cf) | | 424 | #define CLKF_USERMODE(cf) cpu_clkf_usermode(cf) |
423 | #define CLKF_PC(cf) cpu_clkf_pc(cf) | | 425 | #define CLKF_PC(cf) cpu_clkf_pc(cf) |
424 | #define CLKF_INTR(cf) cpu_clkf_intr(cf) | | 426 | #define CLKF_INTR(cf) cpu_clkf_intr(cf) |
425 | | | 427 | |
426 | bool cpu_clkf_usermode(const struct clockframe *); | | 428 | bool cpu_clkf_usermode(const struct clockframe *); |
427 | vaddr_t cpu_clkf_pc(const struct clockframe *); | | 429 | vaddr_t cpu_clkf_pc(const struct clockframe *); |
428 | bool cpu_clkf_intr(const struct clockframe *); | | 430 | bool cpu_clkf_intr(const struct clockframe *); |
429 | | | 431 | |
430 | #define LWP_PC(l) cpu_lwp_pc(l) | | 432 | #define LWP_PC(l) cpu_lwp_pc(l) |
431 | | | 433 | |
432 | vaddr_t cpu_lwp_pc(struct lwp *); | | 434 | vaddr_t cpu_lwp_pc(struct lwp *); |
433 | | | 435 | |