Changeset 26f48570 in mainline for fb/main.c


Ignore:
Timestamp:
2006-06-04T12:42:03Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1160f8d
Parents:
dd641e3
Message:

Fixed incorrect compiling of fb for different archs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fb/main.c

    rdd641e3 r26f48570  
    5757        int initialized = 0;
    5858
    59 #ifdef ia32
     59#ifdef FB_ENABLED
    6060        if (sysinfo_value("fb.kind") == 1) {
    6161                if (fb_init() == 0)
    6262                        initialized = 1;
    63         } else if (sysinfo_value("fb.kind") == 2) {
     63        }
     64#endif
     65#ifdef EGA_ENABLED
     66        if (! initialized && sysinfo_value("fb.kind") == 2) {
    6467                if (ega_init() == 0)
    6568                        initialized = 1;
     
    6770#endif
    6871
    69 #ifdef amd64
    70         if (sysinfo_value("fb.kind") == 1) {
    71                 if (fb_init() == 0)
    72                         initialized = 1;
    73         } else if (sysinfo_value("fb.kind") == 2) {
    74                 if (ega_init() == 0)
    75                         initialized = 1;
    76         }
    77 #endif
    78 
    79 
    80        
    8172        if (!initialized)
    8273                sysio_init();
Note: See TracChangeset for help on using the changeset viewer.