Commit d571b4c2 authored by Charles Jacobsen's avatar Charles Jacobsen Committed by Vikram Narayanan

Debugging blob run.

No build errors.
parent 9913e7bf
......@@ -4,7 +4,7 @@
* Depending on where linux headers are installed,
* may need to change header includes. For example,
*
* sudo headers_install INSTALL_HDR_DIR=/usr/include/temp
* sudo headers_install INSTALL_HDR_PATH=/usr/include/temp
*
* will install all include/uapi headers in /usr/include/temp/include/...
*/
......@@ -12,7 +12,11 @@
#include <stdio.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <temp/linux/lcd-domains.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <temp/include/linux/lcd-domains.h>
#define PAGE_SIZE 4096
#define DEVICE_NAME "/dev/lcd"
......@@ -76,6 +80,9 @@ int main(int argc, char *argv[])
}
bi.blob_order = order;
printf("blob-run: addr = %lx, order = %d\n",
(unsigned long)bi.blob, bi.blob_order);
/*
* Run in lcd
*/
......
......@@ -149,6 +149,7 @@ static int lcd_run_blob(struct lcd_blob_info *bi)
int r;
unsigned char *blob;
return 0;
/*
* Sanity check blob order
*/
......@@ -251,6 +252,8 @@ static long lcd_dev_ioctl(struct file *filp,
goto out;
}
r = lcd_run_blob(&bi);
printk(KERN_ERR "lcd: addr=%lx, order=%d\n",
(unsigned long)bi.blob, bi.blob_order);
if (r) {
printk(KERN_ERR "lcd: error running blob\n");
goto out;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment