-machdep_call_t machdep_call_table[] = {
- {
- thread_get_cthread_self,
- 0
- },
- {
- thread_set_cthread_self,
- 1
- },
- {
- kern_invalid, /* old th_create() */
- 0
- },
-#ifdef FIXME
- {
- PCcreate,
- 3
- },
- {
- PCldt,
- 3
- },
- {
- PCresume,
- 0
- },
- {
- PCcopyBIOSData,
- 1
- },
- {
- PCsizeBIOSExtData,
- 0
- },
- {
- PCcopyBIOSExtData,
- 1
- },
- {
- PCmapBIOSRom,
- 3
- },
+const machdep_call_t machdep_call_table[] = {
+ MACHDEP_CALL_ROUTINE(kern_invalid, 0),
+ MACHDEP_CALL_ROUTINE(kern_invalid, 0),
+ MACHDEP_CALL_ROUTINE(kern_invalid, 0),
+ MACHDEP_CALL_ROUTINE(thread_fast_set_cthread_self, 1),
+ MACHDEP_CALL_ROUTINE(thread_set_user_ldt, 3),
+ MACHDEP_BSD_CALL_ROUTINE(i386_set_ldt, 3),
+ MACHDEP_BSD_CALL_ROUTINE(i386_get_ldt, 3),
+};
+const machdep_call_t machdep_call_table64[] = {
+#if HYPERVISOR
+ MACHDEP_CALL_ROUTINE64(hv_task_trap, 2),
+ MACHDEP_CALL_ROUTINE64(hv_thread_trap, 2),
+#else
+ MACHDEP_CALL_ROUTINE(kern_invalid, 0),
+ MACHDEP_CALL_ROUTINE(kern_invalid, 0),