Changeset 0b99e40 in mainline for init/init.c


Ignore:
Timestamp:
2006-05-28T18:22:10Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2d1fde3b
Parents:
7f5b37a
Message:

Rough implementation of gettimeofday.
IPC_M_RECV_AS doesn't allow us to specify additional user parametrs. That
doesn't seem to be very configurable :-/

File:
1 edited

Legend:

Unmodified
Added
Removed
  • init/init.c

    r7f5b37a r0b99e40  
    4545#include <ipc/fb.h>
    4646#include <async.h>
     47#include <time.h>
    4748
    4849int a;
     
    402403}
    403404
     405static void test_time(void)
     406{
     407        int rc;
     408        struct timeval tv;
     409        struct timezone tz;
     410
     411        while (1) {
     412                rc = gettimeofday(&tv, &tz);
     413                printf("Rc: %d, Secs: %d, Usecs: %d\n", rc, tv.tv_sec,
     414                       tv.tv_usec);
     415        }
     416}
    404417
    405418int main(int argc, char *argv[])
     
    421434//      test_pci();
    422435//      test_kbd();
    423         test_async_kbd();
     436        test_time();
     437//      test_async_kbd();
    424438//      test_fb();
    425439
Note: See TracChangeset for help on using the changeset viewer.