Rev 1701 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1701 | Rev 1719 | ||
---|---|---|---|
Line 24... | Line 24... | ||
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | */ |
27 | */ |
28 | 28 | ||
29 | /** @addtogroup libc |
29 | /** @addtogroup libc |
30 | * @{ |
30 | * @{ |
31 | */ |
31 | */ |
32 | /** @file |
32 | /** @file |
33 | */ |
33 | */ |
34 | 34 | ||
Line 71... | Line 71... | ||
71 | int res; |
71 | int res; |
72 | 72 | ||
73 | if (!ktime) { |
73 | if (!ktime) { |
74 | mapping = as_get_mappable_page(PAGE_SIZE); |
74 | mapping = as_get_mappable_page(PAGE_SIZE); |
75 | /* Get the mapping of kernel clock */ |
75 | /* Get the mapping of kernel clock */ |
76 | res = ipc_call_sync_3(PHONE_NS, IPC_M_AS_AREA_RECV, |
76 | res = ipc_call_sync_3(PHONE_NS, IPC_M_AS_AREA_RECV, (sysarg_t) mapping, PAGE_SIZE, SERVICE_MEM_REALTIME, NULL, &rights, NULL); |
77 | mapping, PAGE_SIZE, SERVICE_MEM_REALTIME, |
- | |
78 | NULL,&rights,NULL); |
- | |
79 | if (res) { |
77 | if (res) { |
80 | printf("Failed to initialize timeofday memarea\n"); |
78 | printf("Failed to initialize timeofday memarea\n"); |
81 | _exit(1); |
79 | _exit(1); |
82 | } |
80 | } |
83 | if (! (rights & AS_AREA_READ)) { |
81 | if (! (rights & AS_AREA_READ)) { |
Line 115... | Line 113... | ||
115 | futex_initialize(&futex,0); |
113 | futex_initialize(&futex,0); |
116 | futex_down_timeout(&futex, usec, 0); |
114 | futex_down_timeout(&futex, usec, 0); |
117 | } |
115 | } |
118 | 116 | ||
119 | 117 | ||
120 | /** @} |
118 | /** @} |
121 | */ |
119 | */ |
122 | - | ||
123 | - |