{"action":"created","comment":{"url":"https://api.github.com/repos/ARM-software/arm-trusted-firmware/pulls/comments/74039440","id":74039440,"diff_hunk":"@@ -0,0 +1,255 @@\n+/*\n+ * Copyright (c) 2016, ARM Limited and Contributors. All rights reserved.\n+ *\n+ * Redistribution and use in source and binary forms, with or without\n+ * modification, are permitted provided that the following conditions are met:\n+ *\n+ * Redistributions of source code must retain the above copyright notice, this\n+ * list of conditions and the following disclaimer.\n+ *\n+ * Redistributions in binary form must reproduce the above copyright notice,\n+ * this list of conditions and the following disclaimer in the documentation\n+ * and/or other materials provided with the distribution.\n+ *\n+ * Neither the name of ARM nor the names of its contributors may be used\n+ * to endorse or promote products derived from this software without specific\n+ * prior written permission.\n+ *\n+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE\n+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n+ * POSSIBILITY OF SUCH DAMAGE.\n+ */\n+\n+#include <assert.h>\n+#include <debug.h>\n+#include <io_storage.h>\n+#include <partition.h>\n+#include <platform.h>\n+#include <string.h>\n+\n+static part_entry_t entry_list[MAX_PARTITION_NUM];\n+static int part_num_entries;\n+static partition_ops_t part_ops;\n+static uint8_t mbr_sector[PARTITION_BLOCK_SIZE];\n+\n+static int unicode_to_ascii(uint16_t *str_in, uint8_t *str_out)\n+{\n+\tuint8_t *name = (uint8_t *)str_in;\n+\tint i;\n+\n+\tassert((name[0] != '\\0') && (str_in != NULL) && (str_out != NULL));\n+\n+\t/* Calculate the unicode string length. */\n+\tfor (i = 1; i < (EFI_NAMELEN << 1); i += 2) {\n+\t\tif (name[i] != '\\0')\n+\t\t\treturn -EINVAL;\n+\t}\n+\t/* Convert */\n+\tfor (i = 0; i < (EFI_NAMELEN << 1); i += 2) {\n+\t\tstr_out[i >> 1] = name[i];\n+\t\tif (name[i] == '\\0')\n+\t\t\tbreak;\n+\t}\n+\treturn 0;\n+}\n+\n+static int parse_gpt_entry(gpt_entry_t *gpt_entry, int entry_index)\n+{\n+\tint result;\n+\n+\tassert((gpt_entry != 0) && (entry_index >= 0) &&\n+\t       (entry_index < MAX_PARTITION_NUM));\n+\n+\t/* exhaused partition entry */\n+\tif ((gpt_entry->first_lba == 0) && (gpt_entry->last_lba == 0)) {\n+\t\treturn -EINVAL;\n+\t}\n+\n+\tmemset(&entry_list[entry_index], 0, sizeof(part_entry_t));\n+\tresult = unicode_to_ascii(gpt_entry->name,\n+\t\t\t\t  (uint8_t *)entry_list[entry_index].name);\n+\tif (result != 0) {\n+\t\treturn result;\n+\t}\n+\tentry_list[entry_index].start = (uint64_t)gpt_entry->first_lba *\n+\t\t\t\t\tPARTITION_BLOCK_SIZE;\n+\tentry_list[entry_index].length = (uint64_t)(gpt_entry->last_lba -\n+\t\t\t\t\t\t    gpt_entry->first_lba + 1) *\n+\t\t\t\t\t PARTITION_BLOCK_SIZE;\n+\treturn 0;\n+}\n+\n+static int verify_partition_mbr(uintptr_t image_handle)\n+{\n+\tsize_t bytes_read;\n+\tmbr_entry_t *entry;\n+\tint result;\n+\n+\t/* MBR partition table is in LBA0. */\n+\tresult = io_seek(image_handle, IO_SEEK_SET, MBR_OFFSET);\n+\tif (result != 0) {\n+\t\tWARN(\"Failed to seek (%i)\\n\", result);\n+\t\treturn result;\n+\t}\n+\tresult = io_read(image_handle, (uintptr_t)&mbr_sector,\n+\t\t\t PARTITION_BLOCK_SIZE, &bytes_read);\n+\tif (result != 0) {\n+\t\tWARN(\"Failed to read data (%i)\\n\", result);\n+\t\treturn result;\n+\t}\n+\n+\t/* Check MBR boot signature. */\n+\tif ((mbr_sector[PARTITION_BLOCK_SIZE - 2] != 0x55) ||\n+\t    (mbr_sector[PARTITION_BLOCK_SIZE - 1] != 0xAA)) {\n+\t\treturn -EINVAL;\n+\t}\n+\t/* Check the first partition entry. */\n+\tentry = (mbr_entry_t *)((uintptr_t)&mbr_sector +\n+\t\t\t\tMBR_PRIMARY_ENTRY_OFFSET);\n+\tif (entry->type == PARTITION_TYPE_GPT)\n+\t\treturn -EAGAIN;\n+\treturn -EINVAL;\n+}\n+\n+static void dump_entries(int num)\n+{\n+\tchar name[EFI_NAMELEN];\n+\tint i, j, len;\n+\n+\tINFO(\"Partition table with %d entries:\\n\", num);\n+\tfor (i = 0; i < num; i++) {\n+\t\tlen = snprintf(name, EFI_NAMELEN, \"%s\", entry_list[i].name);\n+\t\tfor (j = 0; j < EFI_NAMELEN - len; j++) {\n+\t\t\tname[len + j] = ' ';\n+\t\t}\n+\t\tINFO(\"%d: %s %lx-%lx\\n\", i + 1, name, entry_list[i].start,\n+\t\t     entry_list[i].start + entry_list[i].length - 4);\n+\t}\n+}\n+\n+static int verify_partition_gpt(uintptr_t image_handle)\n+{\n+\tgpt_header_t header;\n+\tgpt_entry_t entry;\n+\tsize_t bytes_read;\n+\tint result, i;\n+\n+\tresult = io_seek(image_handle, IO_SEEK_SET, GPT_HEADER_OFFSET);\n+\tif (result != 0) {\n+\t\treturn result;\n+\t}\n+\tresult = io_read(image_handle, (uintptr_t)&header,\n+\t\t\t sizeof(gpt_header_t), &bytes_read);\n+\tif ((result != 0) || (sizeof(gpt_header_t) != bytes_read)) {\n+\t\treturn result;\n+\t}\n+\tif (memcmp(header.signature, GPT_SIGNATURE,\n+\t\t   sizeof(header.signature)) != 0) {\n+\t\treturn -EINVAL;\n+\t}\n+\tpart_num_entries = header.part_num;\n+\tif (part_num_entries > MAX_PARTITION_NUM) {\n+\t\treturn -EINVAL;\n+\t}\n+\n+\tresult = io_seek(image_handle, IO_SEEK_SET, GPT_ENTRY_OFFSET);\n+\tif (result != 0) {\n+\t\treturn result;\n+\t}\n+\tfor (i = 0; i < part_num_entries; i++) {\n+\t\tresult = io_read(image_handle, (uintptr_t)&entry,\n+\t\t\t\t sizeof(gpt_entry_t), &bytes_read);\n+\t\tif (result || (sizeof(gpt_entry_t) != bytes_read)) {\n+\t\t\treturn result;\n+\t\t}\n+\t\tresult = parse_gpt_entry(&entry, i);\n+\t\tif (result != 0) {\n+\t\t\tbreak;\n+\t\t}\n+\t}\n+\tif (i == 0) {\n+\t\treturn -EINVAL;\n+\t}\n+\tpart_num_entries = i;\n+\tdump_entries(part_num_entries);\n+\n+\treturn 0;\n+}\n+\n+int load_partition_table(unsigned int image_id)\n+{\n+\tuintptr_t dev_handle, image_handle, image_spec = 0;\n+\tint result;\n+\n+\tresult = plat_get_image_source(image_id, &dev_handle, &image_spec);\n+\tif (result != 0) {\n+\t\tWARN(\"Failed to obtain reference to image id=%u (%i)\\n\",\n+\t\t\timage_id, result);\n+\t\treturn result;\n+\t}\n+\n+\tresult = io_open(dev_handle, image_spec, &image_handle);\n+\tif (result != 0) {\n+\t\tWARN(\"Failed to access image id=%u (%i)\\n\", image_id, result);\n+\t\treturn result;\n+\t}\n+\n+\tresult = verify_partition_mbr(image_handle);\n+\tif (result != 0) {\n+\t\tINFO(\"Can't find MBR partition table (%i)\\n\", result);\n+\t\tif (result != -EAGAIN)\n+\t\t\tgoto exit;\n+\t} else {\n+\t\t/* Find MBR partition table. */\n+\t\tgoto exit;\n+\t}\n+","path":"drivers/partition/partition.c","position":214,"original_position":214,"commit_id":"ed9e5f5a3a35dafd4976a54f2b46b182f3313118","original_commit_id":"ed9e5f5a3a35dafd4976a54f2b46b182f3313118","user":{"login":"danh-arm","id":5684642,"avatar_url":"https://avatars.githubusercontent.com/u/5684642?v=3","gravatar_id":"","url":"https://api.github.com/users/danh-arm","html_url":"https://github.com/danh-arm","followers_url":"https://api.github.com/users/danh-arm/followers","following_url":"https://api.github.com/users/danh-arm/following{/other_user}","gists_url":"https://api.github.com/users/danh-arm/gists{/gist_id}","starred_url":"https://api.github.com/users/danh-arm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danh-arm/subscriptions","organizations_url":"https://api.github.com/users/danh-arm/orgs","repos_url":"https://api.github.com/users/danh-arm/repos","events_url":"https://api.github.com/users/danh-arm/events{/privacy}","received_events_url":"https://api.github.com/users/danh-arm/received_events","type":"User","site_admin":false},"body":"Need a comment to say that MBR is parsed OK and now need to verify that first entry is a GPT entry.","created_at":"2016-08-09T11:19:27Z","updated_at":"2016-08-09T11:19:27Z","html_url":"https://github.com/ARM-software/arm-trusted-firmware/pull/677#discussion_r74039440","pull_request_url":"https://api.github.com/repos/ARM-software/arm-trusted-firmware/pulls/677","_links":{"self":{"href":"https://api.github.com/repos/ARM-software/arm-trusted-firmware/pulls/comments/74039440"},"html":{"href":"https://github.com/ARM-software/arm-trusted-firmware/pull/677#discussion_r74039440"},"pull_request":{"href":"https://api.github.com/repos/ARM-software/arm-trusted-firmware/pulls/677"}}},"pull_request":{"url":"https://api.github.com/repos/ARM-software/arm-trusted-firmware/pulls/677","id":80008538,"html_url":"https://github.com/ARM-software/arm-trusted-firmware/pull/677","diff_url":"https://github.com/ARM-software/arm-trusted-firmware/pull/677.diff","patch_url":"https://github.com/ARM-software/arm-trusted-firmware/pull/677.patch","issue_url":"https://api.github.com/repos/ARM-software/arm-trusted-firmware/issues/677","number":677,"state":"open","locked":false,"title":"partition: check GPT partition table","user":{"login":"hzhuang1","id":534660,"avatar_url":"https://avatars.githubusercontent.com/u/534660?v=3","gravatar_id":"","url":"https://api.github.com/users/hzhuang1","html_url":"https://github.com/hzhuang1","followers_url":"https://api.github.com/users/hzhuang1/followers","following_url":"https://api.github.com/users/hzhuang1/following{/other_user}","gists_url":"https://api.github.com/users/hzhuang1/gists{/gist_id}","starred_url":"https://api.github.com/users/hzhuang1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hzhuang1/subscriptions","organizations_url":"https://api.github.com/users/hzhuang1/orgs","repos_url":"https://api.github.com/users/hzhuang1/repos","events_url":"https://api.github.com/users/hzhuang1/events{/privacy}","received_events_url":"https://api.github.com/users/hzhuang1/received_events","type":"User","site_admin":false},"body":"Now only support GPT partition table. MBR partition table isn't\r\nsupported yet.\r\n\r\nSigned-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>","created_at":"2016-08-04T02:15:06Z","updated_at":"2016-08-09T11:19:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"336136875a8cb895b48347a01329b0bd78b83c73","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ARM-software/arm-trusted-firmware/pulls/677/commits","review_comments_url":"https://api.github.com/repos/ARM-software/arm-trusted-firmware/pulls/677/comments","review_comment_url":"https://api.github.com/repos/ARM-software/arm-trusted-firmware/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ARM-software/arm-trusted-firmware/issues/677/comments","statuses_url":"https://api.github.com/repos/ARM-software/arm-trusted-firmware/statuses/ed9e5f5a3a35dafd4976a54f2b46b182f3313118","head":{"label":"hzhuang1:gpt","ref":"gpt","sha":"ed9e5f5a3a35dafd4976a54f2b46b182f3313118","user":{"login":"hzhuang1","id":534660,"avatar_url":"https://avatars.githubusercontent.com/u/534660?v=3","gravatar_id":"","url":"https://api.github.com/users/hzhuang1","html_url":"https://github.com/hzhuang1","followers_url":"https://api.github.com/users/hzhuang1/followers","following_url":"https://api.github.com/users/hzhuang1/following{/other_user}","gists_url":"https://api.github.com/users/hzhuang1/gists{/gist_id}","starred_url":"https://api.github.com/users/hzhuang1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hzhuang1/subscriptions","organizations_url":"https://api.github.com/users/hzhuang1/orgs","repos_url":"https://api.github.com/users/hzhuang1/repos","events_url":"https://api.github.com/users/hzhuang1/events{/privacy}","received_events_url":"https://api.github.com/users/hzhuang1/received_events","type":"User","site_admin":false},"repo":{"id":31355069,"name":"arm-trusted-firmware","full_name":"hzhuang1/arm-trusted-firmware","owner":{"login":"hzhuang1","id":534660,"avatar_url":"https://avatars.githubusercontent.com/u/534660?v=3","gravatar_id":"","url":"https://api.github.com/users/hzhuang1","html_url":"https://github.com/hzhuang1","followers_url":"https://api.github.com/users/hzhuang1/followers","following_url":"https://api.github.com/users/hzhuang1/following{/other_user}","gists_url":"https://api.github.com/users/hzhuang1/gists{/gist_id}","starred_url":"https://api.github.com/users/hzhuang1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hzhuang1/subscriptions","organizations_url":"https://api.github.com/users/hzhuang1/orgs","repos_url":"https://api.github.com/users/hzhuang1/repos","events_url":"https://api.github.com/users/hzhuang1/events{/privacy}","received_events_url":"https://api.github.com/users/hzhuang1/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hzhuang1/arm-trusted-firmware","description":"ARM Trusted Firmware","fork":true,"url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware","forks_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/forks","keys_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/teams","hooks_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/hooks","issue_events_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/issues/events{/number}","events_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/events","assignees_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/assignees{/user}","branches_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/branches{/branch}","tags_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/tags","blobs_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/git/refs{/sha}","trees_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/statuses/{sha}","languages_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/languages","stargazers_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/stargazers","contributors_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/contributors","subscribers_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/subscribers","subscription_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/subscription","commits_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/commits{/sha}","git_commits_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/git/commits{/sha}","comments_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/comments{/number}","issue_comment_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/issues/comments{/number}","contents_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/contents/{+path}","compare_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/merges","archive_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/downloads","issues_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/issues{/number}","pulls_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/pulls{/number}","milestones_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/milestones{/number}","notifications_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/labels{/name}","releases_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/releases{/id}","deployments_url":"https://api.github.com/repos/hzhuang1/arm-trusted-firmware/deployments","created_at":"2015-02-26T07:13:38Z","updated_at":"2015-02-26T07:13:40Z","pushed_at":"2016-08-04T02:06:00Z","git_url":"git://github.com/hzhuang1/arm-trusted-firmware.git","ssh_url":"git@github.com:hzhuang1/arm-trusted-firmware.git","clone_url":"https://github.com/hzhuang1/arm-trusted-firmware.git","svn_url":"https://github.com/hzhuang1/arm-trusted-firmware","homepage":null,"size":7579,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"hikey"}},"base":{"label":"ARM-software:integration","ref":"integration","sha":"3d99b17f60142ef96d39759132d4448e138b6c4e","user":{"login":"ARM-software","id":5690313,"avatar_url":"https://avatars.githubusercontent.com/u/5690313?v=3","gravatar_id":"","url":"https://api.github.com/users/ARM-software","html_url":"https://github.com/ARM-software","followers_url":"https://api.github.com/users/ARM-software/followers","following_url":"https://api.github.com/users/ARM-software/following{/other_user}","gists_url":"https://api.github.com/users/ARM-software/gists{/gist_id}","starred_url":"https://api.github.com/users/ARM-software/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ARM-software/subscriptions","organizations_url":"https://api.github.com/users/ARM-software/orgs","repos_url":"https://api.github.com/users/ARM-software/repos","events_url":"https://api.github.com/users/ARM-software/events{/privacy}","received_events_url":"https://api.github.com/users/ARM-software/received_events","type":"Organization","site_admin":false},"repo":{"id":13740589,"name":"arm-trusted-firmware","full_name":"ARM-software/arm-trusted-firmware","owner":{"login":"ARM-software","id":5690313,"avatar_url":"https://avatars.githubusercontent.com/u/5690313?v=3","gravatar_id":"","url":"https://api.github.com/users/ARM-software","html_url":"https://github.com/ARM-software","followers_url":"https://api.github.com/users/ARM-software/followers","following_url":"https://api.github.com/users/ARM-software/following{/other_user}","gists_url":"https://api.github.com/users/ARM-software/gists{/gist_id}","starred_url":"https://api.github.com/users/ARM-software/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ARM-software/subscriptions","organizations_url":"https://api.github.com/users/ARM-software/orgs","repos_url":"https://api.github.com/users/ARM-software/repos","events_url":"https://api.github.com/users/ARM-software/events{/privacy}","received_events_url":"https://api.github.com/users/ARM-software/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ARM-software/arm-trusted-firmware","description":"ARM Trusted Firmware","fork":false,"url":"https://api.github.com/repos/ARM-software/arm-trusted-firmware","forks_url":"https://api.github.com/repos/ARM-software/arm-trusted-firmware/forks","keys_url":"https://api.github.com/repos/ARM-software/arm-trusted-firmware/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ARM-software/arm-trusted-firmware/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ARM-software/arm-trusted-firmware/teams","hooks_url":"https://api.github.com/repos/ARM-software/arm-trusted-firmware/hooks","issue_events_url":"https://api.github.com/repos/ARM-software/arm-trusted-firmware/issues/events{/number}","events_url":"https://api.github.com/repos/ARM-software/arm-trusted-firmware/events","assignees_url":"https://api.github.com/repos/ARM-software/arm-trusted-firmware/assignees{/user}","branches_url":"https://api.github.com/repos/ARM-software/arm-trusted-firmware/branches{/branch}","tags_url":"https://api.github.com/repos/ARM-software/arm-trusted-firmware/tags","blobs_url":"https://api.github.com/repos/ARM-software/arm-trusted-firmware/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ARM-software/arm-trusted-firmware/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ARM-software/arm-trusted-firmware/git/refs{/sha}","trees_url":"https://api.github.com/repos/ARM-software/arm-trusted-firmware/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ARM-software/arm-trusted-firmware/statuses/{sha}","languages_url":"https://api.github.com/repos/ARM-software/arm-trusted-firmware/languages","stargazers_url":"https://api.github.com/repos/ARM-software/arm-trusted-firmware/stargazers","contributors_url":"https://api.github.com/repos/ARM-software/arm-trusted-firmware/contributors","subscribers_url":"https://api.github.com/repos/ARM-software/arm-trusted-firmware/subscribers","subscription_url":"https://api.github.com/repos/ARM-software/arm-trusted-firmware/subscription","commits_url":"https://api.github.com/repos/ARM-software/arm-trusted-firmware/commits{/sha}","git_commits_url":"https://api.github.com/repos/ARM-software/arm-trusted-firmware/git/commits{/sha}","comments_url":"https://api.github.com/repos/ARM-software/arm-trusted-firmware/comments{/number}","issue_comment_url":"https://api.github.com/repos/ARM-software/arm-trusted-firmware/issues/comments{/number}","contents_url":"https://api.github.com/repos/ARM-software/arm-trusted-firmware/contents/{+path}","compare_url":"https://api.github.com/repos/ARM-software/arm-trusted-firmware/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ARM-software/arm-trusted-firmware/merges","archive_url":"https://api.github.com/repos/ARM-software/arm-trusted-firmware/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ARM-software/arm-trusted-firmware/downloads","issues_url":"https://api.github.com/repos/ARM-software/arm-trusted-firmware/issues{/number}","pulls_url":"https://api.github.com/repos/ARM-software/arm-trusted-firmware/pulls{/number}","milestones_url":"https://api.github.com/repos/ARM-software/arm-trusted-firmware/milestones{/number}","notifications_url":"https://api.github.com/repos/ARM-software/arm-trusted-firmware/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ARM-software/arm-trusted-firmware/labels{/name}","releases_url":"https://api.github.com/repos/ARM-software/arm-trusted-firmware/releases{/id}","deployments_url":"https://api.github.com/repos/ARM-software/arm-trusted-firmware/deployments","created_at":"2013-10-21T11:39:00Z","updated_at":"2016-08-04T14:56:05Z","pushed_at":"2016-08-09T10:07:22Z","git_url":"git://github.com/ARM-software/arm-trusted-firmware.git","ssh_url":"git@github.com:ARM-software/arm-trusted-firmware.git","clone_url":"https://github.com/ARM-software/arm-trusted-firmware.git","svn_url":"https://github.com/ARM-software/arm-trusted-firmware","homepage":null,"size":9639,"stargazers_count":188,"watchers_count":188,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":199,"mirror_url":null,"open_issues_count":9,"forks":199,"open_issues":9,"watchers":188,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ARM-software/arm-trusted-firmware/pulls/677"},"html":{"href":"https://github.com/ARM-software/arm-trusted-firmware/pull/677"},"issue":{"href":"https://api.github.com/repos/ARM-software/arm-trusted-firmware/issues/677"},"comments":{"href":"https://api.github.com/repos/ARM-software/arm-trusted-firmware/issues/677/comments"},"review_comments":{"href":"https://api.github.com/repos/ARM-software/arm-trusted-firmware/pulls/677/comments"},"review_comment":{"href":"https://api.github.com/repos/ARM-software/arm-trusted-firmware/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ARM-software/arm-trusted-firmware/pulls/677/commits"},"statuses":{"href":"https://api.github.com/repos/ARM-software/arm-trusted-firmware/statuses/ed9e5f5a3a35dafd4976a54f2b46b182f3313118"}}}}
{"actor":{"display_login":"danh-arm"}}