{"action":"created","issue":{"url":"https://api.github.com/repos/kelvinlawson/atomthreads/issues/13","labels_url":"https://api.github.com/repos/kelvinlawson/atomthreads/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/kelvinlawson/atomthreads/issues/13/comments","events_url":"https://api.github.com/repos/kelvinlawson/atomthreads/issues/13/events","html_url":"https://github.com/kelvinlawson/atomthreads/pull/13","id":94585819,"number":13,"title":"Cortex-M Port","user":{"login":"tidklaas","id":13196771,"avatar_url":"https://avatars.githubusercontent.com/u/13196771?v=3","gravatar_id":"","url":"https://api.github.com/users/tidklaas","html_url":"https://github.com/tidklaas","followers_url":"https://api.github.com/users/tidklaas/followers","following_url":"https://api.github.com/users/tidklaas/following{/other_user}","gists_url":"https://api.github.com/users/tidklaas/gists{/gist_id}","starred_url":"https://api.github.com/users/tidklaas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tidklaas/subscriptions","organizations_url":"https://api.github.com/users/tidklaas/orgs","repos_url":"https://api.github.com/users/tidklaas/repos","events_url":"https://api.github.com/users/tidklaas/events{/privacy}","received_events_url":"https://api.github.com/users/tidklaas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-07-12T17:39:45Z","updated_at":"2015-08-11T00:11:11Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/kelvinlawson/atomthreads/pulls/13","html_url":"https://github.com/kelvinlawson/atomthreads/pull/13","diff_url":"https://github.com/kelvinlawson/atomthreads/pull/13.diff","patch_url":"https://github.com/kelvinlawson/atomthreads/pull/13.patch"},"body":"Hello Kelvin,\r\n\r\nI would like to contribute this port for Cortex-M MCUs to atomthreads. It is almost completely contained to its port-directory, but I had to make one small change to the atomThreadSwitch() function. Instead of clearing  the newly scheduled in TCB's suspended flag after returning from archContextSwitch(), I clear it immediately before the function call. This should be functionally equivalent unless I missed something.\r\n\r\nI would be happy to discuss any questions, remarks or suggestions you might have.\r\n\r\n\r\nBest Regards,\r\nTido"},"comment":{"url":"https://api.github.com/repos/kelvinlawson/atomthreads/issues/comments/129652084","html_url":"https://github.com/kelvinlawson/atomthreads/pull/13#issuecomment-129652084","issue_url":"https://api.github.com/repos/kelvinlawson/atomthreads/issues/13","id":129652084,"user":{"login":"kelvinlawson","id":118135,"avatar_url":"https://avatars.githubusercontent.com/u/118135?v=3","gravatar_id":"","url":"https://api.github.com/users/kelvinlawson","html_url":"https://github.com/kelvinlawson","followers_url":"https://api.github.com/users/kelvinlawson/followers","following_url":"https://api.github.com/users/kelvinlawson/following{/other_user}","gists_url":"https://api.github.com/users/kelvinlawson/gists{/gist_id}","starred_url":"https://api.github.com/users/kelvinlawson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kelvinlawson/subscriptions","organizations_url":"https://api.github.com/users/kelvinlawson/orgs","repos_url":"https://api.github.com/users/kelvinlawson/repos","events_url":"https://api.github.com/users/kelvinlawson/events{/privacy}","received_events_url":"https://api.github.com/users/kelvinlawson/received_events","type":"User","site_admin":false},"created_at":"2015-08-11T00:11:11Z","updated_at":"2015-08-11T00:11:11Z","body":"Thanks, it looks like Ubuntu's newlib added libc_nano from 14.10 onward.\r\n\r\nI've created a Docker container with 15.04 and all the prerequisites installed including the QEMU you recommended, so that people can download the whole Atomthreads cortex-m dev environment in a box."}}