Skip to content

Commit

Permalink
fix: removed shift 24
Browse files Browse the repository at this point in the history
  • Loading branch information
AlmuHS committed Jun 29, 2019
1 parent f2b5b4d commit 0690f2d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
13 changes: 6 additions & 7 deletions i386/i386/cpu_number.h
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
/*
/*
* Mach Operating System
* Copyright (c) 1991,1990 Carnegie Mellon University
* All Rights Reserved.
*
*
* Permission to use, copy, modify and distribute this software and its
* documentation is hereby granted, provided that both the copyright
* notice and this permission notice appear in all copies of the
* software, derivative works or modified versions, and any portions
* thereof, and that both notices appear in supporting documentation.
*
*
* CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
* CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
* ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
*
*
* Carnegie Mellon requests users of this software to return to
*
*
* Software Distribution Coordinator or [email protected]
* School of Computer Science
* Carnegie Mellon University
* Pittsburgh PA 15213-3890
*
*
* any improvements or extensions that they make and grant Carnegie Mellon
* the rights to redistribute these changes.
*/
Expand Down Expand Up @@ -50,7 +50,6 @@
test reg, reg; \
jz 0f; \
movl 0x20(reg), reg; \
shrl $24, reg; \
movl apic2kernel(,reg,4), reg; \
0:
#endif
Expand Down
2 changes: 1 addition & 1 deletion i386/i386/mp_desc.c
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ start_other_cpus(void)
{
int cpu;
vm_offset_t stack_start;
int apic_id = lapic->apic_id.r >>24;
int apic_id = lapic->apic_id.r;
extern pt_entry_t *kernel_page_dir;
extern int nb_direct_value;
int i = 0;
Expand Down

0 comments on commit 0690f2d

Please sign in to comment.