From f766826fe3b82462c6397ec849dc2243f4bdfeee Mon Sep 17 00:00:00 2001 From: Mark Johnston Date: Sat, 25 Sep 2021 10:18:52 -0400 Subject: [PATCH] amd64: Remove proc0_tf, the bootstrap trapframe It no longer serves any purpose as thread0's td_frame field is now initialized during fpuinitstate(). No functional change intended. Reviewed by: kib MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D32057 --- sys/amd64/amd64/machdep.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index 5c9b64526609..c629db566528 100644 --- a/sys/amd64/amd64/machdep.c +++ b/sys/amd64/amd64/machdep.c @@ -202,7 +202,6 @@ long realmem = 0; struct kva_md_info kmi; -static struct trapframe proc0_tf; struct region_descriptor r_idt; struct pcpu *__pcpu; @@ -1584,7 +1583,6 @@ hammer_time(u_int64_t modulep, u_int64_t physfree) /* setup proc 0's pcb */ thread0.td_pcb->pcb_flags = 0; - thread0.td_frame = &proc0_tf; env = kern_getenv("kernelname"); if (env != NULL)