Skip to content

Commit 0690f2d

Browse files
author
AlmuHS
committed
fix: removed shift 24
1 parent f2b5b4d commit 0690f2d

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

i386/i386/cpu_number.h

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
/*
1+
/*
22
* Mach Operating System
33
* Copyright (c) 1991,1990 Carnegie Mellon University
44
* All Rights Reserved.
5-
*
5+
*
66
* Permission to use, copy, modify and distribute this software and its
77
* documentation is hereby granted, provided that both the copyright
88
* notice and this permission notice appear in all copies of the
99
* software, derivative works or modified versions, and any portions
1010
* thereof, and that both notices appear in supporting documentation.
11-
*
11+
*
1212
* CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
1313
* CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
1414
* ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
15-
*
15+
*
1616
* Carnegie Mellon requests users of this software to return to
17-
*
17+
*
1818
* Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
1919
* School of Computer Science
2020
* Carnegie Mellon University
2121
* Pittsburgh PA 15213-3890
22-
*
22+
*
2323
* any improvements or extensions that they make and grant Carnegie Mellon
2424
* the rights to redistribute these changes.
2525
*/
@@ -50,7 +50,6 @@
5050
test reg, reg; \
5151
jz 0f; \
5252
movl 0x20(reg), reg; \
53-
shrl $24, reg; \
5453
movl apic2kernel(,reg,4), reg; \
5554
0:
5655
#endif

i386/i386/mp_desc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ start_other_cpus(void)
528528
{
529529
int cpu;
530530
vm_offset_t stack_start;
531-
int apic_id = lapic->apic_id.r >>24;
531+
int apic_id = lapic->apic_id.r;
532532
extern pt_entry_t *kernel_page_dir;
533533
extern int nb_direct_value;
534534
int i = 0;

0 commit comments

Comments
 (0)