Changeset 39cb79a in mainline for genarch/src
- Timestamp:
- 2005-10-29T13:37:52Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2cd0485d
- Parents:
- b9b103d3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
genarch/src/firmware/ofw/ofw.c
rb9b103d3 r39cb79a 50 50 void ofw_done(void) 51 51 { 52 ofw_call("exit", 0, 0);52 (void) ofw_call("exit", 0, 0); 53 53 cpu_halt(); 54 54 } 55 55 56 __ addressofw_call(const char *service, const int nargs, const int nret, ...)56 __native ofw_call(const char *service, const int nargs, const int nret, ...) 57 57 { 58 58 va_list list; … … 82 82 return; 83 83 84 ofw_call("write", 3, 1, ofw_stdout, &ch, 1);84 (void) ofw_call("write", 3, 1, ofw_stdout, &ch, 1); 85 85 } 86 86 87 87 phandle ofw_find_device(const char *name) 88 88 { 89 return ofw_call("finddevice", 1, 1, name);89 return (phandle) ofw_call("finddevice", 1, 1, name); 90 90 } 91 91 92 92 int ofw_get_property(const phandle device, const char *name, void *buf, const int buflen) 93 93 { 94 return ofw_call("getprop", 4, 1, device, name, buf, buflen);94 return (int) ofw_call("getprop", 4, 1, device, name, buf, buflen); 95 95 } 96 96
Note:
See TracChangeset
for help on using the changeset viewer.