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/kernel.c

    r4159 r4160  
    2828
    2929extern char const * const * caca_get_display_driver_list(void);
     30extern char end[];
    3031
    3132/* C entry point, called from stage2 */
     
    3738    printf("_start at 0x%x\n", _start);
    3839    printf("kmain() at 0x%x\n", kmain);
    39     printf("Types : char[%d] int[%d] long[%d] unsigned long long[%d]\n", sizeof(char), sizeof(int), sizeof(long), sizeof(unsigned long long));
     40    printf("Types : char[%d] short[%d] int[%d] unsigned long long[%d]\n", sizeof(char), sizeof(short), sizeof(int), sizeof(unsigned long long));
    4041   
    4142    enable_interrupt(1);  // Enable Keyboard Interrupt (IRQ1)
     
    5152    floppy_print_info(&floppy_info);
    5253
    53     //caca_get_display_driver_list();
    54     printf("Entering kernel infinite loop.\n");
     54    /* Caca is delicious */
     55    printf("Filling memory with 0xCACA, starting from 0x%x\n", end);
    5556   
     57    char *ptr = end;
    5658    while (1)
    5759    {
    58        
     60        *ptr = 0xCA;
     61        *ptr++;
    5962    }
    6063}
    6164
     65char end[];
    6266
    6367#endif /* __KERNEL__ */
Note: See TracChangeset for help on using the changeset viewer.