mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 05:58:57 +00:00
Changes for new SMP-safe kobj method dispatch algorithm.
This commit is contained in:
parent
ed86674a3d
commit
6c021c7220
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=121134
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user