diff options
author | dfr <dfr@FreeBSD.org> | 2003-10-16 13:29:26 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 2003-10-16 13:29:26 +0000 |
commit | 300addad5e8798817da8f6eea92ecd72cb8a881e (patch) | |
tree | c5dbff4742bd3830a9033ded7bd350dcbda57eab /sys/tools | |
parent | bfb4a0a2c1962c877828d6cae42a55c809643f56 (diff) | |
download | FreeBSD-src-300addad5e8798817da8f6eea92ecd72cb8a881e.zip FreeBSD-src-300addad5e8798817da8f6eea92ecd72cb8a881e.tar.gz |
Changes for new SMP-safe kobj method dispatch algorithm.
Diffstat (limited to 'sys/tools')
-rw-r--r-- | sys/tools/makeobjops.awk | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/tools/makeobjops.awk b/sys/tools/makeobjops.awk index 61b2a4e..36768d7 100644 --- a/sys/tools/makeobjops.awk +++ b/sys/tools/makeobjops.awk @@ -283,7 +283,7 @@ function handle_method (static) firstvar = varnames[1]; if (default == "") - default = "0"; + default = "kobj_error_method"; # the method description printh("extern struct kobjop_desc " mname "_desc;"); @@ -293,8 +293,12 @@ function handle_method (static) line_width, length(prototype))); # Print out the method desc + printc("struct kobj_method " mname "_method_default = {"); + printc("\t&" mname "_desc, (kobjop_t) " default); + printc("};\n"); + printc("struct kobjop_desc " mname "_desc = {"); - printc("\t0, (kobjop_t) " default); + printc("\t0, &" mname "_method_default"); printc("};\n"); # Print out the method itself |