Changeset 32443b0 in mainline


Ignore:
Timestamp:
2008-06-04T19:37:52Z (16 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
40257f5
Parents:
82b71ef1
Message:

Make mips32 compile again

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/mips32/include/types.h

    r82b71ef1 r32443b0  
    5858typedef int32_t native_t;
    5959
     60#define PRIp "x"        /**< Format for uintptr_t. */
     61#define PRIs "u"        /**< Format for size_t. */
     62#define PRIc "u"        /**< Format for count_t. */
     63#define PRIi "u"        /**< Format for index_t. */
     64
     65#define PRId8 "d"       /**< Format for int8_t. */
     66#define PRId16 "d"      /**< Format for int16_t. */
     67#define PRId32 "ld"     /**< Format for int32_t. */
     68#define PRId64 "lld"    /**< Format for int64_t. */
     69#define PRIdn "d"       /**< Format for native_t. */
     70
     71#define PRIu8 "u"       /**< Format for uint8_t. */
     72#define PRIu16 "u"      /**< Format for uint16_t. */
     73#define PRIu32 "u"      /**< Format for uint32_t. */
     74#define PRIu64 "llu"    /**< Format for uint64_t. */
     75#define PRIun "u"       /**< Format for unative_t. */
     76
     77#define PRIx8 "x"       /**< Format for hexadecimal (u)int8_t. */
     78#define PRIx16 "x"      /**< Format for hexadecimal (u)int16_t. */
     79#define PRIx32 "x"      /**< Format for hexadecimal (u)uint32_t. */
     80#define PRIx64 "llx"    /**< Format for hexadecimal (u)int64_t. */
     81#define PRIxn "x"       /**< Format for hexadecimal (u)native_t. */
     82
    6083/** Page Table Entry. */
    6184typedef struct {
  • kernel/generic/include/typedefs.h

    r82b71ef1 r32443b0  
    3636#define KERN_TYPEDEFS_H_
    3737
     38#include <arch/types.h>
     39
    3840#define NULL 0
    3941#define false 0
  • uspace/lib/libc/arch/mips32/src/entry.s

    r82b71ef1 r32443b0  
    5353        nop
    5454       
    55         jal __io_init
    56         nop
    57        
    5855        jal main
    5956        nop
     
    6360.end
    6461
    65 .ent __entry_driver
    66 __entry_driver:
    67         .frame $sp, 32, $31
    68         .cpload $25
    69        
    70        
    71         # Mips o32 may store its arguments on stack, make space (16 bytes),
    72         # so that it could work with -O0
    73         # Make space additional 16 bytes for the stack frame
    74 
    75         addiu $sp, -32
    76         .cprestore 16   # Allow PIC code
    77        
    78         jal __main
    79         nop
    80        
    81         jal main
    82         nop
    83        
    84         jal __exit
    85         nop
    86 .end
    8762# Alignment of output section data to 0x4000
    8863.section .data
Note: See TracChangeset for help on using the changeset viewer.