[kernel] Fix up formatting

Two minor issues: scheduler::prune wasn't formatted correctly, and
j6/caps.h was not using the ull prefix when shifting 64 bit numbers.
(It's doubtful an object would get more than 32 caps any time soon, but
better to be correct.)
This commit is contained in:
Justin C. Miller
2022-01-30 20:52:43 -08:00
parent 9945ebab34
commit 343622d4e5
2 changed files with 4 additions and 3 deletions

View File

@@ -18,11 +18,11 @@ for obj in syscalls.exposes:
for cap in obj.caps:
name = f"j6_cap_{obj.name}_{cap}"
cog.outl(f"#define {name:<30} (1 << {i})")
cog.outl(f"#define {name:<30} (1ull << {i})")
i += 1
name = f"j6_cap_{obj.name}_all"
cog.outl(f"#define {name:<30} ((1<<{i})-1)")
cog.outl(f"#define {name:<30} ((1ull<<{i})-1)")
cog.outl()
]]]*/
/// [[[end]]]