setos

拙OS
Log | Files | Refs | LICENSE

commit c37dd9abcc01fb7ebbb665d7d689dd164a079199
parent 2f766dda6d634c8d2933ab892c9c3c314f72722b
Author: Matsuda Kenji <info@mtkn.jp>
Date:   Mon,  6 May 2024 13:10:59 +0900

set segment size of event ring segment table

Diffstat:
Msys/src/kernel/main.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/sys/src/kernel/main.c b/sys/src/kernel/main.c @@ -120,6 +120,7 @@ kernel_main(EFI_GRAPHICS_OUTPUT_PROTOCOL *gop) xhc_trb event_ring_segment_table[1] __attribute__((aligned(64))) = {0}; xhc_trb event_ring_segment[16] __attribute__((aligned(16))) = {0}; event_ring_segment_table[0].parameter = (uint64) event_ring_segment; + event_ring_segment_table[0].status = 16; xhc.runtime->IR[0].ERSTSZ = sizeof(event_ring_segment_table) / sizeof(event_ring_segment_table[0]); xhc.runtime->IR[0].ERDP = (uint64) event_ring_segment; xhc.runtime->IR[0].ERSTBA = (uint64) event_ring_segment_table;