Main Page | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members | Related Pages

kernel/kmain.c File Reference

Implementaion: Main kernel loop. More...

#include <sys/mm.h>
#include <sys/time.h>
#include <sys/tm.h>
#include <sys/irq.h>
#include <sys/lcd.h>
#include <sys/dsensor.h>
#include <sys/dmotor.h>
#include <sys/dsound.h>
#include <sys/lnp.h>
#include <sys/lnp-logical.h>
#include <sys/program.h>
#include <rom/system.h>
#include <dbutton.h>
#include <string.h>
#include <conio.h>
#include <unistd.h>

Include dependency graph for kmain.c:

Include dependency graph

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 the user main()

void show_on (void)
 show ON string

void show_off (void)
 show OFF string

void kmain (void) __attribute__((noreturn))
 the beginning of everything


Variables

unsigned char * firmware_string = "Do you byte, when I knock?"
 firmware recognition string

char __bss
 the start of the uninitialized data segment

char __bss_end
 the end of the uninitialized data segment


Detailed Description

Implementaion: Main kernel loop.

Author:
Markus L. Noga <markus@noga.de>

Definition in file kmain.c.


Function Documentation

void kmain void   ) 
 

the beginning of everything

initially called by ROM

Definition at line 120 of file kmain.c.

References __bss, __bss_end, BUTTON_ONOFF, BUTTON_PROGRAM, cls(), dbutton(), DEFAULT_STACK_SIZE, delay(), dkey_multi, dm_init(), dm_shutdown(), ds_init(), ds_shutdown(), dsound_init(), execi(), KEY_ANY, KEY_ONOFF, KEY_PRGM, lcd_clear(), lcd_init(), lcd_power_off(), lcd_refresh(), lcd_show(), lnp_init(), lnp_logical_init(), lnp_logical_shutdown(), main(), man_run, memset(), mm_init(), power_init(), power_off(), PRESSED, PRIO_NORMAL, program_init(), program_shutdown(), reset_vector, rom_reset(), rom_reset_vector, show_off(), show_on(), shutoff_init(), systime_init(), systime_shutdown(), tm_init(), and tm_start().

int main int  argc,
char **  argv
 

the user main()

Referenced by kmain().

void show_off void   )  [inline]
 

show OFF string

Definition at line 96 of file kmain.c.

References cls(), cputc_native_2(), cputc_native_3(), cputc_native_4(), cputs(), lcd_digit, and lcd_refresh().

Referenced by kmain().

void show_on void   )  [inline]
 

show ON string

Definition at line 73 of file kmain.c.

References cls(), cputc_native_0(), cputc_native_1(), cputc_native_2(), cputc_native_3(), cputc_native_4(), cputs(), delay(), lcd_digit, and lcd_refresh().

Referenced by kmain().


Variable Documentation

char __bss
 

the start of the uninitialized data segment

Definition at line 60 of file kmain.c.

Referenced by kmain().

char __bss_end
 

the end of the uninitialized data segment

Definition at line 61 of file kmain.c.

Referenced by kmain().

unsigned char* firmware_string = "Do you byte, when I knock?"
 

firmware recognition string

the ROM checks for this string when validating new firmware

Definition at line 58 of file kmain.c.


brickOS is released under the Mozilla Public License.
Original code copyright 1998-2002 by the authors.

Generated on Sun Jul 27 00:10:55 2003 for brickOS Kernel Developer by doxygen 1.3.2