Rev 342 | Rev 424 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 342 | Rev 421 | ||
---|---|---|---|
Line 24... | Line 24... | ||
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | */ |
27 | */ |
28 | 28 | ||
29 | #include <arch/drivers/ofw.h> |
29 | #include <genarch/firmware/ofw/ofw.h> |
30 | #include <arch/asm.h> |
30 | #include <arch/asm.h> |
31 | #include <stdarg.h> |
31 | #include <stdarg.h> |
32 | #include <cpu.h> |
32 | #include <cpu.h> |
- | 33 | #include <arch/types.h> |
|
33 | 34 | ||
34 | ofw_entry ofw; |
35 | ofw_entry ofw; |
35 | 36 | ||
36 | phandle ofw_chosen; |
37 | phandle ofw_chosen; |
37 | ihandle ofw_stdout; |
38 | ihandle ofw_stdout; |
Line 50... | Line 51... | ||
50 | { |
51 | { |
51 | ofw_call("exit", 0, 0); |
52 | ofw_call("exit", 0, 0); |
52 | cpu_halt(); |
53 | cpu_halt(); |
53 | } |
54 | } |
54 | 55 | ||
55 | int ofw_call(const char *service, const int nargs, const int nret, ...) |
56 | __address ofw_call(const char *service, const int nargs, const int nret, ...) |
56 | { |
57 | { |
57 | va_list list; |
58 | va_list list; |
58 | ofw_args_t args; |
59 | ofw_args_t args; |
59 | int i; |
60 | int i; |
60 | 61 |