diff options
author | nwhitehorn <nwhitehorn@FreeBSD.org> | 2010-05-16 22:01:43 +0000 |
---|---|---|
committer | nwhitehorn <nwhitehorn@FreeBSD.org> | 2010-05-16 22:01:43 +0000 |
commit | b7a63fb85cd07072afa8e91201882f5a9c432e55 (patch) | |
tree | 47e3717519df1d7ce47286e22f711907ca9d62fc /sys/powerpc/ofw | |
parent | a68dd336d5b121f161468847e1c9ebb7eb8b3d4f (diff) | |
download | FreeBSD-src-b7a63fb85cd07072afa8e91201882f5a9c432e55.zip FreeBSD-src-b7a63fb85cd07072afa8e91201882f5a9c432e55.tar.gz |
Pull OF_quiesce() out of the MI Open Firmware layer and entirely into
PPC ofw_machdep.c, in recognition of its state as a machine specific hack.
Requested by: marius
Diffstat (limited to 'sys/powerpc/ofw')
-rw-r--r-- | sys/powerpc/ofw/ofw_real.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/sys/powerpc/ofw/ofw_real.c b/sys/powerpc/ofw/ofw_real.c index 1590eb6..4425ad1 100644 --- a/sys/powerpc/ofw/ofw_real.c +++ b/sys/powerpc/ofw/ofw_real.c @@ -106,7 +106,6 @@ static ssize_t ofw_real_write(ofw_t, ihandle_t instance, const void *addr, static int ofw_real_seek(ofw_t, ihandle_t instance, u_int64_t pos); static caddr_t ofw_real_claim(ofw_t, void *virt, size_t size, u_int align); static void ofw_real_release(ofw_t, void *virt, size_t size); -static void ofw_real_quiesce(ofw_t); static void ofw_real_enter(ofw_t); static void ofw_real_exit(ofw_t); @@ -134,7 +133,6 @@ static ofw_method_t ofw_real_methods[] = { OFWMETHOD(ofw_seek, ofw_real_seek), OFWMETHOD(ofw_claim, ofw_real_claim), OFWMETHOD(ofw_release, ofw_real_release), - OFWMETHOD(ofw_quiesce, ofw_real_quiesce), OFWMETHOD(ofw_enter, ofw_real_enter), OFWMETHOD(ofw_exit, ofw_real_exit), @@ -891,27 +889,6 @@ ofw_real_release(ofw_t ofw, void *virt, size_t size) * Control transfer functions */ -/* Turn off OF background tasks */ -static void -ofw_real_quiesce(ofw_t ofw) -{ - vm_offset_t argsptr; - struct { - cell_t name; - cell_t nargs; - cell_t nreturns; - } args; - - args.name = (cell_t)(uintptr_t)"quiesce"; - args.nargs = 0; - args.nreturns = 0; - - ofw_real_start(); - argsptr = ofw_real_map(&args, sizeof(args)); - openfirmware((void *)argsptr); - ofw_real_stop(); -} - /* Suspend and drop back to the Open Firmware interface. */ static void ofw_real_enter(ofw_t ofw) |