Ignore:
Timestamp:
Dec 20, 2009, 5:29:24 PM (10 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Fix libcaca.a linkage (was off by one argument), fill memory with 0xCACA, because caca is so delicious.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/kernel/drivers/processor.c

    r4159 r4160  
    8686    printf("CPU%d\n", processor_info->id);
    8787    printf("Vendor ID : %s\n", processor_info->vendor);
     88    printf("Frequency : ");
    8889    if (processor_info->frequency > 1000000000)
    8990    {
    90         printf("Frequency : ~%dGhz (or something like that)\n",
     91        printf("%dGhz",
    9192               processor_info->frequency / 1000000000);
    9293    }
    9394    else if (processor_info->frequency > 1000000)
    9495    {
    95         printf("Frequency : ~%dMhz (or something like that)\n",
     96        printf("%dMhz",
    9697               processor_info->frequency / 1000000);
    9798    }
    9899    else if (processor_info->frequency > 1000)
    99100    {
    100         printf("Frequency : ~%dKhz (or something like that)\n",
     101        printf("%dKhz\n",
    101102               processor_info->frequency / 1000);
    102103    }
    103104    else
    104105    {
    105         printf("Frequency : ~%dhz (you must be running Bochs)\n",
     106        printf("%dhz\n",
    106107               processor_info->frequency);
    107108    }
     109    printf(" (or something like that)\n");
    108110    printf("Features : 0x%x\n", processor_info->features);
    109111}
Note: See TracChangeset for help on using the changeset viewer.