From 521e2f4ce6e5420c54f62885b331170b5deb65be Mon Sep 17 00:00:00 2001 From: peter Date: Thu, 23 Jan 2003 01:01:35 +0000 Subject: Now that TPR isn't bogusly raised at boot, there is no need to clear it at context switch. --- sys/amd64/amd64/cpu_switch.S | 8 -------- sys/amd64/amd64/swtch.s | 8 -------- sys/i386/i386/swtch.s | 8 -------- 3 files changed, 24 deletions(-) (limited to 'sys') diff --git a/sys/amd64/amd64/cpu_switch.S b/sys/amd64/amd64/cpu_switch.S index 57ba94b..aaf0ec2 100644 --- a/sys/amd64/amd64/cpu_switch.S +++ b/sys/amd64/amd64/cpu_switch.S @@ -238,14 +238,6 @@ sw1b: pushl PCB_PSL(%edx) popfl -#if defined(SMP) && defined(GRAB_LOPRIO) - /* Hold LOPRIO for interrupts. */ -#ifdef CHEAP_TPR - movl $0, lapic+LA_TPR -#else - andl $~APIC_TPR_PRIO, lapic+LA_TPR -#endif -#endif movl %edx, PCPU(CURPCB) movl %ecx, PCPU(CURTHREAD) /* into next thread */ diff --git a/sys/amd64/amd64/swtch.s b/sys/amd64/amd64/swtch.s index 57ba94b..aaf0ec2 100644 --- a/sys/amd64/amd64/swtch.s +++ b/sys/amd64/amd64/swtch.s @@ -238,14 +238,6 @@ sw1b: pushl PCB_PSL(%edx) popfl -#if defined(SMP) && defined(GRAB_LOPRIO) - /* Hold LOPRIO for interrupts. */ -#ifdef CHEAP_TPR - movl $0, lapic+LA_TPR -#else - andl $~APIC_TPR_PRIO, lapic+LA_TPR -#endif -#endif movl %edx, PCPU(CURPCB) movl %ecx, PCPU(CURTHREAD) /* into next thread */ diff --git a/sys/i386/i386/swtch.s b/sys/i386/i386/swtch.s index 57ba94b..aaf0ec2 100644 --- a/sys/i386/i386/swtch.s +++ b/sys/i386/i386/swtch.s @@ -238,14 +238,6 @@ sw1b: pushl PCB_PSL(%edx) popfl -#if defined(SMP) && defined(GRAB_LOPRIO) - /* Hold LOPRIO for interrupts. */ -#ifdef CHEAP_TPR - movl $0, lapic+LA_TPR -#else - andl $~APIC_TPR_PRIO, lapic+LA_TPR -#endif -#endif movl %edx, PCPU(CURPCB) movl %ecx, PCPU(CURTHREAD) /* into next thread */ -- cgit v1.1