{"action":"created","issue":{"url":"https://api.github.com/repos/Harvey-OS/harvey/issues/369","repository_url":"https://api.github.com/repos/Harvey-OS/harvey","labels_url":"https://api.github.com/repos/Harvey-OS/harvey/issues/369/labels{/name}","comments_url":"https://api.github.com/repos/Harvey-OS/harvey/issues/369/comments","events_url":"https://api.github.com/repos/Harvey-OS/harvey/issues/369/events","html_url":"https://github.com/Harvey-OS/harvey/pull/369","id":191785785,"number":369,"title":"Get ACPICA AcpiEnableSubSystem to work properly","user":{"login":"sanderssj","id":6250092,"avatar_url":"https://avatars.githubusercontent.com/u/6250092?v=3","gravatar_id":"","url":"https://api.github.com/users/sanderssj","html_url":"https://github.com/sanderssj","followers_url":"https://api.github.com/users/sanderssj/followers","following_url":"https://api.github.com/users/sanderssj/following{/other_user}","gists_url":"https://api.github.com/users/sanderssj/gists{/gist_id}","starred_url":"https://api.github.com/users/sanderssj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanderssj/subscriptions","organizations_url":"https://api.github.com/users/sanderssj/orgs","repos_url":"https://api.github.com/users/sanderssj/repos","events_url":"https://api.github.com/users/sanderssj/events{/privacy}","received_events_url":"https://api.github.com/users/sanderssj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-26T04:14:26Z","updated_at":"2016-11-26T04:14:36Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Harvey-OS/harvey/pulls/369","html_url":"https://github.com/Harvey-OS/harvey/pull/369","diff_url":"https://github.com/Harvey-OS/harvey/pull/369.diff","patch_url":"https://github.com/Harvey-OS/harvey/pull/369.patch"},"body":"I am trying to get oriented around the acpi stuff and created a small test program that uses the acpica library according to the programmer's reference. In doing so, I found some small errors preventing the ACPICA library from working properly. The out pio functions in the custom part of libacpi had their arguments reversed. Also, devacpi had ioalloced the ACPI ports preventing userspace from accessing them.\r\n\r\nThe test program I used is as follows (built in /sys/src/cmd/acpi):\r\n`#include <acpi.h>\r\n\r\nvoid main(int argc, char *argv[])\r\n{\r\n\tACPI_STATUS status;\r\n\r\n\tstatus = AcpiInitializeSubsystem();\r\n\tif (ACPI_FAILURE(status))\r\n\t\texits(\"failed to init subsystem\");\r\n\tstatus = AcpiInitializeTables(NULL, 4, 0);\r\n\tif (ACPI_FAILURE(status))\r\n\t\texits(\"failed to init tables\");\r\n\tstatus = AcpiLoadTables();\r\n\tif (ACPI_FAILURE(status))\r\n\t\texits(\"failed to load tables\");\r\n\tstatus = AcpiEnableSubsystem(ACPI_FULL_INITIALIZATION);\r\n\tif (ACPI_FAILURE(status))\r\n\t\texits(\"failed to enable subsystem\");\r\n\tstatus = AcpiTerminate();\r\n\tif (ACPI_FAILURE(status))\r\n\t\texits(\"failed to terminate acpi\");\r\n\texits(0);\r\n}`\r\n\r\nSigned-off-by: Justin Sanders <sanderssj@gmail.com>"},"comment":{"url":"https://api.github.com/repos/Harvey-OS/harvey/issues/comments/263043071","html_url":"https://github.com/Harvey-OS/harvey/pull/369#issuecomment-263043071","issue_url":"https://api.github.com/repos/Harvey-OS/harvey/issues/369","id":263043071,"user":{"login":"harveybot","id":13722411,"avatar_url":"https://avatars.githubusercontent.com/u/13722411?v=3","gravatar_id":"","url":"https://api.github.com/users/harveybot","html_url":"https://github.com/harveybot","followers_url":"https://api.github.com/users/harveybot/followers","following_url":"https://api.github.com/users/harveybot/following{/other_user}","gists_url":"https://api.github.com/users/harveybot/gists{/gist_id}","starred_url":"https://api.github.com/users/harveybot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harveybot/subscriptions","organizations_url":"https://api.github.com/users/harveybot/orgs","repos_url":"https://api.github.com/users/harveybot/repos","events_url":"https://api.github.com/users/harveybot/events{/privacy}","received_events_url":"https://api.github.com/users/harveybot/received_events","type":"User","site_admin":false},"created_at":"2016-11-26T04:14:36Z","updated_at":"2016-11-26T04:14:36Z","body":"@sanderssj, thanks for your PR! By analyzing the history of the files in this pull request, we identified @0intro to be a potential reviewer."}}
{"actor":{"display_login":"harveybot"}}