From owner-svn-ports-all@freebsd.org Fri Apr 29 20:15:38 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 42CD1B212C7; Fri, 29 Apr 2016 20:15:38 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 055351A2F; Fri, 29 Apr 2016 20:15:37 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u3TKFbLw006877; Fri, 29 Apr 2016 20:15:37 GMT (envelope-from jkim@FreeBSD.org) Received: (from jkim@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u3TKFbbw006876; Fri, 29 Apr 2016 20:15:37 GMT (envelope-from jkim@FreeBSD.org) Message-Id: <201604292015.u3TKFbbw006876@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jkim set sender to jkim@FreeBSD.org using -f From: Jung-uk Kim Date: Fri, 29 Apr 2016 20:15:37 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r414292 - head/emulators/virtualbox-ose/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Apr 2016 20:15:38 -0000 Author: jkim Date: Fri Apr 29 20:15:36 2016 New Revision: 414292 URL: https://svnweb.freebsd.org/changeset/ports/414292 Log: Add upstream patches to build with recent iASL on head. https://www.virtualbox.org/changeset/58415 https://www.virtualbox.org/changeset/60582 https://www.virtualbox.org/changeset/60616 Added: head/emulators/virtualbox-ose/files/patch-src_VBox_Devices_Makefile.kmk (contents, props changed) head/emulators/virtualbox-ose/files/patch-src_VBox_Devices_PC_vbox-cpuhotplug.dsl (contents, props changed) Added: head/emulators/virtualbox-ose/files/patch-src_VBox_Devices_Makefile.kmk ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/emulators/virtualbox-ose/files/patch-src_VBox_Devices_Makefile.kmk Fri Apr 29 20:15:36 2016 (r414292) @@ -0,0 +1,18 @@ +--- src/VBox/Devices/Makefile.kmk.orig 2016-04-20 10:01:06 UTC ++++ src/VBox/Devices/Makefile.kmk +@@ -801,11 +801,13 @@ if !defined(VBOX_ONLY_EXTPACKS) + $(call MSG_TOOL,iasl,VBoxDD,$<,$@) + $(QUIET)$(RM) -f $@ $@.tmp $@.pre + $(QUIET)$(TOOL_$(VBOX_GCC_TOOL)_CC) -E -P -x c -o $@.pre $< +- $(QUIET)$(VBOX_IASLCMD) -tc -vs -p $@ $@.pre ++ $(QUIET)$(SED) "s//\n/g" \ ++ --output $@.pre1 $@.pre ++ $(QUIET)$(VBOX_IASLCMD) -tc -vs -p $@ $@.pre1 + $(QUIET)$(MV) -f $@ $@.tmp + $(QUIET)$(SED) "s/AmlCode/AmlCodeSsdtCpuHotPlug/g" \ + --output $@ $@.tmp +- $(QUIET)$(RM) -f $@.tmp $@.pre ++ $(QUIET)$(RM) -f $@.tmp $@.pre $@.pre1 + + + vboxssdt-cpuhotplug.hex:: $$(VBoxDD_0_OUTDIR)/vboxssdt-cpuhotplug.hex Added: head/emulators/virtualbox-ose/files/patch-src_VBox_Devices_PC_vbox-cpuhotplug.dsl ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/emulators/virtualbox-ose/files/patch-src_VBox_Devices_PC_vbox-cpuhotplug.dsl Fri Apr 29 20:15:36 2016 (r414292) @@ -0,0 +1,64 @@ +--- src/VBox/Devices/PC/vbox-cpuhotplug.dsl.orig 2016-04-20 10:01:38 UTC ++++ src/VBox/Devices/PC/vbox-cpuhotplug.dsl +@@ -27,16 +27,28 @@ DefinitionBlock ("SSDT-cpuhotplug.aml", + Return(LEqual(CPUL, 0x01)) + } + ++ // Method to notify the VMM that a CPU is not ++ // in use anymore and can be safely removed. ++ // Using the extra method here because the CPUL ++ // register identifer clashes with the CPUL object defined ++ // below making iasl starting with version 20150930 fail. ++ // ++ // Think of CPLO as "CPU Lock Open" ++ Method(CPLO, 1) ++ { ++ Store(Arg0, CPUL) ++ } ++ + Scope (\_SB) + { + +-#define GENERATE_CPU_OBJECT(id, sck, sckuid, cpu, cpuuid) \ ++#define GENERATE_CPU_OBJECT(id, sck, sckuid, cpu, cpuuid) \ + Device (sck) \ + { \ + Name (_HID, "ACPI0004") \ + Name (_UID, sckuid) \ + \ +- \ ++ \ + Processor (cpu, /* Name */ \ + id, /* Id */ \ + 0x0, /* Processor IO ports range start */ \ +@@ -46,8 +58,8 @@ DefinitionBlock ("SSDT-cpuhotplug.aml", + Name (_HID, "ACPI0007") \ + Name (_UID, cpuuid) \ + Name (_PXM, 0x00) \ +- \ +- Method(_MAT, 0) \ ++ \ ++ Method(_MAT, 0, Serialized) \ + { \ + Name (APIC, Buffer (8) {0x00, 0x08, id, id}) \ + IF (CPCK(id)) \ +@@ -60,6 +72,7 @@ DefinitionBlock ("SSDT-cpuhotplug.aml", + } \ + Return (APIC) \ + } \ ++ \ + Method(_STA) /* Used for device presence detection */ \ + { \ + IF (CPCK(id)) \ +@@ -71,9 +84,10 @@ DefinitionBlock ("SSDT-cpuhotplug.aml", + Return (0x0) \ + } \ + } \ ++ \ + Method(_EJ0, 1) \ + { \ +- Store(id, CPUL) /* Unlock the CPU */ \ ++ CPLO(id) /* Unlock the CPU */ \ + Return \ + } \ + } \