baremetal: all examples working, all failures accounted for!

SIMD&FP is now enabled in arm from bootloader.
This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-05-25 00:00:01 +00:00
parent 8825222579
commit add6eedb76
21 changed files with 181 additions and 90 deletions

View File

@@ -3,7 +3,7 @@
#include <assert.h>
#include <inttypes.h>
int main(void) {
int main() {
uint64_t io = 0;
__asm__ (
R"(

View File

@@ -6,6 +6,7 @@
#define ELEM_SIZE 4
.data;
.align 4
my_array_0:
.word 0x11111111, 0x22222222, 0x33333333, 0x44444444
my_array_1:

View File

@@ -22,6 +22,7 @@ LKMC_PROLOGUE
/* Now the same from memory with vldr and vstr. */
.data
.align 4
my_float_0:
.float 1.5
my_float_1:

1
userland/c/empty.c Normal file
View File

@@ -0,0 +1 @@
int main(void) {}

View File

@@ -9,7 +9,7 @@
int main(int argc, char **argv) {
int ret;
if (argc == 1) {
if (argc <= 1) {
ret = 1;
} else {
ret = strtoull(argv[1], NULL, 0);

4
userland/cpp/empty.cpp Normal file
View File

@@ -0,0 +1,4 @@
// Sanity checking low level stuff, initially inspired by baremetal.
// https://github.com/cirosantilli/linux-kernel-module-cheat#baremetal-cpp
int main() {}