- Timestamp:
- 2006-08-04T08:21:30Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b006a2c8
- Parents:
- d7e3fa66
- Location:
- boot/arch/sparc64/loader
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/sparc64/loader/main.c
rd7e3fa66 rb4fa652 32 32 #include "_components.h" 33 33 #include <ofw.h> 34 #include "ofwarch.h" 34 35 #include <align.h> 35 36 … … 60 61 } 61 62 bootinfo.screen.addr = ofw_translate(bootinfo.screen.addr); 63 /* transform scanline to bytes with respect to potential alignment */ 64 bootinfo.screen.scanline = bootinfo.screen.scanline*bpp2align[bootinfo.screen.bpp >> 3]; 62 65 63 66 if (!ofw_keyboard(&bootinfo.keyboard)) 64 67 printf("Error: unable to get keyboard properties\n"); 65 68 66 69 printf("\nDevice statistics\n"); 67 70 printf(" memory: %dM\n", bootinfo.memmap.total>>20); -
boot/arch/sparc64/loader/ofwarch.c
rd7e3fa66 rb4fa652 36 36 #include <printf.h> 37 37 38 int bpp2align[] = { 39 [0] = 0, /** Invalid bpp. */ 40 [1] = 1, /** 8bpp is not aligned. */ 41 [2] = 2, /** 16bpp is naturally aligned. */ 42 [3] = 4, /** 24bpp is aligned on 4 byte boundary. */ 43 [4] = 4, /** 32bpp is naturally aligned. */ 44 }; 45 38 46 void write(const char *str, const int len) 39 47 { -
boot/arch/sparc64/loader/ofwarch.h
rd7e3fa66 rb4fa652 33 33 #define OFW_SIZE_CELLS 2 34 34 35 extern int bpp2align[]; 36 35 37 #endif
Note:
See TracChangeset
for help on using the changeset viewer.