- Timestamp:
- 2008-07-27T15:15:48Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 94fa807d
- Parents:
- 46d8eb9
- Location:
- uspace/srv/fb
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fb/Makefile
r46d8eb9 r113c677 51 51 CFLAGS += -DFB_ENABLED 52 52 endif 53 54 53 ifeq ($(ARCH), ia32) 55 54 SOURCES += ega.c … … 61 60 endif 62 61 ifeq ($(ARCH), mips32) 63 CFLAGS += -DFB_INVERT_ENDIAN 62 SOURCES += msim.c 63 CFLAGS += -DMSIM_ENABLED -DFB_INVERT_ENDIAN 64 64 endif 65 65 -
uspace/srv/fb/main.c
r46d8eb9 r113c677 38 38 #include "fb.h" 39 39 #include "ega.h" 40 #include "msim.h" 40 41 #include "main.h" 41 42 … … 59 60 60 61 ipcarg_t phonead; 61 int initialized = 0;62 bool initialized = false; 62 63 63 64 #ifdef FB_ENABLED 64 65 if (sysinfo_value("fb.kind") == 1) { 65 66 if (fb_init() == 0) 66 initialized = 1;67 initialized = true; 67 68 } 68 69 #endif 69 70 #ifdef EGA_ENABLED 70 if ( !initialized && sysinfo_value("fb.kind") == 2) {71 if ((!initialized) && (sysinfo_value("fb.kind") == 2)) { 71 72 if (ega_init() == 0) 72 initialized = 1; 73 initialized = true; 74 } 75 #endif 76 #ifdef MSIM_ENABLED 77 if ((!initialized) && (sysinfo_value("fb.kind") == 3)) { 78 if (msim_init() == 0) 79 initialized = true; 73 80 } 74 81 #endif
Note:
See TracChangeset
for help on using the changeset viewer.