spinup_ap.c (4c87aefe) spinup_ap.c (9c3024a3)
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3 *
4 * Copyright (c) 2012 NetApp, Inc.
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 86 unchanged lines hidden (view full) ---

95 * Set up the processor state in power-on 16-bit mode, with the CS:IP
96 * init'd to the specified low-mem 4K page.
97 */
98 error = vm_set_capability(ctx, newcpu, VM_CAP_UNRESTRICTED_GUEST, 1);
99 assert(error == 0);
100
101 spinup_ap_realmode(ctx, newcpu, &rip);
102
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3 *
4 * Copyright (c) 2012 NetApp, Inc.
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 86 unchanged lines hidden (view full) ---

95 * Set up the processor state in power-on 16-bit mode, with the CS:IP
96 * init'd to the specified low-mem 4K page.
97 */
98 error = vm_set_capability(ctx, newcpu, VM_CAP_UNRESTRICTED_GUEST, 1);
99 assert(error == 0);
100
101 spinup_ap_realmode(ctx, newcpu, &rip);
102
103#ifdef __FreeBSD__
103 fbsdrun_addcpu(ctx, vcpu, newcpu, rip);
104 fbsdrun_addcpu(ctx, vcpu, newcpu, rip);
105#else
106 fbsdrun_addcpu(ctx, vcpu, newcpu, rip, false);
107#endif
104
105 return (newcpu);
106}
108
109 return (newcpu);
110}