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 | |
| parent | 60b742343453a29342442b67a43a9b743bf9343e (diff) | |
Notes
| -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 b978a9cfd9b8d..d9f6a39343629 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 */ |
