summaryrefslogtreecommitdiff
path: root/kernel/src/check
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/src/check')
-rw-r--r--kernel/src/check/panic.c2
-rw-r--r--kernel/src/check/ubsan.c14
2 files changed, 9 insertions, 7 deletions
diff --git a/kernel/src/check/panic.c b/kernel/src/check/panic.c
index 7cfaa56..66a73c7 100644
--- a/kernel/src/check/panic.c
+++ b/kernel/src/check/panic.c
@@ -9,7 +9,7 @@ __attribute__((noreturn)) void panic(const char *s, ...)
{
set_color(&main_fb, RED, BLACK);
printf("KERNEL PANIC\n");
- // set_color(&main_fb, WHITE, BLACK);
+ /* set_color(&main_fb, WHITE, BLACK); */
va_list list;
va_start(list, s);
vprintf(s, list);
diff --git a/kernel/src/check/ubsan.c b/kernel/src/check/ubsan.c
index dc6c4b4..eb7721e 100644
--- a/kernel/src/check/ubsan.c
+++ b/kernel/src/check/ubsan.c
@@ -247,10 +247,11 @@ void __ubsan_handle_vla_bound_not_positive(void *data_raw, void *bound_raw)
ABORT_VARIANT_VP_VP(vla_bound_not_positive);
struct ubsan_float_cast_overflow_data {
- // TODO: Remove this GCC 5.x compatibility after switching to GCC 6.x. The
- // GCC developers accidentally forgot the source location. Their
- // libubsan probes to see if it looks like a path, but we don't need
- // to maintain compatibility with multiple gcc releases. See below.
+ /* TODO: Remove this GCC 5.x compatibility after switching to GCC 6.x. The
+ * GCC developers accidentally forgot the source location. Their
+ * libubsan probes to see if it looks like a path, but we don't need
+ * to maintain compatibility with multiple gcc releases. See below.
+ */
#if !(defined(__GNUC__) && __GNUC__ < 6)
struct ubsan_source_location location;
#endif
@@ -324,8 +325,9 @@ struct ubsan_nonnull_arg_data {
struct ubsan_source_location attr_location;
};
-// TODO: GCC's libubsan does not have the second parameter, but its builtin
-// somehow has it and conflict if we don't match it.
+/* TODO: GCC's libubsan does not have the second parameter, but its builtin
+ * somehow has it and conflict if we don't match it.
+ */
void __ubsan_handle_nonnull_arg(void *data_raw, intptr_t index_raw)
{
struct ubsan_nonnull_arg_data *data =