amd64/mp_machdep.c: Fix GCC build after r333059
GCC warns about the potentially confusing use of the binary AND ('&') operator with a left operand containing an addition expression. (The confusion would be around the operator precedence between the + and & infix operators.) The warning is converted into an error with -Werror. No functional change. This construct was actually introduced in r328083, but r333059 (re)moved the closing parentheses. For reference, see http://en.cppreference.com/w/c/language/operator_precedence .
This commit is contained in:
parent
e0de38620c
commit
538184fa2f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=333087
@ -276,8 +276,8 @@ init_secondary(void)
|
||||
pc->pc_tssp = &common_tss[cpu];
|
||||
pc->pc_commontssp = &common_tss[cpu];
|
||||
pc->pc_rsp0 = 0;
|
||||
pc->pc_pti_rsp0 = ((vm_offset_t)&pc->pc_pti_stack +
|
||||
PC_PTI_STACK_SZ * sizeof(uint64_t) & ~0xful);
|
||||
pc->pc_pti_rsp0 = (((vm_offset_t)&pc->pc_pti_stack +
|
||||
PC_PTI_STACK_SZ * sizeof(uint64_t)) & ~0xful);
|
||||
pc->pc_tss = (struct system_segment_descriptor *)&gdt[NGDT * cpu +
|
||||
GPROC0_SEL];
|
||||
pc->pc_fs32p = &gdt[NGDT * cpu + GUFS32_SEL];
|
||||
|
Loading…
Reference in New Issue
Block a user