Date: Mon, 29 Sep 2003 19:30:52 -0700 (PDT) From: Peter Wemm <peter@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 38834 for review Message-ID: <200309300230.h8U2Uq0U030961@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=38834 Change 38834 by peter@peter_hammer on 2003/09/29 19:30:26 hack! hack! Affected files ... .. //depot/projects/hammer/sys/amd64/amd64/mp_machdep.c#8 edit Differences ... ==== //depot/projects/hammer/sys/amd64/amd64/mp_machdep.c#8 (text+ko) ==== @@ -157,7 +157,9 @@ static void set_logical_apic_ids(void); static int start_all_aps(u_int boot_addr); +#ifdef SMP_ME_HARDER static void install_ap_tramp(u_int boot_addr); +#endif static int start_ap(int apic_id, u_int boot_addr); void ap_init(void); static void release_aps(void *dummy); @@ -312,6 +314,7 @@ /* XXX: List I/O APICs? They are done differently now. */ } +#ifdef SMP_ME_HARDER /* * AP cpu's call this to sync up protected mode. */ @@ -359,6 +362,7 @@ cr0 &= ~(CR0_CD | CR0_NW | CR0_EM); load_cr0(cr0); } +#endif /******************************************************************* * local functions and data @@ -401,6 +405,7 @@ static int start_all_aps(u_int boot_addr) { +#ifdef SMP_ME_HARDER u_char mpbiosreason; u_long mpbioswarmvec; struct pcpu *pc; @@ -500,6 +505,7 @@ PTD[i] = 0; invltlb(); +#endif /* number of APs actually started */ return mp_naps; } @@ -508,6 +514,7 @@ * load the 1st level AP boot code into base memory. */ +#ifdef SMP_ME_HARDER /* targets for relocation */ extern void bigJump(void); extern void bootCodeSeg(void); @@ -560,6 +567,14 @@ *dst16 = (u_int) boot_addr & 0xffff; *dst8 = ((u_int) boot_addr >> 16) & 0xff; } +#endif + +void compile_hack(void); +void +compile_hack() +{ + start_ap(0, bootAP); +} /* * This function starts the AP (application processor) identified
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200309300230.h8U2Uq0U030961>