Skip to content

Commit 694cfe1

Browse files
committed
chore: clean up c files and licensing
Signed-off-by: 0aids <aidanlldanu@gmail.com>
1 parent 426f71e commit 694cfe1

2 files changed

Lines changed: 5 additions & 14 deletions

File tree

components/backtracer/backtracer.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ seL4_Bool fault(microkit_child child, microkit_msginfo msginfo, microkit_msginfo
3333
LOG("Child '%d' Faulted!\n", child);
3434
print_fault_error(child, msginfo);
3535
seL4_UserContext ctxt = { 0 };
36-
// BASE_TCB_CAP is from microkit.h. Not sure if completely portable?
3736
int readRegResult = seL4_TCB_ReadRegisters(BASE_TCB_CAP + child, seL4_True, 0,
3837
sizeof(seL4_UserContext) / sizeof(seL4_Word), &ctxt);
3938
if (readRegResult != 0) {
@@ -47,7 +46,7 @@ seL4_Bool fault(microkit_child child, microkit_msginfo msginfo, microkit_msginfo
4746
int writeRegResult = seL4_TCB_WriteRegisters(BASE_TCB_CAP + child, seL4_True, 0,
4847
sizeof(seL4_UserContext) / sizeof(seL4_Word), &ctxt);
4948
if (writeRegResult != 0) {
50-
LOG("Failed to write registers for setting up backtrace jump! Got %d, "
49+
LOG("Failed to write registers for setting up backtrace jump! Got error value %d, "
5150
"expected %d\n",
5251
writeRegResult, 0);
5352
return seL4_False;

components/backtracer/unwind.ld

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,9 @@
11
/*
2-
* Copyright 2019, Data61
3-
* Commonwealth Scientific and Industrial Research Organisation (CSIRO)
4-
* ABN 41 687 119 230.
5-
*
6-
* This software may be distributed and modified according to the terms of
7-
* the GNU General Public License version 2. Note that NO WARRANTY is provided.
8-
* See "LICENSE_GPLv2.txt" for details.
9-
*
10-
* @TAG(DATA61_GPL)
2+
* Copyright 2026, UNSW
3+
* SPDX-License-Identifier: BSD-2-Clause
114
*/
125
SECTIONS
136
{
14-
/* stolen from config.h in libunwind llvm */
157
.eh_frame :
168
{
179
__eh_frame_start = .;
@@ -20,9 +12,9 @@ SECTIONS
2012
}
2113
.eh_frame_hdr :
2214
{
15+
__eh_frame_hdr_start = .;
2316
KEEP(*(.eh_frame_hdr))
17+
__eh_frame_hdr_end = .;
2418
}
25-
__eh_frame_hdr_start = SIZEOF(.eh_frame_hdr) > 0 ? ADDR(.eh_frame_hdr) : 0;
26-
__eh_frame_hdr_end = SIZEOF(.eh_frame_hdr) > 0 ? . : 0;
2719
}
2820
INSERT AFTER .text;

0 commit comments

Comments
 (0)