From 58031f6514c28da137437e017ecfed39d1a36b43 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Thu, 18 Apr 2013 18:30:42 +0000 Subject: pin the acpi thread to the BSP, because AML and SMI cannot be trusted. I was certain we were doing this already, but it turns out no... --- sys/dev/acpi/acpi.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sys') diff --git a/sys/dev/acpi/acpi.c b/sys/dev/acpi/acpi.c index 0690a46cb8b..603122a5f7e 100644 --- a/sys/dev/acpi/acpi.c +++ b/sys/dev/acpi/acpi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpi.c,v 1.242 2012/12/24 19:41:14 guenther Exp $ */ +/* $OpenBSD: acpi.c,v 1.243 2013/04/18 18:30:41 deraadt Exp $ */ /* * Copyright (c) 2005 Thorsten Lockert * Copyright (c) 2005 Jordan Hargrave @@ -2151,6 +2151,9 @@ acpi_thread(void *arg) extern int aml_busy; int s; + /* AML/SMI cannot be trusted -- only run on the BSP */ + sched_peg_curproc(&cpu_info_primary); + rw_enter_write(&sc->sc_lck); /* -- cgit v1.2.3