Changeset ff3b3197 in mainline for generic/src/main/kinit.c


Ignore:
Timestamp:
2005-11-25T22:58:38Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f4338d2
Parents:
78c32b4
Message:

Implement basic kernel console command recognition.
Commands without arguments are now recognized.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/src/main/kinit.c

    r78c32b4 rff3b3197  
    4242#include <arch/mm/page.h>
    4343#include <mm/vm.h>
     44#include <mm/frame.h>
    4445#include <print.h>
    4546#include <memstr.h>
     47#include <console/console.h>
    4648
    4749#ifdef CONFIG_SMP
     
    5658#endif /* CONFIG_TEST */
    5759
    58 #include <mm/frame.h>
     60
    5961
    6062void kinit(void *arg)
     
    169171#endif /* CONFIG_TEST */
    170172
    171         while (1) {
    172                 thread_sleep(1);
    173                 printf("kinit... ");
     173        if (!stdin) {
     174                while (1) {
     175                        thread_sleep(1);
     176                        printf("kinit... ");
     177                }
    174178        }
    175179
Note: See TracChangeset for help on using the changeset viewer.