Changes for new SMP-safe kobj method dispatch algorithm.

This commit is contained in:
Doug Rabson 2003-10-16 13:29:26 +00:00
parent ed86674a3d
commit 6c021c7220
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=121134

View File

@ -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