gen_kobject_list: allow object data to be C code
The data value in a kernel object structure is specific to that type of object. Allow this to be a reference to another C symbol or other compiled code by populating as a string. Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
c235e167fa
commit
a00eff731c
|
@ -183,10 +183,10 @@ def write_gperf_table(fp, eh, objs, static_begin, static_end):
|
|||
fp.write(val)
|
||||
|
||||
fp.write(
|
||||
"\",{},%s,%s,%d\n" %
|
||||
"\",{},%s,%s,%s\n" %
|
||||
(obj_type,
|
||||
"K_OBJ_FLAG_INITIALIZED" if initialized else "0",
|
||||
ko.data))
|
||||
str(ko.data)))
|
||||
|
||||
if obj_type == "K_OBJ_THREAD":
|
||||
idx = math.floor(ko.data / 8)
|
||||
|
|
Loading…
Reference in a new issue