Changeset 9a5b556 in mainline for boot/genarch


Ignore:
Timestamp:
2006-09-12T13:03:55Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6eabb6e6
Parents:
7bb6b06
Message:

sparc64 work:

  • find a CPU node and read its clock_frequency attribute
  • implement asm_delay_loop()
  • set TICK_COMPARE register according to processor frequency
  • small improvements at random places

OpenFirmware work:

  • two new functions for walking the device tree

Generic boot loader work:

  • added basic string functions

Usual pile of indentation and formatting fixes.

Location:
boot/genarch
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • boot/genarch/ofw.c

    r7bb6b06 r9a5b556  
    146146}
    147147
     148phandle ofw_get_child_node(const phandle node)
     149{
     150        return ofw_call("child", 1, 1, NULL, node);
     151}
     152
     153phandle ofw_get_peer_node(const phandle node)
     154{
     155        return ofw_call("peer", 1, 1, NULL, node);
     156}
    148157
    149158static ihandle ofw_open(const char *name)
  • boot/genarch/ofw.h

    r7bb6b06 r9a5b556  
    9191extern uintptr_t ofw_cif;
    9292
     93
     94extern phandle ofw_chosen;
     95extern ihandle ofw_stdout;
     96extern phandle ofw_root;
     97extern ihandle ofw_mmu;
     98extern phandle ofw_memory;
    9399extern phandle ofw_aliases;
    94100
    95101extern void ofw_init(void);
     102
    96103extern void ofw_write(const char *str, const int len);
    97104
    98105extern int ofw_get_property(const phandle device, const char *name, const void *buf, const int buflen);
     106
     107extern phandle ofw_get_child_node(const phandle node);
     108extern phandle ofw_get_peer_node(const phandle node);
    99109extern phandle ofw_find_device(const char *name);
    100110
Note: See TracChangeset for help on using the changeset viewer.