github.com/mvdan/u-root-coreutils@v0.0.0-20230122170626-c2eef2898555/pkg/boot/linux/load_other_linux.go (about) 1 // Copyright 2022 the u-root Authors. All rights reserved 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 //go:build !amd64 && !arm64 6 // +build !amd64,!arm64 7 8 package linux 9 10 import ( 11 "os" 12 13 "golang.org/x/sys/unix" 14 ) 15 16 // KexecLoad is not implemented for platforms other than amd64 and arm64. 17 func KexecLoad(kernel, ramfs *os.File, cmdline string, opts KexecOptions) error { 18 return unix.ENOSYS 19 }