Changeset 7f1c620 in mainline for arch/ia32/src/smp/apic.c


Ignore:
Timestamp:
2006-07-04T17:17:56Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0ffa3ef5
Parents:
991779c5
Message:

Replace old u?? types with respective C99 variants (e.g. uint32_t, int64_t, uintptr_t etc.).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/ia32/src/smp/apic.c

    r991779c5 r7f1c620  
    6868 * always be 32-bit, would use byte oriented instructions.
    6969 */
    70 volatile __u32 *l_apic = (__u32 *) 0xfee00000;
    71 volatile __u32 *io_apic = (__u32 *) 0xfec00000;
    72 
    73 __u32 apic_id_mask = 0;
     70volatile uint32_t *l_apic = (uint32_t *) 0xfee00000;
     71volatile uint32_t *io_apic = (uint32_t *) 0xfec00000;
     72
     73uint32_t apic_id_mask = 0;
    7474
    7575static int apic_poll_errors(void);
     
    219219 * @return 0 on failure, 1 on success.
    220220 */
    221 int l_apic_broadcast_custom_ipi(__u8 vector)
     221int l_apic_broadcast_custom_ipi(uint8_t vector)
    222222{
    223223        icr_t icr;
     
    249249 * @return 0 on failure, 1 on success.
    250250 */
    251 int l_apic_send_init_ipi(__u8 apicid)
     251int l_apic_send_init_ipi(uint8_t apicid)
    252252{
    253253        icr_t icr;
     
    306306                for (i = 0; i<2; i++) {
    307307                        icr.lo = l_apic[ICRlo];
    308                         icr.vector = ((__address) ap_boot) / 4096; /* calculate the reset vector */
     308                        icr.vector = ((uintptr_t) ap_boot) / 4096; /* calculate the reset vector */
    309309                        icr.delmod = DELMOD_STARTUP;
    310310                        icr.destmod = DESTMOD_PHYS;
     
    332332        ldr_t ldr;
    333333        dfr_t dfr;
    334         __u32 t1, t2;
     334        uint32_t t1, t2;
    335335
    336336        /* Initialize LVT Error register. */
     
    456456 * @return Local APIC ID.
    457457 */
    458 __u8 l_apic_id(void)
     458uint8_t l_apic_id(void)
    459459{
    460460        l_apic_id_t idreg;
     
    470470 * @return Content of the addressed IO APIC register.
    471471 */
    472 __u32 io_apic_read(__u8 address)
     472uint32_t io_apic_read(uint8_t address)
    473473{
    474474        io_regsel_t regsel;
     
    485485 * @param x Content to be written to the addressed IO APIC register.
    486486 */
    487 void io_apic_write(__u8 address, __u32 x)
     487void io_apic_write(uint8_t address, uint32_t x)
    488488{
    489489        io_regsel_t regsel;
     
    502502 * @param flags Flags.
    503503 */
    504 void io_apic_change_ioredtbl(int pin, int dest, __u8 v, int flags)
     504void io_apic_change_ioredtbl(int pin, int dest, uint8_t v, int flags)
    505505{
    506506        io_redirection_reg_t reg;
     
    528528 * @param irqmask Bitmask of IRQs to be masked (0 = do not mask, 1 = mask).
    529529 */
    530 void io_apic_disable_irqs(__u16 irqmask)
     530void io_apic_disable_irqs(uint16_t irqmask)
    531531{
    532532        io_redirection_reg_t reg;
     
    554554 * @param irqmask Bitmask of IRQs to be unmasked (0 = do not unmask, 1 = unmask).
    555555 */
    556 void io_apic_enable_irqs(__u16 irqmask)
     556void io_apic_enable_irqs(uint16_t irqmask)
    557557{
    558558        int i, pin;
Note: See TracChangeset for help on using the changeset viewer.