You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: context.rs
    path of file: ./repos/nebulet/src/arch/x64
    
    the code of the file until where you have to start completion: use core::mem;
use x86_64::registers::rflags::RFlags;

extern {
    fn x86_64_context_switch(prev: *mut ThreadContext, next: *const ThreadContext);
}

#[derive(Deb
    
    pub fn new(stack_top: *mut u8, entry: extern fn()) -> ThreadContext {
        let mut ctx = ThreadContext {
            rflags: RFlags::INTERRUPT_FLAG.bits(),
            rbx: 0,
            r12: 0,
            r13: 0,
            r14: 0,
            r15: 0,
            rbp: stack_top as _,
            rsp: stack_top as _,
        };

        unsafe {
            ctx.push_stack(entry as _);
        }

        ctx
    }