From owner-freebsd-current@freebsd.org Sat May 26 10:00:28 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8AD61F6FCC3 for ; Sat, 26 May 2018 10:00:28 +0000 (UTC) (envelope-from johalun0@gmail.com) Received: from mail-wr0-x22a.google.com (mail-wr0-x22a.google.com [IPv6:2a00:1450:400c:c0c::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E7A3169A6C for ; Sat, 26 May 2018 10:00:27 +0000 (UTC) (envelope-from johalun0@gmail.com) Received: by mail-wr0-x22a.google.com with SMTP id y15-v6so12976835wrg.11 for ; Sat, 26 May 2018 03:00:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=+3W3ss+PMKtxOkLQYeTpuYw166OxKBEgS6rXhX7tn9o=; b=WdV4ZR03/e78FBvUpxKNLs4TTnYM5OwC1zFZyjXUFh/NopCrHioDhuZ3s2bPRRWpY6 B1unA6YqtSaJSFI8W26oUn8HLAIHSufvdeqm/SnwfG/1Dcm2+vHrnRH7tS3dmIpKJX/U 1KGpKDe+u2TYZnZ0Dwtug4qye0rEN49psYmWPRO1yoWPN+03r3SiXKnyKMLatVh5CKTK 9ZqdGPXxBDYqQSOkdONLR0oszZAVc7Gn4kAEIvnYxl/wCAPVWgbIA6ru0wHfdlGSquwr NnW6CK85SJifY8xxZJY3yp63ExQaelnREBfELdaVmWQitlyC9Gf/5WjQVQMBsJY35DCz QTug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=+3W3ss+PMKtxOkLQYeTpuYw166OxKBEgS6rXhX7tn9o=; b=FoCguvjkVb8zcW8NxUjx+go+80WpHf2Q/VCk/sQPiHoeuLpe2ChnkoMdISoWJGRyts xWRq701BkooCu5Hw/yPfCVjnuBEDFSA5euSR7QCt+9gPZwz0RfGOBQxDlIsnTBebh7p9 PS6irl0LtT4w9zjVQ70kJdiFyyjYjepyHJZepMhjJeu86rjs1qLLJ0uA1RQVOGDbTN8A uF0UFkO6Qak9aZwvzCzTjCsCopRP8o1mIzxX3YfG5FnXvoxpd9mBh1v39hBuzR8puuFs UT4n0RwDTWwsvOoCCruY6Iodqe7qniMR9/hzFWhRZz9y5vu3tTBSrEyz+Ram9Wm5KcfE ZL3w== X-Gm-Message-State: ALKqPwfa8yMt1kqyRTk4zjGEwRU7rPUbAkSjQHlLWd2FcGd7sM4AnoMd Fi4BBzRfVtpshvS0A599VA6W53bqfoqb2GOANS3mlw== X-Google-Smtp-Source: AB8JxZpkxy8DC4uic4fdPAhZKq9TU3X35Iq3mOeYsZJ8f9NKYLgS+nKeBAz9IWN9qjt/YfsWizNKOCQ+yNqWugHv5Qg= X-Received: by 2002:adf:aa08:: with SMTP id p8-v6mr4501759wrd.140.1527328826457; Sat, 26 May 2018 03:00:26 -0700 (PDT) MIME-Version: 1.0 From: Johannes Lundberg Date: Sat, 26 May 2018 10:59:50 +0100 Message-ID: Subject: Floating point in kernel? To: freebsd-current Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.26 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 May 2018 10:00:28 -0000 Hi The new AMD graphics drivers use floats in kernel space. Upstream Linux code has something like: kernel_fpu_begin(); ... kernel_fpu_end(); Do we have similar functions to save/restore FPU registers? Cheers