Sam460ex: Add a Linux-type kernel entry point

* the onboard U-Booot and 2nd-stage loader only know a few OS types,
we'll try faking Linux there.
This commit is contained in:
François Revol
2012-05-17 17:36:19 +02:00
parent d86473dfb9
commit 693b3532c7
3 changed files with 82 additions and 2 deletions
@@ -0,0 +1,17 @@
/*
* Copyright 2008, Ingo Weinhold, [email protected].
* Distributed under the terms of the MIT License.
*/
#ifndef SYSTEM_ARCH_X86_ASM_DEFS_H
#define SYSTEM_ARCH_X86_ASM_DEFS_H
#define SYMBOL(name) .global name; name
#define SYMBOL_END(name) 1: .size name, 1b - name
#define STATIC_FUNCTION(name) .type name, @function; name
#define FUNCTION(name) .global name; .type name, @function; name
#define FUNCTION_END(name) 1: .size name, 1b - name
#endif /* SYSTEM_ARCH_X86_ASM_DEFS_H */