Changeset 39cb79a in mainline for genarch/include


Ignore:
Timestamp:
2005-10-29T13:37:52Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2cd0485d
Parents:
b9b103d3
Message:

sparc64 work.
Link kernel with load address 0x4000.
Add fragment of Linux image header to force SILO to always load the kernel at 0x4000.
Adjust ofw.h and ofw.c to work also on sparc64.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • genarch/include/firmware/ofw/ofw.h

    rb9b103d3 r39cb79a  
    3434#define MAX_OFW_ARGS    10
    3535
    36 typedef __u32 ofw_arg_t;
    37 typedef __u32 ihandle;
    38 typedef __u32 phandle;
     36typedef __native ofw_arg_t;
     37typedef int ihandle;
     38typedef int phandle;
    3939
    4040/** OpenFirmware command structure
     
    4343typedef struct {
    4444        const char *service;          /**< Command name */
    45         __u32 nargs;                  /**< Number of in arguments */
    46         __u32 nret;                   /**< Number of out arguments */
     45        __native nargs;               /**< Number of in arguments */
     46        __native nret;                /**< Number of out arguments */
    4747        ofw_arg_t args[MAX_OFW_ARGS]; /**< List of arguments */
    4848} ofw_args_t;
     
    5454extern void ofw_init(void);
    5555extern void ofw_done(void);
    56 extern __address ofw_call(const char *service, const int nargs, const int nret, ...);
     56extern __native ofw_call(const char *service, const int nargs, const int nret, ...);
    5757extern void ofw_putchar(const char ch);
    5858extern phandle ofw_find_device(const char *name);
Note: See TracChangeset for help on using the changeset viewer.