- Add ':' as a separator between the OpenFirmware device space and
the file path. Commonly used on Macs e.g. "hd:9". - Update the ofw_setcurrdev routine to match libstand setenv prototype Not objected to by: sparc64
This commit is contained in:
parent
2504e68699
commit
97c52522b2
@ -47,7 +47,8 @@ ofw_getdev(void **vdev, const char *devspec, const char **path)
|
||||
* device, go with the current device.
|
||||
*/
|
||||
if ((devspec == NULL) ||
|
||||
(strchr(devspec, '@') == NULL)) {
|
||||
((strchr(devspec, '@') == NULL) &&
|
||||
(strchr(devspec, ':') == NULL))) {
|
||||
|
||||
if (((rv = ofw_parsedev(dev, getenv("currdev"), NULL)) == 0) &&
|
||||
(path != NULL))
|
||||
@ -112,7 +113,7 @@ ofw_parsedev(struct ofw_devdesc **dev, const char *devspec, const char **path)
|
||||
}
|
||||
|
||||
int
|
||||
ofw_setcurrdev(struct env_var *ev, int flags, void *value)
|
||||
ofw_setcurrdev(struct env_var *ev, int flags, const void *value)
|
||||
{
|
||||
struct ofw_devdesc *ncurr;
|
||||
int rv;
|
||||
|
@ -36,7 +36,7 @@ struct ofw_devdesc {
|
||||
};
|
||||
|
||||
extern int ofw_getdev(void **vdev, const char *devspec, const char **path);
|
||||
extern int ofw_setcurrdev(struct env_var *ev, int flags, void *value);
|
||||
extern ev_sethook_t ofw_setcurrdev;
|
||||
|
||||
extern struct devsw ofwdisk;
|
||||
extern struct netif_driver ofwnet;
|
||||
|
Loading…
Reference in New Issue
Block a user