diff options
author | Youness Alaoui <youness.alaoui@puri.sm> | 2017-06-12 21:09:07 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2017-06-12 21:10:26 -0400 |
commit | 7759d3a5be049eb8d0b4f7c6b1f1a0ba5e871cf3 (patch) | |
tree | f6b111f4f4ce806f63c13780f127a950675d676c | |
parent | e30d51cc58065513279cbe3288108555240e7c44 (diff) | |
download | seabios-7759d3a5be049eb8d0b4f7c6b1f1a0ba5e871cf3.tar.gz |
nvme: Enable NVMe support for non-qemu hardware
NVMe support was tested on purism/librem13 laptops and SeaBIOS has
no problems in detecting and booting the drives.
This is a continuation of commit 235a8190 which was incomplete.
Signed-off-by: Youness Alaoui <youness.alaoui@puri.sm>
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r-- | src/hw/nvme.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/hw/nvme.c b/src/hw/nvme.c index 1c2bce5a..556a9a42 100644 --- a/src/hw/nvme.c +++ b/src/hw/nvme.c @@ -5,7 +5,6 @@ // This file may be distributed under the terms of the GNU LGPLv3 license. #include "blockcmd.h" -#include "fw/paravirt.h" // runningOnQEMU #include "malloc.h" // malloc_high #include "output.h" // dprintf #include "pci.h" @@ -599,7 +598,7 @@ nvme_cmd_readwrite(struct nvme_namespace *ns, struct disk_op_s *op, int write) int nvme_process_op(struct disk_op_s *op) { - if (!CONFIG_NVME || !runningOnQEMU()) + if (!CONFIG_NVME) return DISK_RET_SUCCESS; struct nvme_namespace *ns = container_of(op->drive_gf, struct nvme_namespace, |