Skip to content

Commit

Permalink
arm64: Fix incorrect #ifdef for purecap kernels in DDB symtab setup
Browse files Browse the repository at this point in the history
This was exposed by the previous upstream commit which finally enabled
the DDB symtab setup code.
  • Loading branch information
bsdjhb committed Mar 15, 2024
1 parent 4ade84a commit 16710b1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sys/arm64/arm64/machdep_boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,9 @@ freebsd_parse_boot_param(struct arm64_bootparams *abp)
#ifdef DDB
ksym_start = MD_FETCH(kmdp, MODINFOMD_SSYM, vm_offset_t);
ksym_end = MD_FETCH(kmdp, MODINFOMD_ESYM, vm_offset_t);
#ifdef __CHERI_PURECAP_KERNEL__
ksym_start = cheri_setaddress(kernel_root_cap, ksym_start);
#ifdef __CHERI_PURE_CAPABILITY__
ksym_start = (vm_pointer_t)cheri_setaddress(kernel_root_cap,
ksym_start);
ksym_start = cheri_setbounds(ksym_start,
(ptraddr_t)ksym_end - (ptraddr_t)ksym_start);
ksym_start = cheri_andperm(ksym_start,
Expand Down

0 comments on commit 16710b1

Please sign in to comment.