diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2018-08-25 15:31:23 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2018-08-25 15:31:23 +0000 |
commit | 23c97bcba1433e417ffdf2fd3b9c233170f0c89f (patch) | |
tree | 55ae0c0f0bc04869eb3598fef4bcda00477d6b9b /sys/i386 | |
parent | 60b742343453a29342442b67a43a9b743bf9343e (diff) | |
download | src-23c97bcba1433e417ffdf2fd3b9c233170f0c89f.tar.gz src-23c97bcba1433e417ffdf2fd3b9c233170f0c89f.zip |
Remove dead code in i386 cpu_throw().
Curpmap must be already valid when cpu_throw() is called, even for early
AP startup.
Suggested by: alc
Reviewed by: alc, markj
Sponsored by: The FreeBSD Foundation
Approved by: re (marius)
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D16893
Notes
Notes:
svn path=/head/; revision=338313
Diffstat (limited to 'sys/i386')
-rw-r--r-- | sys/i386/i386/swtch.s | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/i386/i386/swtch.s b/sys/i386/i386/swtch.s index b978a9cfd9b8..d9f6a3934362 100644 --- a/sys/i386/i386/swtch.s +++ b/sys/i386/i386/swtch.s @@ -74,16 +74,12 @@ */ ENTRY(cpu_throw) movl PCPU(CPUID), %esi - movl 4(%esp),%ecx /* Old thread */ - testl %ecx,%ecx /* no thread? */ - jz 1f /* release bit from old pm_active */ movl PCPU(CURPMAP), %ebx #ifdef SMP lock #endif btrl %esi, PM_ACTIVE(%ebx) /* clear old */ -1: movl 8(%esp),%ecx /* New thread */ movl TD_PCB(%ecx),%edx /* set bit in new pm_active */ |