Changeset 06e1e95 in mainline for kernel/genarch/src


Ignore:
Timestamp:
2006-09-14T17:09:21Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f1d1f5d3
Parents:
e5ecc02
Message:

C99 compliant header guards (hopefully) everywhere in the kernel.
Formatting and indentation changes.
Small improvements in sparc64.

Location:
kernel/genarch/src
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • kernel/genarch/src/acpi/acpi.c

    re5ecc02 r06e1e95  
    2727 */
    2828
    29 
    30  /** @addtogroup genarch
     29/** @addtogroup genarch
    3130 * @{
    3231 */
     
    184183}
    185184
    186 
    187  /** @}
     185/** @}
    188186 */
    189 
  • kernel/genarch/src/acpi/madt.c

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup genarch       
     29/** @addtogroup genarch
    3030 * @{
    3131 */
     
    244244#endif /* CONFIG_SMP */
    245245
    246  /** @}
    247  */
    248 
     246/** @}
     247 */
  • kernel/genarch/src/fb/fb.c

    re5ecc02 r06e1e95  
    305305       
    306306        switch (ch) {
    307                 case '\n':
    308                         invert_cursor();
    309                         position += columns;
    310                         position -= position % columns;
    311                         break;
    312                 case '\r':
    313                         invert_cursor();
    314                         position -= position % columns;
    315                         break;
    316                 case '\b':
    317                         invert_cursor();
    318                         if (position % columns)
    319                                 position--;
    320                         break;
    321                 case '\t':
    322                         invert_cursor();
    323                         do {
    324                                 draw_char(' ');
    325                                 position++;
    326                         } while ((position % 8) && position < columns * rows);
    327                         break;
    328                 default:
    329                         draw_char(ch);
     307        case '\n':
     308                invert_cursor();
     309                position += columns;
     310                position -= position % columns;
     311                break;
     312        case '\r':
     313                invert_cursor();
     314                position -= position % columns;
     315                break;
     316        case '\b':
     317                invert_cursor();
     318                if (position % columns)
     319                        position--;
     320                break;
     321        case '\t':
     322                invert_cursor();
     323                do {
     324                        draw_char(' ');
    330325                        position++;
     326                } while ((position % 8) && position < columns * rows);
     327                break;
     328        default:
     329                draw_char(ch);
     330                position++;
    331331        }
    332332       
     
    359359{
    360360        switch (bpp) {
    361                 case 8:
    362                         rgb2scr = rgb_1byte;
    363                         scr2rgb = byte1_rgb;
    364                         pixelbytes = 1;
    365                         break;
    366                 case 16:
    367                         rgb2scr = rgb_2byte;
    368                         scr2rgb = byte2_rgb;
    369                         pixelbytes = 2;
    370                         break;
    371                 case 24:
    372                         rgb2scr = rgb_3byte;
    373                         scr2rgb = byte3_rgb;
    374                         if (align)
    375                                 pixelbytes = 4;
    376                         else
    377                                 pixelbytes = 3;
    378                         break;
    379                 case 32:
    380                         rgb2scr = rgb_4byte;
    381                         scr2rgb = byte4_rgb;
     361        case 8:
     362                rgb2scr = rgb_1byte;
     363                scr2rgb = byte1_rgb;
     364                pixelbytes = 1;
     365                break;
     366        case 16:
     367                rgb2scr = rgb_2byte;
     368                scr2rgb = byte2_rgb;
     369                pixelbytes = 2;
     370                break;
     371        case 24:
     372                rgb2scr = rgb_3byte;
     373                scr2rgb = byte3_rgb;
     374                if (align)
    382375                        pixelbytes = 4;
    383                         break;
    384                 default:
    385                         panic("Unsupported bpp");
     376                else
     377                        pixelbytes = 3;
     378                break;
     379        case 32:
     380                rgb2scr = rgb_4byte;
     381                scr2rgb = byte4_rgb;
     382                pixelbytes = 4;
     383                break;
     384        default:
     385                panic("Unsupported bpp");
    386386        }
    387387       
  • kernel/genarch/src/fb/font-8x16.c

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup genarch       
     29/** @addtogroup genarch
    3030 * @{
    3131 */
     
    46484648};
    46494649
    4650  /** @}
     4650/** @}
    46514651 */
    4652 
  • kernel/genarch/src/kbd/ns16550.c

    re5ecc02 r06e1e95  
    105105
    106106/** Wait until the controller reads its data. */
    107 void ns16550_wait(void) {
     107void ns16550_wait(void)
     108{
    108109}
    109110
  • kernel/genarch/src/mm/as_pt.c

    re5ecc02 r06e1e95  
    142142/** @}
    143143 */
    144 
  • kernel/genarch/src/softint/division.c

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup genarch       
     29/** @addtogroup genarch
    3030 * @{
    3131 */
     
    192192}
    193193
    194 
    195 
    196  /** @}
     194/** @}
    197195 */
    198 
Note: See TracChangeset for help on using the changeset viewer.