diff options
author | dillon <dillon@FreeBSD.org> | 2002-04-01 23:51:23 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 2002-04-01 23:51:23 +0000 |
commit | 3ad295d41646d81ef12f3b5e99af833ef91f660f (patch) | |
tree | ec7d3de3f9fac7137b9779c10d8281315efa3647 /sys/amd64/include/cpufunc.h | |
parent | a683bcc9224326e9d7bbf72dc76abaefe8a1d62b (diff) | |
download | FreeBSD-src-3ad295d41646d81ef12f3b5e99af833ef91f660f.zip FreeBSD-src-3ad295d41646d81ef12f3b5e99af833ef91f660f.tar.gz |
Stage-2 commit of the critical*() code. This re-inlines cpu_critical_enter()
and cpu_critical_exit() and moves associated critical prototypes into their
own header file, <arch>/<arch>/critical.h, which is only included by the
three MI source files that need it.
Backout and re-apply improperly comitted syntactical cleanups made to files
that were still under active development. Backout improperly comitted program
structure changes that moved localized declarations to the top of two
procedures. Partially re-apply one of the program structure changes to
move 'mask' into an intermediate block rather then in three separate
sub-blocks to make the code more readable. Re-integrate bug fixes that Jake
made to the sparc64 code.
Note: In general, developers should not gratuitously move declarations out
of sub-blocks. They are where they are for reasons of structure, grouping,
readability, compiler-localizability, and to avoid developer-introduced bugs
similar to several found in recent years in the VFS and VM code.
Reviewed by: jake
Diffstat (limited to 'sys/amd64/include/cpufunc.h')
-rw-r--r-- | sys/amd64/include/cpufunc.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/amd64/include/cpufunc.h b/sys/amd64/include/cpufunc.h index 2b0abcc..d57839a 100644 --- a/sys/amd64/include/cpufunc.h +++ b/sys/amd64/include/cpufunc.h @@ -624,10 +624,6 @@ u_int rcr0(void); u_int rcr3(void); u_int rcr4(void); void reset_dbregs(void); -void cpu_critical_enter(void); -void cpu_critical_exit(void); -void cpu_critical_fork_exit(void); -void cpu_thread_link(struct thread *td); __END_DECLS |