Ignore:
Timestamp:
Dec 20, 2009, 3:02:02 PM (10 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Fix indentation and add licensing and copyright headers to kernel
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/kernel/boot/stage2.c

    r4154 r4158  
     1/*
     2 *  libcaca       
     3 *  libcaca       Colour ASCII-Art library
     4 *  Copyright (c) 2006 Sam Hocevar <sam@hocevar.net>
     5 *                2009 Jean-Yves Lamoureux <jylam@lnxscene.org>
     6 *                All Rights Reserved
     7 *
     8 *  $Id: kernel.h 4154 2009-12-20 13:33:11Z jylam $
     9 *
     10 *  This library is free software. It comes without any warranty, to
     11 *  the extent permitted by applicable law. You can redistribute it
     12 *  and/or modify it under the terms of the Do What The Fuck You Want
     13 *  To Public License, Version 2, as published by Sam Hocevar. See
     14 *  http://sam.zoy.org/wtfpl/COPYING for more details.
     15 */
     16
    117#include "kernel.h"
    218#include "klibc.h"
     
    521
    622
    7 /* Entry point
    8  * bootsect.asm loaded this file at 0x0100:0x0, which is mapped
    9  * at 0x8:0x1000 (selector+8bytes, offset 1000 (0x100 + 0x0)
    10  */
     23/* Entry point bootsect.asm loaded this file at 0x0100:0x0, which is mapped
     24   at 0x8:0x1000 (selector+8bytes, offset 1000 (0x100 + 0x0) */
    1125
    1226/* 0x1000 */
    13 void _start(void) {
     27void _start(void)
     28{
     29    clearscreen();
    1430
    15         clearscreen();
    16    
    1731    init_gdt();
    1832    print("Loading IDT\n");
     
    2236    print("Running kmain()\n");
    2337    sti;
    24         kmain(); /* Call kernel's kmain() */
    2538   
    26     while(1) { /* Never return */
    27                 print("hlt;\n");
     39    kmain();                    /* Call kernel's kmain() */
     40
     41    while (1)
     42    {                           /* Never return */
     43        print("hlt;\n");
    2844    }
    2945}
    30 
Note: See TracChangeset for help on using the changeset viewer.