Changeset 2bc137c2 in mainline for kernel/arch/ppc32/src
- Timestamp:
- 2006-11-22T12:36:59Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ccb0cbc
- Parents:
- 33dc0ad
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ppc32/src/ppc32.c
r33dc0ad r2bc137c2 39 39 #include <arch/interrupt.h> 40 40 #include <genarch/fb/fb.h> 41 #include <genarch/fb/visuals.h> 41 42 #include <userspace.h> 42 43 #include <proc/uarg.h> … … 76 77 if (config.cpu_active == 1) { 77 78 /* Initialize framebuffer */ 78 fb_init(bootinfo.screen.addr, bootinfo.screen.width, bootinfo.screen.height, bootinfo.screen.bpp, bootinfo.screen.scanline, false); 79 unsigned int visual; 80 81 switch (bootinfo.screen.bpp) { 82 case 8: 83 visual = VISUAL_INDIRECT_8; 84 break; 85 case 16: 86 visual = VISUAL_RGB_5_5_5; 87 break; 88 case 24: 89 visual = VISUAL_RGB_8_8_8; 90 break; 91 case 32: 92 visual = VISUAL_RGB_0_8_8_8; 93 break; 94 default: 95 panic("Unsupported bits per pixel"); 96 } 97 fb_init(bootinfo.screen.addr, bootinfo.screen.width, bootinfo.screen.height, bootinfo.screen.scanline, visual); 79 98 80 99 /* Initialize IRQ routing */
Note:
See TracChangeset
for help on using the changeset viewer.