Changeset 965dc18 in mainline for kernel/arch/ppc32/src/ppc32.c


Ignore:
Timestamp:
2008-12-05T19:59:03Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
49093a4
Parents:
0258e67
Message:

Merge sparc branch to trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ppc32/src/ppc32.c

    r0258e67 r965dc18  
    9595                        panic("Unsupported bits per pixel");
    9696                }
    97                 fb_init(bootinfo.screen.addr, bootinfo.screen.width, bootinfo.screen.height, bootinfo.screen.scanline, visual);
     97                fb_properties_t prop = {
     98                        .addr = bootinfo.screen.addr,
     99                        .offset = 0,
     100                        .x = bootinfo.screen.width,
     101                        .y = bootinfo.screen.height,
     102                        .scan = bootinfo.screen.scanline,
     103                        .visual = visual,
     104                };
     105                fb_init(&prop);
    98106               
    99107                /* Initialize IRQ routing */
     
    104112               
    105113                /* Initialize I/O controller */
    106                 cuda_init(device_assign_devno(), bootinfo.keyboard.addr + 0x16000, 2 * PAGE_SIZE);
     114                cuda_init(device_assign_devno(),
     115                    bootinfo.keyboard.addr + 0x16000, 2 * PAGE_SIZE);
    107116               
    108117                /* Merge all zones to 1 big zone */
     
    129138void userspace(uspace_arg_t *kernel_uarg)
    130139{
    131         userspace_asm((uintptr_t) kernel_uarg->uspace_uarg, (uintptr_t) kernel_uarg->uspace_stack + THREAD_STACK_SIZE - SP_DELTA, (uintptr_t) kernel_uarg->uspace_entry);
     140        userspace_asm((uintptr_t) kernel_uarg->uspace_uarg,
     141            (uintptr_t) kernel_uarg->uspace_stack +
     142            THREAD_STACK_SIZE - SP_DELTA,
     143            (uintptr_t) kernel_uarg->uspace_entry);
    132144       
    133145        /* Unreachable */
Note: See TracChangeset for help on using the changeset viewer.