Changeset 880de6e in mainline


Ignore:
Timestamp:
2005-11-28T16:12:35Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5ff4f6b
Parents:
5803145
Message:

Clean up.

Files:
6 edited

Legend:

Unmodified
Added
Removed
  • arch/ia32/src/smp/apic.c

    r5803145 r880de6e  
    4444 * Tested on:
    4545 *      Bochs 2.0.2 - Bochs 2.2 with 2-8 CPUs
    46  *      Simics 2.0.28 - Simics 2.2.19 2-8 CPUs
     46 *      Simics 2.0.28 - Simics 2.2.19 2-15 CPUs
    4747 *      VMware Workstation 5.5 with 2 CPUs
    4848 *      ASUS P/I-P65UP5 + ASUS C-P55T2D REV. 1.41 with 2x 200Mhz Pentium CPUs
  • arch/ia64/src/drivers/keyboard.c

    r5803145 r880de6e  
    11/*
    2  * Copyright (C) 2003 Josef Cejka
    3  * Copyright (C) 2005 Jakub Jermar
    42 * Copyright (C) 2005 Jakub Vana
    53 * All rights reserved.
     
    4745};
    4846
    49 
    50 int kb_disable;
    51 
     47bool kb_disable;
    5248
    5349/** Initialize keyboard subsystem. */
     
    5955}
    6056
    61 /** Process keyboard interrupt. */
     57/** Ask keyboard if a key was pressed. */
    6258void poll_keyboard(void)
    6359{
    64         if(kb_disable) return;
    6560        char ch;
    6661
     62        if (kb_disable)
     63                return;
     64
    6765        ch = ski_getchar();
    68         if(ch=='\r') ch='\n';
    69         if(ch) chardev_push_character(&kbrd, ch);
    70        
     66        if(ch == '\r')
     67                ch = '\n';
     68        if (ch)
     69                chardev_push_character(&kbrd, ch);
    7170}
    7271
     
    7473void keyboard_enable(void)
    7574{
    76         kb_disable=false;
     75        kb_disable = false;
    7776}
    7877
     
    8079void keyboard_disable(void)
    8180{
    82         kb_disable=true;       
     81        kb_disable = true;     
    8382}
  • arch/ia64/src/ski/ski.c

    r5803145 r880de6e  
    6666}
    6767
    68 
    69 /** Display character on debug console
     68/** Ask debug console if a key was pressed.
    7069 *
    7170 * Use SSC (Simulator System Call) to
    7271 * get character from debug console.
    73  * Non blocking HW call
    74  * @return Returns ascii code of pressed key or 0 if no key pressed
     72 *
     73 * This call is non-blocking.
     74 *
     75 * @return ASCII code of pressed key or 0 if no key pressed.
    7576 */
    7677__s32 ski_getchar(void)
  • doc/arch/ia32

    r5803145 r880de6e  
    2020                o 2x-8x 686 CPU
    2121        o Simics 2.0.28 - Simics 2.2.19
    22                 o 2x-8x Pentium 4 CPU
     22                o 2x-15x Pentium 4 CPU
    2323        o VMware Workstation 5.5
    2424                o 2x CPU
  • generic/src/main/kinit.c

    r5803145 r880de6e  
    5858#endif /* CONFIG_TEST */
    5959
    60 
    61 
     60/** Kernel initialization thread.
     61 *
     62 * kinit takes care of higher level kernel
     63 * initialization (i.e. thread creation,
     64 * userspace initialization etc.).
     65 *
     66 * @param arg Not used.
     67 */
    6268void kinit(void *arg)
    6369{
  • generic/src/main/main.c

    r5803145 r880de6e  
    7777context_t ctx;
    7878
    79 /*
    80  * These 'hardcoded' variables will be intialised by
     79/**
     80 * These 'hardcoded' variables will be intialized by
    8181 * the linker or the low level assembler code with
    8282 * appropriate sizes and addresses.
     
    8989size_t init_size = 0;
    9090
    91 /*
     91/**
    9292 * Size of memory in bytes taken by kernel and heap.
    9393 */
    9494static size_t kernel_size;
    9595
    96 /*
     96/**
    9797 * Size of heap.
    9898 */
     
    100100
    101101
    102 /*
     102/**
    103103 * Extra space between heap and stack
    104104 * enforced by alignment requirements.
Note: See TracChangeset for help on using the changeset viewer.